Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onBlockPlacedBy(World world, int i, int j, int k, EntityLivingBase entityliving, ItemStack stack) {
- super.onBlockPlacedBy(world, i, j, k, entityliving, stack);
- ForgeDirection orientation = Utils.get2dOrientation(new Position(entityliving.posX, entityliving.posY, entityliving.posZ), new Position(i, j, k));
- world.setBlockMetadataWithNotify(i, j, k, orientation.getOpposite().ordinal(),1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement