
[Wiki] update EMM wiki examples
drakosoldier298 opened this issue ยท 2 comments
Relevant wiki page(s):
https://github.com/SuperMartijn642/Fusion/wiki/Entity-Model-Modifiers
Issue/Suggestion:
the example code first shown should have comments inside it for even more clarity this is to ensure idiots like my friend, dont get confused from lack of fully reading and or comprehending
{
"targets": ["creeper"],
"layers": {
"main": {
// Main model
"model": [
"creeper/main",
{
// secondary model the entity could have
"model": "large_creeper",
"texture": [
// Textures the secondary model could have
"entity/orange_creeper",
"entity/purple_creeper"
],
// Scale of the secondary model
"scale": 1.1,
"offset_y": 0.2
}
],
// Textures the primary model can have
"texture": [
"entity/blue_creeper",
"entity/red_creeper"
],
//scale of the primary model
"scale": 0.9
}
}
}
The thing is in documentation you tend to want to explain it as if the persons never touched code, because 9 times out of 10 a users going to copy paste and not understand it then get mad. this way if they copy paste the code itself still says what it does.
im not 100% sure i used the correct thing for comments in json ive been doing c# code recently.
Json doesn't have any syntax for comments. I put comments in some examples like for my Ore Growth mod and I quite often get people in my Discord saying it doesn't work because they just copy pasted it with the comments still in there https://modrinth.com/mod/ore-growth.
Hence, at some point I started to avoid putting comments directly in the json examples.