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.

Choonster

Moderators
  • Joined

  • Last visited

Everything posted by Choonster

  1. First, delay the removal of the TileEntity until after Block#getDrops has been called (see Forge's patches to BlockFlowerPot for an example of this. Then override Block#getDrops to call the super method, add the inventory contents to the returned list and then return the list. I do this for my chest here, here and here. This splits the stacks randomly to mimic the InventoryHelper.dropInventoryItems method used by vanilla inventories.
  2. First, delay the removal of the TileEntity until after Block#getDrops has been called (see Forge's patches to BlockFlowerPot for an example of this. Then override Block#getDrops to call the super method, add the inventory contents to the returned list and then return the list. I do this for my chest here, here and here. This splits the stacks randomly to mimic the InventoryHelper.dropInventoryItems method used by vanilla inventories.
  3. Read the stacktrace, something was null on line 16 of TileEntityHolyStone . If you can't figure out what was null , set a breakpoint in the method and step through it in a debugger.
  4. Read the stacktrace, something was null on line 16 of TileEntityHolyStone . If you can't figure out what was null , set a breakpoint in the method and step through it in a debugger.
  5. How are we meant to know what the problem is now if you don't post the new log?
  6. How are we meant to know what the problem is now if you don't post the new log?
  7. It looks like AnimationAPI is trying to access a client-only class on the server, this is an error. Make sure you're using the latest version, then report this to the author if it persists. They may or may not be making fixes in 1.7.10 at this point.
  8. It looks like AnimationAPI is trying to access a client-only class on the server, this is an error. Make sure you're using the latest version, then report this to the author if it persists. They may or may not be making fixes in 1.7.10 at this point.
  9. I don't quite understand. The writeToNBT method in the TileEntity super class returns void, and there is no eventReceived method in the Block class... I think you're using 1.9, not 1.9.4 as your title says. The changes I mentioned were made in 1.9.4. The OP is doing this in their latest code.
  10. I don't quite understand. The writeToNBT method in the TileEntity super class returns void, and there is no eventReceived method in the Block class... I think you're using 1.9, not 1.9.4 as your title says. The changes I mentioned were made in 1.9.4. The OP is doing this in their latest code.
  11. I copied your code into a fresh 1.9.4-12.17.0.1922-1.9.4 MDK, updated it to 1.9.4 (made TileEntityRedChest#writeToNBT return NBTTagCompound , renamed BlockRedChest#onBlockEventReceived to eventReceived and CreativeTabs.tabBlock to [TT]CreativeTabs.BUILDING_BLOCKS[/TT]) and hoppers could put items in and take items out without issue.
  12. I copied your code into a fresh 1.9.4-12.17.0.1922-1.9.4 MDK, updated it to 1.9.4 (made TileEntityRedChest#writeToNBT return NBTTagCompound , renamed BlockRedChest#onBlockEventReceived to eventReceived and CreativeTabs.tabBlock to [TT]CreativeTabs.BUILDING_BLOCKS[/TT]) and hoppers could put items in and take items out without issue.
  13. That's the correct log, but I can't see any obvious errors.
  14. That's the correct log, but I can't see any obvious errors.
  15. TileEntitySpecialRenderer Use World#getBlockState to get the current state and IBlockState#getValue to get the facing from that state.
  16. TileEntitySpecialRenderer Use World#getBlockState to get the current state and IBlockState#getValue to get the facing from that state.
  17. That's not the full FML log. Upload the file called fml-client-latest.log in the logs folder of your Minecraft directory to Gist and link it here.
  18. That's not the full FML log. Upload the file called fml-client-latest.log in the logs folder of your Minecraft directory to Gist and link it here.
  19. Nobody said anything about crash reports. We want the FML log.
  20. Nobody said anything about crash reports. We want the FML log.
  21. There is always a log, even when nothing goes wrong. Upload the FML log (logs/fml-client-latest.log) to Gist and link it here.
  22. There is always a log, even when nothing goes wrong. Upload the FML log (logs/fml-client-latest.log) to Gist and link it here.
  23. RedChestBlock#createTileEntity creates a new CrateTileEntity , not a RedChestTileEntity . Side note: The standard naming convention used by MCP (in vanilla code) and most mods is to have the parent class as a prefix rather than a suffix (e.g. TileEntityRedChest , not RedChestTileEntity ). I'd recommend following this convention, though it's not required.
  24. RedChestBlock#createTileEntity creates a new CrateTileEntity , not a RedChestTileEntity . Side note: The standard naming convention used by MCP (in vanilla code) and most mods is to have the parent class as a prefix rather than a suffix (e.g. TileEntityRedChest , not RedChestTileEntity ). I'd recommend following this convention, though it's not required.
  25. If you're just recolouring a greyscale texture with a single colour, you don't need to generate a texture. Simply override Block#getBlockColor , Block#getRenderColor and Block#colorMultiplier . If the colour should be determined at runtime, store it in a field.

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.