Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

zkiller20

Members
  • Posts

    6
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

zkiller20's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) { if (!world.isRemote) { TileEntityPedestal tile = getTileEntity(world, pos); IItemHandler itemHandler = tile.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, side); if (!player.isSneaking()) { if (heldItem.isEmpty()) { player.setHeldItem(hand, itemHandler.extractItem(0, 64, false)); } else { player.setHeldItem(hand, itemHandler.insertItem(0, heldItem, false)); } tile.markDirty(); } else { ItemStack stack = itemHandler.getStackInSlot(0); if (!stack.isEmpty()) { String localized = TutorialMod.proxy.localize(stack.getUnlocalizedName() + ".name"); player.addChatMessage(new TextComponentString(stack.getCount() + "x " + localized)); } else { player.addChatMessage(new TextComponentString("Empty")); } } } return true; } From https://shadowfacts.net/tutorials/forge-modding-112/tile-entities-inventory/
  2. https://wiki.mcjty.eu/modding/index.php?title=Render_Block_State-1.12
  3. Idea : - Item Capability - Fluid Capability - Energy Capability - Custom Capability - Electric Machine ( furnace, crusher, coal generator, etc.. )
  4. @shadowfacts can you write a basic energized furnace on your turorial ?
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.