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. Add "inventory": {"model": "modid:modelName"} to your blockstate file.
  2. Not for 1.10, and i doubt it for 1.9. Best thing I know of would be to look at vanilla's.
  3. You should just use metadata. Metadata is the only way to persist BlockStates anyway. If blockstate1 and blockstate2 have the same metadata of 0, then it will default to the blockstate set to 0(if not setup correctly the defasult blockstate).
  4. Are you sure it is fuel/last fuel and not the other way around?
  5. Well if it only updates server side then we send the data to the client...The client has the same data. Well could you explain the problem.
  6. I'm not sure if I understand the current problem, but is it that the current fuel can be greater than lastFuel? If so the problem is If not please explain it to me.
  7. Could you post your entire TileEntity class it might not be functioning as intended.
  8. Well you definitely could, but using the in place system is easier. And I assume it would be more internet intensive. Give me a minute to look at the code...
  9. Always post all of the code even if you think it unnecessary. Was that all of the code in your container?
  10. coppperShears = registerItem(new copperShears(...));
  11. I believe it sends all of the properties aka the fields from server to client. Did you return 2 on getFieldCount?
  12. It says you do not have a blockstate named atomExtractor.json and why are you hardcoding the model name when you create a new ModelResourceLocation just do block.getRegistryName()
  13. Post your code for ModelLoader.setCustomModelResourceLocation and the console log.
  14. You can get the Item version of a block from Item.getItemFromBlock(block), the metadata is most of the time 0. model is a new ModelResourceLocation. But you should be able to look at that in eclipse by holding controll and clicking on setCustomModelResourceLocation
  15. It is a replacement ItemModelMesher had some problems so forge created a better one. Are the parameters not obvious enough? Item is the Item the resource location goes to, and the metadata is the metadata of the item. What do you mean model?
  16. It has to be called in preInit, it takes in three parameters the Item, the metadata of the item and a ModelResourceLocation. This works for blocks as well. a ModelResourceLocation takes in Strings one is the name of the JSON and the other is optional usually it is "inventory". You do not need to add your modid here.
  17. I don't think there are any forge provided ones what questions do you have?
  18. You should be using ModelLoader.setCustomModelResourceLocation instead of getItemModelMesher(), and then put it in preInit.
  19. Did you override getMetaFromState()
  20. Item/Block Rendering code should be in your preInit method. You should also be using ModelLoader.setCustomModelResourcelocation() if you are not already.
  21. Could you post your MainMod file and proxies.
  22. Any specific function you are looking for, if so please post it, and if it is an inventory API Minecraft more or less already has one built in. In stuff like ISidedInventory and IInventory. Those interfaces include methods like isItemValidforSlot() or canExtract().

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.