Jump to content

Kokkie

Forge Modder
  • Posts

    796
  • Joined

  • Last visited

  • Days Won

    1

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. You are using Item.getItemFromBlock(block) but you should use new ItemBlock(block)...
  5. Can you show a picture of all the files?
  6. That's because there is no model in models/blocks/, change it to { "parent": "nm:block/nuke" }
  7. 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")); } }
  8. Just remove the whole display thing in there...
  9. You need to use ModelLoader for any model, yes..
  10. Did you put the item model in the right location?
  11. You didn't provide models for explode=false and explode=true.
  12. 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...
  13. If you didn't register models, you're not going to see models (so also no textures)...
  14. You should only have 1 model there...
  15. Oh yes, you're right didn't see that
  16. Only the one for the item is wrong..?
  17. Have you registered them with capitals?
  18. They can't have capital letters in the names
  19. Forge itself does, again: Basically Forge calls every method annotated with @SubscribeEvent and passes the parameter into it...
  20. 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")); } }
×
×
  • Create New...

Important Information

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