Skip 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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. You don't have to add a constructor to your Item class you could simply do new Item().setRegistryName().setCreativeTab().setUnlocalizedName()...
  2. There are many. I know TInkers Construct adds their own.
  3. Yes I know what your problem is I even said it earlier. " And I wonder what to do if there is no parameter and you are calling one with a parameter in it. "
  4. Does it just say quote with an arrow next to it? Click the arrow. Or you are using a very old browser, but it says "This is the support section for those modding with Forge. Help with modding goes in here, however, please keep in mind that this is not a Java school. You are expected to have basic knowledge of Java before posting here."
  5. You didn't answer the first question. And I wonder what to do if there is no parameter and you are calling one with a parameter in it.
  6. A furnace works ultimately very simply, especially with IItemHandler. A furnace simply needs to know if it can cook the item in question(is it part of a recipe/does it have fuel/does it have room for the result). This can be done very easily. You need a method that burns fuel if it can and needs to while also checking if it has fuel. You need a method that checks if the item in the input slot is part of a recipe. You need a method that checks if there is room in the output slot(s) (this can be done using IItemHandler.insertItem(slot, item, true) if it returns an empty ItemStack then there is room for the output). Next you just need to implement ITickable and in the update method check all of the above and once enough time has passed complete the burning by calling IItemHandler.insertItem and IItemHandler.extractItem.
  7. Do you know Java? If not If you do then do you have a class called ItemBase? And if you do does it have a constructor that has a String parameter in it?
  8. They should also be using a capability. The only possible way to ensure that the capability stays in sync on an nbt change would be to constantly verify with the server and then send an update packet back to the client. Though as I said they should also be using a capability for ItemStack data.
  9. This could cause problems based on how you are doing it, hopefully you are still basing actions off of the servers data. Define updating the NBT.
  10. Try returning true in isAmbientOcculsion
  11. It depends on what you mean by re-creates and how you are editing it. ItemStack capabilities are not synced. How are you updating your capability data?
  12. Does your entity move as a normal entity or is it more like a Shulker? If the later take a look at EntityShulker, if the former still take a look at EnttiyShulker.
  13. I would use player.addItemStackToInventory It depends on what you mean by better ItemHandlerHelper.giveItemToPlayer will drop the item as an entity which is useful in most cases, but it also wraps the PlayerInventory in an IItemHandler and handles the input that way.
  14. Is just a wrapper around So either works, one is just less writing.
  15. You're doing it for your block, not others mods.
  16. After looking at your silkspawners mod on github it turns out you have your own mob spawner block that can modify what you want on the client in the onItemUse method.
  17. Then submit the event to forge on github. You could just send a packet updating the client.
  18. Why do you need a client side block place event?
  19. No Minecraft won't look for any variants it is not told about. Try creating a new world.
  20. 1.7.10 is not supported on this forum please update if you wish to receive help. This thread will later be locked by a moderator.
  21. Because of 1.13 though you may have figured that out. Post your updated code, including its file path.
  22. Is it the full cube or does it have your model. I am assuming it doesn't have your model, was this from a fresh run of the dev environment.
  23. There is both a PlayerLoggedInEvent and a PlayerLoggedOutEvent please use those instead. ServerDisconnectionFromClientEvent is only called when the server disconnects a player, and ClientDisconnectionFromServerEvent is only called when the Client disconnects from the server. It is a little bit of a play on words, which one is doing the disconnecting.
  24. This event is fired only on the server.

Important Information

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

Account

Navigation

Search

Search

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.