Added a rotation effect to the array when it is "crafting" the item.

This commit is contained in:
WayofTime 2015-12-23 22:30:13 -05:00
parent c54aa5d00e
commit 3a59866475
4 changed files with 72 additions and 25 deletions

View file

@ -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;
}
}