This subreddit was originally created for discussion around the FTB launcher and its modpacks but has since grown to encompass all aspects of modding the Java edition of Minecraft The subreddit for all things related to Modded Minecraft for Minecraft Java Edition It does not store any personal data.Join our Discord Server! r/FeedTheBeast r/FeedTheBeastServers Welcome to /r/FeedTheBeast! About The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. The cookie is used to store the user consent for the cookies in the category "Performance". This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. The cookies is used to store the user consent for the cookies in the category "Necessary". The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". The cookie is used to store the user consent for the cookies in the category "Analytics". These cookies ensure basic functionalities and security features of the website, anonymously. Necessary cookies are absolutely essential for the website to function properly. Also don’t forget to follow me on Socials and check out my YouTube Channel for videos as well. If any Questions remain please feel free to comment on here or on the YouTube video. Hopefully both the ResourceLocation and the JSON files now make more sense. Here is another Simple Overview in how the JSON files relate to each other: Simple Overview for the JSON Files Summary If we have a “default” item model for our block then that simply points back to the block model JSON which is then displayed inside the Inventory. This can be customized and we’ll see this also in a future article/video. Once again in our example the Amethyst Ore has the same texture on all six sides. Knowing the blockstates JSON points to the block model, where does the block model JSON point to then? It points to one or more textures. We’ll discuss the blockstates properties in a future article/video. In our case it only points to one of the models, but pretty you should realize pretty quickly that if we can point to different block models than we could change textures when something (blockstate properties) on the block change. The blockstates JSON can “point” to different block model JSONS. After understanding the ResourceLocation this should make a lot of sense! In the above image I have color- and number-coded each of the JSON files to their respective directories. Same JSON files, new UnderstandingĪt the example of the Amethyst Ore JSON files we’re gonna see how the JSON files relate to the directories: A Colored Overview of what the contents of the JSONS refer to. You can give the short article on the official forge documentation another read, which contains a bit more context for ResourceLocation. I said they are directories and that’s right, but to say they point towards a ResourceLocation is even more correct.īy the way, if no namespace was given, the ResourceLocation defaults to "minecraft". This is exactly what we’ve seen inside the model JSON files before. In the above case with the specific context as well. The ResourceLocation also has a different representation namely: tutorialmod:item/amethyst With ctx being a context-specific path depending on where the ResourceLocation is used. It’s also important to note that there can be something between the namespace and the path: assets/// The ResourceLocation Class ResourceLocation resourceLocation = new ResourceLocation(TutorialMod.MOD_ID, "amethyst") Īs you can see in the example code above, a ResourceLocation is made of two parts: our Mod Id (which the ResourceLocation calls namespace) and a path which in this case is the simple String "amethyst". The first thing we’ll take a look at is the ResourceLocation class. Let’s go into a bit more detail how the JSON files in your asset folders are constituted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |