Mention enum string value in docs
This commit is contained in:
parent
d8259e29c9
commit
dc8fae467b
|
@ -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).
|
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>`.
|
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:
|
### Example:
|
||||||
conf.json:
|
conf.json:
|
||||||
```json
|
```json
|
||||||
|
@ -50,9 +52,9 @@ oak_fence.json:
|
||||||
"apply": {
|
"apply": {
|
||||||
"model": "minecraft:block/oak_fence_side",
|
"model": "minecraft:block/oak_fence_side",
|
||||||
"y": ${y000},
|
"y": ${y000},
|
||||||
"uvlock": ${uvlock}
|
"uvlock": ${uvlock}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"when": {
|
"when": {
|
||||||
"east": "${orientation}"
|
"east": "${orientation}"
|
||||||
|
@ -60,9 +62,9 @@ oak_fence.json:
|
||||||
"apply": {
|
"apply": {
|
||||||
"model": "minecraft:block/oak_fence_side",
|
"model": "minecraft:block/oak_fence_side",
|
||||||
"y": ${y090},
|
"y": ${y090},
|
||||||
"uvlock": ${uvlock}
|
"uvlock": ${uvlock}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"when": {
|
"when": {
|
||||||
"south": "${orientation}"
|
"south": "${orientation}"
|
||||||
|
@ -70,9 +72,9 @@ oak_fence.json:
|
||||||
"apply": {
|
"apply": {
|
||||||
"model": "minecraft:block/oak_fence_side",
|
"model": "minecraft:block/oak_fence_side",
|
||||||
"y": ${y180},
|
"y": ${y180},
|
||||||
"uvlock": ${uvlock}
|
"uvlock": ${uvlock}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"when": {
|
"when": {
|
||||||
"west": "${orientation}"
|
"west": "${orientation}"
|
||||||
|
@ -80,9 +82,9 @@ oak_fence.json:
|
||||||
"apply": {
|
"apply": {
|
||||||
"model": "minecraft:block/oak_fence_side",
|
"model": "minecraft:block/oak_fence_side",
|
||||||
"y": ${y270},
|
"y": ${y270},
|
||||||
"uvlock": ${uvlock}
|
"uvlock": ${uvlock}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user