-
Posts
796 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Kokkie
-
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)
-
Why do you have a SoundType field which you don't use?
-
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); }
-
Show your ClientProxy code
-
You are using Item.getItemFromBlock(block) but you should use new ItemBlock(block)...
-
Can you show a picture of all the files?
-
That's because there is no model in models/blocks/, change it to { "parent": "nm:block/nuke" }
-
1.10.2 How do I disable footprint particles on my block!
Kokkie replied to TheRPGAdventurer's topic in Modder Support
Why would you have a model in java? -
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")); } }
-
1.10.2 How do I disable footprint particles on my block!
Kokkie replied to TheRPGAdventurer's topic in Modder Support
That doesn't matter.. -
Just remove the whole display thing in there...
-
You need to use ModelLoader for any model, yes..
-
Did you put the item model in the right location?
-
You didn't provide models for explode=false and explode=true.
-
1.10.2 How do I disable footprint particles on my block!
Kokkie replied to TheRPGAdventurer's topic in Modder Support
In your block model -
1.10.2 How do I disable footprint particles on my block!
Kokkie replied to TheRPGAdventurer's topic in Modder Support
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... -
If you didn't register models, you're not going to see models (so also no textures)...
-
You should only have 1 model there...
-
Oh yes, you're right didn't see that
-
Only the one for the item is wrong..?
-
Have you registered them with capitals?
-
They can't have capital letters in the names
-
Forge itself does, again: Basically Forge calls every method annotated with @SubscribeEvent and passes the parameter into it...
-
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")); } }