Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

zkiller20

Members
  • Joined

  • Last visited

Everything posted by zkiller20

  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. use stack.getCount() method.
  5. whats is the best ?
  6. @shadowfacts can you write a basic energized furnace on your turorial ?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.