Posted November 21, 20168 yr I'm creating a Harry Potter mod, where you can create your own wand. What I was thinking to do is you start with a base wand texture, then you add the customisation. For example: <- Base Wand <- Customisation 1 <- Customisation 2 <- Final Wnad So, how could i do that? I totally lost on the new models and blockstate system added. Anyone could please help? By now i just have a base mod.
November 22, 20168 yr You could point each metadata to a different model and add multiple layers by doing. { "parent": "item/generated" "textures": { "layer0": "texture1" "layer1": "texture2" #etc } } VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
November 22, 20168 yr Author Thanks! But i would have to create a model for each possible combination? Or can i put more than one model for item, so they mix? How would it work?
November 23, 20168 yr I had this working once before the "Blocks and Items and everything needs to be a JSON" I got it from looking at Tinker's Constructs code on how they handle their tools (they do alot more than just custom handle and end) at some point I might have a gander at their code again and see how they updated it to work with 1.10.2+ Currently updating my Mod to 1.10.2 https://bitbucket.org/hugo_the_dwarf/riseoftristram2016/src?at=master
November 23, 20168 yr I'm still working on figuring this concept out myself (though simpler application). I believe this page, may be of some use. https://mcforge.readthedocs.io/en/latest/blockstates/forgeBlockstates/
November 23, 20168 yr Hi This tutorial project has an example of something very similar to what you're describing https://github.com/TheGreyGhost/MinecraftByExample Try looking at mbe11 first, and if that doesn't meet your needs, try mbe15 Forge blockstates might also be suitable depending on exactly what you're trying to do. -TGG
November 23, 20168 yr Author I'm still working on figuring this concept out myself (though simpler application). I believe this page, may be of some use. https://mcforge.readthedocs.io/en/latest/blockstates/forgeBlockstates/ I've been reading the documentation, the problem is they don't explain you how to use blockstates with Items, i don't even know if it is applicable to Items.
November 23, 20168 yr I've been reading the documentation, the problem is they don't explain you how to use blockstates with Items, i don't even know if it is applicable to Items. Items don't have blockstates, although you can use the system for it. When I wrote my code I was writing this in my client proxy (things have been refactored to make it a common object that all of my dependent mods can then access), but this is what I did: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L86 The interface IMetaLookup was just a custom interface I apply to all of my variant enums so that I can convert between variant and metadata and back. You should already have those methods, I just encapsulated them into a common interface. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.