Mention enum string value in docs

This commit is contained in:
Johannes Frohnmeyer 2022-03-17 17:06:15 +01:00
parent d8259e29c9
commit dc8fae467b
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 14 additions and 12 deletions

View File

@ -5,6 +5,8 @@ without switching between a bunch of similar files. For this purpose, respackopt
You can use the `expansions` block in your .rpo to replace content with a value computed through executing a custom [StarScript](https://github.com/MeteorDevelopment/starscript/wiki).
Values can be accessed in star script in a similar way to normal condition objects: `<pack id>.<entry>` or `<pack id>.<subcategory>.<entry>`.
The string value of an enum can be accessed via `<pack id>.<entry>.value`
### Example:
conf.json:
```json
@ -50,9 +52,9 @@ oak_fence.json:
"apply": {
"model": "minecraft:block/oak_fence_side",
"y": ${y000},
"uvlock": ${uvlock}
}
},
"uvlock": ${uvlock}
}
},
{
"when": {
"east": "${orientation}"
@ -60,9 +62,9 @@ oak_fence.json:
"apply": {
"model": "minecraft:block/oak_fence_side",
"y": ${y090},
"uvlock": ${uvlock}
}
},
"uvlock": ${uvlock}
}
},
{
"when": {
"south": "${orientation}"
@ -70,9 +72,9 @@ oak_fence.json:
"apply": {
"model": "minecraft:block/oak_fence_side",
"y": ${y180},
"uvlock": ${uvlock}
}
},
"uvlock": ${uvlock}
}
},
{
"when": {
"west": "${orientation}"
@ -80,9 +82,9 @@ oak_fence.json:
"apply": {
"model": "minecraft:block/oak_fence_side",
"y": ${y270},
"uvlock": ${uvlock}
}
}
"uvlock": ${uvlock}
}
}
]
}
```