Added a rotation effect to the array when it is "crafting" the item.
This commit is contained in:
parent
c54aa5d00e
commit
3a59866475
4 changed files with 72 additions and 25 deletions
|
@ -21,14 +21,18 @@ public class AlchemyArrayEffectCrafting extends AlchemyArrayEffect {
|
|||
if(tile.getWorld().isRemote) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(ticksActive > 200){
|
||||
BlockPos pos = tile.getPos();
|
||||
|
||||
ItemStack output = outputStack.copy();
|
||||
EntityItem outputEntity = new EntityItem(tile.getWorld(), pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, output);
|
||||
|
||||
tile.getWorld().spawnEntityInWorld(outputEntity);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
BlockPos pos = tile.getPos();
|
||||
|
||||
ItemStack output = outputStack.copy();
|
||||
EntityItem outputEntity = new EntityItem(tile.getWorld(), pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, output);
|
||||
|
||||
tile.getWorld().spawnEntityInWorld(outputEntity);
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue