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.

Kokkie

Forge Modder
  • Joined

  • Last visited

Everything posted by Kokkie

  1. No, go to the Block class, then go the the getSoundType(...) method and set a breakpoint somewhere in there, with the condition of the block being an instance of your wool slab (this instanceof BlockWoolSlab)
  2. Why do you have a SoundType field which you don't use?
  3. Your block registry is broken, it will register the nuke instead of what block you pass into the method... private static void registerBlock(Block block) { GameRegistry.register(nuke); <----- ItemBlock item = new ItemBlock(block); item.setRegistryName(block.getRegistryName()); GameRegistry.register(item); }
  4. Show your ClientProxy code
  5. You are using Item.getItemFromBlock(block) but you should use new ItemBlock(block)...
  6. Can you show a picture of all the files?
  7. That's because there is no model in models/blocks/, change it to { "parent": "nm:block/nuke" }
  8. Why would you have a model in java?
  9. Here's my model registration code. @SubscribeEvent public static void registerModels(ModelRegistryEvent event) { for (Block block : AMBlocks.BLOCKS) { ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); } for (Item item : AMItems.ITEMS) { ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } }
  10. Just remove the whole display thing in there...
  11. You need to use ModelLoader for any model, yes..
  12. Did you put the item model in the right location?
  13. You didn't provide models for explode=false and explode=true.
  14. Set the particle texture of your block to a textures with nothing, but then you aren't going to see particles when you break the block...
  15. If you didn't register models, you're not going to see models (so also no textures)...
  16. You should only have 1 model there...
  17. Oh yes, you're right didn't see that
  18. Only the one for the item is wrong..?
  19. Have you registered them with capitals?
  20. They can't have capital letters in the names
  21. Forge itself does, again: Basically Forge calls every method annotated with @SubscribeEvent and passes the parameter into it...
  22. Yes, but you should use item.getRegistryName() instead of Reference.MODID + ":" + item.getItemName(). Take a look at this example code: @Mod.EventBusSubscriber(modid = Reference.MOD_ID) public class Test { public static Item testItem; @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { event.getRegistry().register(testItem = new Item().setUnlocalizedName("test").setRegistryName("test")); } }

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.