
[Question]: framed camo to json?
Ten-jen opened this issue ยท 3 comments
Question
I have left you on message on curseforge, but figured you would respond quicker here.
How would I export the camo of a framed block to something a .json script can use?
Reason why, is because I'm wanting to setup lostcities using framed blocks for some of my buildings. but lostcities uses the .json format to generate structures.
"block": "car:gas_station[facing=south]",
"tag": {
"fluid": {
"FluidName": "immersivepetroleum:gasoline",
"Amount": 4000
An example of the code it uses to help visualize.
I can't find any in-depth documentation on the format expected by Lost Cities, so this is based on an educated guess. This is what I would expect this to look like in JSON for a Framed Slab that has Stone as the camo:
"block": "framedblocks:framed_slab[top=false]",
"tag": {
"camo": {
"type": "framedblocks:block",
"state": {
"Name": "minecraft:stone"
}
}
}
For blocks with two camos (using an Oak Log as an example for a second camo), it would look like this:
"block": "framedblocks:framed_slab[top=false]",
"tag": {
"camo": {
"type": "framedblocks:block",
"state": {
"Name": "minecraft:stone"
}
},
"camo_two": {
"type": "framedblocks:block",
"state": {
"Name": "minecraft:oak_log",
"Properties": {
"axis": "y"
}
}
}
}
Please let me know whether this works.
managed to figure it out. you gotta write it out like this
{
"char": "4",
"block": "framedblocks:framed_corner_pillar[facing=east,glowing=true,propagates_skylight=false,waterlogged=false]",
"tag": {
"camo": {
"state":{
"Name":"minecraft:gray_terracotta"},
"type":"framedblocks:block"}
}
}