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. 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")); } }
×
×
  • Create New...

Important Information

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