mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
Run the zon format check with our zig fmt (#1175)
* Format all the zon assets to prepare for running the the format check with our zig fmt * Update ci.yml * Remove zon files from the old formatter * Add a formatting violation to test the CI * Undo the check
This commit is contained in:
parent
5a9e537ed4
commit
b303244773
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -27,3 +27,8 @@ jobs:
|
|||||||
git diff --color=always;
|
git diff --color=always;
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
- run: |
|
||||||
|
if zig build fmt -- --zon *.zon assets/*.zon assets/*/*.zon assets/*/*/*.zon assets/*/*/*/*.zon assets/*/*/*/*/*.zon assets/*/*/*/*/*/*.zon assets/*/*/*/*/*/*/*.zon assets/*/*/*/*/*/*/*/*.zon assets/*/*/*/*/*/*/*/*/*.zon assets/*/*/*/*/*/*/*/*/*/*.zon | grep -q . ; then
|
||||||
|
git diff --color=always;
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
.music = "cubyz:heart-of-the-beast",
|
.music = "cubyz:heart-of-the-beast",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.structures = .{
|
.structures = .{
|
||||||
.{
|
.{
|
||||||
.id = "cubyz:ground_patch",
|
.id = "cubyz:ground_patch",
|
||||||
|
@ -9,6 +9,5 @@
|
|||||||
|
|
||||||
.music = "cubyz:heart-of-the-beast",
|
.music = "cubyz:heart-of-the-beast",
|
||||||
|
|
||||||
.structures = .{
|
.structures = .{},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
@ -9,25 +9,25 @@
|
|||||||
.stoneBlock = "cubyz:obsidian",
|
.stoneBlock = "cubyz:obsidian",
|
||||||
.stripes = .{
|
.stripes = .{
|
||||||
.{
|
.{
|
||||||
.direction= .{4, 1, 3},
|
.direction = .{4, 1, 3},
|
||||||
.block= "cubyz:magma",
|
.block = "cubyz:magma",
|
||||||
.distance= 16,
|
.distance = 16,
|
||||||
.offset= 5,
|
.offset = 5,
|
||||||
.width= 2,
|
.width = 2,
|
||||||
},
|
},
|
||||||
.{
|
.{
|
||||||
.direction= .{2, 2.5, 3},
|
.direction = .{2, 2.5, 3},
|
||||||
.block= "cubyz:magma",
|
.block = "cubyz:magma",
|
||||||
.distance= 14,
|
.distance = 14,
|
||||||
.offset= 6,
|
.offset = 6,
|
||||||
.width= 1,
|
.width = 1,
|
||||||
},
|
},
|
||||||
.{
|
.{
|
||||||
.direction= .{3, 4, 2},
|
.direction = .{3, 4, 2},
|
||||||
.block= "cubyz:magma",
|
.block = "cubyz:magma",
|
||||||
.distance= 14,
|
.distance = 14,
|
||||||
.offset= 7,
|
.offset = 7,
|
||||||
.width= 1,
|
.width = 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
.structures = .{
|
.structures = .{
|
||||||
|
@ -8,6 +8,5 @@
|
|||||||
.caves = 1,
|
.caves = 1,
|
||||||
.music = "cubyz:heart-of-the-beast",
|
.music = "cubyz:heart-of-the-beast",
|
||||||
|
|
||||||
.structures = .{
|
.structures = .{},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.radius = 16,
|
.radius = 16,
|
||||||
.chance = 0
|
.chance = 0,
|
||||||
.minHeight = 2,
|
.minHeight = 2,
|
||||||
.maxHeight = 10,
|
.maxHeight = 10,
|
||||||
.roughness = 1,
|
.roughness = 1,
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.radius = 16,
|
.radius = 16,
|
||||||
.chance = 0
|
.chance = 0,
|
||||||
.minHeight = 50,
|
.minHeight = 50,
|
||||||
.maxHeight = 80,
|
.maxHeight = 80,
|
||||||
.roughness = 1,
|
.roughness = 1,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.minHeight = 22,
|
.minHeight = 22,
|
||||||
.maxHeight = 40,
|
.maxHeight = 40,
|
||||||
.minRadius = 256,
|
.minRadius = 256,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.minHeight = 20,
|
.minHeight = 20,
|
||||||
.maxHeight = 48,
|
.maxHeight = 48,
|
||||||
.minRadius = 200,
|
.minRadius = 200,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.minHeight = 22,
|
.minHeight = 22,
|
||||||
.maxHeight = 40,
|
.maxHeight = 40,
|
||||||
.minRadius = 64,
|
.minRadius = 64,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
.{
|
.{
|
||||||
.chance = 0,
|
.chance = 0,
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.radius = 32,
|
.radius = 32,
|
||||||
.minHeight = 22,
|
.minHeight = 22,
|
||||||
.maxHeight = 40,
|
.maxHeight = 40,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.minHeight = 20,
|
.minHeight = 20,
|
||||||
.maxHeight = 24,
|
.maxHeight = 24,
|
||||||
.minRadius = 200,
|
.minRadius = 200,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
.{
|
.{
|
||||||
.chance = 0.02,
|
.chance = 0.02,
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.minHeight = 22,
|
.minHeight = 22,
|
||||||
.maxHeight = 40,
|
.maxHeight = 40,
|
||||||
|
|
||||||
@ -12,14 +11,13 @@
|
|||||||
|
|
||||||
.validPlayerSpawn = false,
|
.validPlayerSpawn = false,
|
||||||
|
|
||||||
.ground_structure = .{
|
.ground_structure = .{},
|
||||||
},
|
|
||||||
.structures = .{
|
.structures = .{
|
||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/aqua",
|
.leaves = "cubyz:glass/aqua",
|
||||||
.log = "cubyz:chalk/aqua",
|
.log = "cubyz:chalk/aqua",
|
||||||
.top = "cubyz:chalk/aqua",
|
.top = "cubyz:chalk/aqua",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -30,8 +28,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/black",
|
.leaves = "cubyz:glass/black",
|
||||||
.log = "cubyz:chalk/black",
|
.log = "cubyz:chalk/black",
|
||||||
.top = "cubyz:chalk/black",
|
.top = "cubyz:chalk/black",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -78,8 +76,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/cyan",
|
.leaves = "cubyz:glass/cyan",
|
||||||
.log = "cubyz:chalk/cyan",
|
.log = "cubyz:chalk/cyan",
|
||||||
.top = "cubyz:chalk/cyan",
|
.top = "cubyz:chalk/cyan",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -90,8 +88,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/dark_grey",
|
.leaves = "cubyz:glass/dark_grey",
|
||||||
.log = "cubyz:chalk/dark_grey",
|
.log = "cubyz:chalk/dark_grey",
|
||||||
.top = "cubyz:chalk/dark_grey",
|
.top = "cubyz:chalk/dark_grey",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -102,8 +100,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/green",
|
.leaves = "cubyz:glass/green",
|
||||||
.log = "cubyz:chalk/green",
|
.log = "cubyz:chalk/green",
|
||||||
.top = "cubyz:chalk/green",
|
.top = "cubyz:chalk/green",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -114,8 +112,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/grey",
|
.leaves = "cubyz:glass/grey",
|
||||||
.log = "cubyz:chalk/grey",
|
.log = "cubyz:chalk/grey",
|
||||||
.top = "cubyz:chalk/grey",
|
.top = "cubyz:chalk/grey",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -126,8 +124,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/indigo",
|
.leaves = "cubyz:glass/indigo",
|
||||||
.log = "cubyz:chalk/indigo",
|
.log = "cubyz:chalk/indigo",
|
||||||
.top = "cubyz:chalk/indigo",
|
.top = "cubyz:chalk/indigo",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -138,8 +136,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/lime",
|
.leaves = "cubyz:glass/lime",
|
||||||
.log = "cubyz:chalk/lime",
|
.log = "cubyz:chalk/lime",
|
||||||
.top = "cubyz:chalk/lime",
|
.top = "cubyz:chalk/lime",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -150,8 +148,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/magenta",
|
.leaves = "cubyz:glass/magenta",
|
||||||
.log = "cubyz:chalk/magenta",
|
.log = "cubyz:chalk/magenta",
|
||||||
.top = "cubyz:chalk/magenta",
|
.top = "cubyz:chalk/magenta",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -162,8 +160,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/orange",
|
.leaves = "cubyz:glass/orange",
|
||||||
.log = "cubyz:chalk/orange",
|
.log = "cubyz:chalk/orange",
|
||||||
.top = "cubyz:chalk/orange",
|
.top = "cubyz:chalk/orange",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -174,8 +172,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/pink",
|
.leaves = "cubyz:glass/pink",
|
||||||
.log = "cubyz:chalk/pink",
|
.log = "cubyz:chalk/pink",
|
||||||
.top = "cubyz:chalk/pink",
|
.top = "cubyz:chalk/pink",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -186,8 +184,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/purple",
|
.leaves = "cubyz:glass/purple",
|
||||||
.log = "cubyz:chalk/purple",
|
.log = "cubyz:chalk/purple",
|
||||||
.top = "cubyz:chalk/purple",
|
.top = "cubyz:chalk/purple",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -198,8 +196,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/red",
|
.leaves = "cubyz:glass/red",
|
||||||
.log = "cubyz:chalk/red",
|
.log = "cubyz:chalk/red",
|
||||||
.top = "cubyz:chalk/red",
|
.top = "cubyz:chalk/red",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -210,8 +208,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/violet",
|
.leaves = "cubyz:glass/violet",
|
||||||
.log = "cubyz:chalk/violet",
|
.log = "cubyz:chalk/violet",
|
||||||
.top = "cubyz:chalk/violet",
|
.top = "cubyz:chalk/violet",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -222,8 +220,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/viridian",
|
.leaves = "cubyz:glass/viridian",
|
||||||
.log = "cubyz:chalk/viridian",
|
.log = "cubyz:chalk/viridian",
|
||||||
.top = "cubyz:chalk/viridian",
|
.top = "cubyz:chalk/viridian",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -234,8 +232,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/white",
|
.leaves = "cubyz:glass/white",
|
||||||
.log = "cubyz:chalk/white",
|
.log = "cubyz:chalk/white",
|
||||||
.top = "cubyz:chalk/white",
|
.top = "cubyz:chalk/white",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
@ -246,8 +244,8 @@
|
|||||||
.{
|
.{
|
||||||
.id = "cubyz:simple_tree",
|
.id = "cubyz:simple_tree",
|
||||||
.leaves = "cubyz:glass/yellow",
|
.leaves = "cubyz:glass/yellow",
|
||||||
.log = "cubyz:chalk/yellow",
|
.log = "cubyz:chalk/yellow",
|
||||||
.top = "cubyz:chalk/yellow",
|
.top = "cubyz:chalk/yellow",
|
||||||
.chance = 0.008,
|
.chance = 0.008,
|
||||||
.type = .round,
|
.type = .round,
|
||||||
.height = 10,
|
.height = 10,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.minHeight = 22,
|
.minHeight = 22,
|
||||||
.maxHeight = 40,
|
.maxHeight = 40,
|
||||||
.minRadius = 256,
|
.minRadius = 256,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
.{
|
.{
|
||||||
.chance = 0.02,
|
.chance = 0.02,
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.minHeight = 22,
|
.minHeight = 22,
|
||||||
.maxHeight = 40,
|
.maxHeight = 40,
|
||||||
|
|
||||||
@ -12,8 +11,7 @@
|
|||||||
|
|
||||||
.validPlayerSpawn = false,
|
.validPlayerSpawn = false,
|
||||||
|
|
||||||
.ground_structure = .{
|
.ground_structure = .{},
|
||||||
},
|
|
||||||
.stoneBlock = "cubyz:chalk/white",
|
.stoneBlock = "cubyz:chalk/white",
|
||||||
.structures = .{
|
.structures = .{
|
||||||
.{
|
.{
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.dry},
|
||||||
.dry
|
|
||||||
},
|
|
||||||
.minHeight = 40,
|
.minHeight = 40,
|
||||||
.maxHeight = 44,
|
.maxHeight = 44,
|
||||||
.minRadius = 256,
|
.minRadius = 256,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.chance = 0.04,
|
.chance = 0.04,
|
||||||
.minHeight = 20,
|
.minHeight = 20,
|
||||||
.maxHeight = 40,
|
.maxHeight = 40,
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
.{
|
.{
|
||||||
.direction = .{1, 1, 5},
|
.direction = .{1, 1, 5},
|
||||||
.block= "cubyz:sandstone",
|
.block = "cubyz:sandstone",
|
||||||
.distance = 10,
|
.distance = 10,
|
||||||
.offset = 6,
|
.offset = 6,
|
||||||
.width = 1,
|
.width = 1,
|
||||||
|
@ -71,5 +71,4 @@
|
|||||||
.chance = 8,
|
.chance = 8,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{},
|
||||||
},
|
|
||||||
.chance = 0.01,
|
.chance = 0.01,
|
||||||
.minHeight = 22,
|
.minHeight = 22,
|
||||||
.maxHeight = 40,
|
.maxHeight = 40,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 320,
|
.radius = 320,
|
||||||
.minHeight = 128,
|
.minHeight = 128,
|
||||||
.maxHeight = 128,
|
.maxHeight = 128,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 60,
|
.radius = 60,
|
||||||
.minHeight = 864,
|
.minHeight = 864,
|
||||||
.maxHeight = 864,
|
.maxHeight = 864,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 280,
|
.radius = 280,
|
||||||
.minHeight = 256,
|
.minHeight = 256,
|
||||||
.maxHeight = 256,
|
.maxHeight = 256,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 240,
|
.radius = 240,
|
||||||
.minHeight = 384,
|
.minHeight = 384,
|
||||||
.maxHeight = 384,
|
.maxHeight = 384,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 200,
|
.radius = 200,
|
||||||
.minHeight = 480,
|
.minHeight = 480,
|
||||||
.maxHeight = 480,
|
.maxHeight = 480,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 160,
|
.radius = 160,
|
||||||
.minHeight = 576,
|
.minHeight = 576,
|
||||||
.maxHeight = 576,
|
.maxHeight = 576,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 120,
|
.radius = 120,
|
||||||
.minHeight = 672,
|
.minHeight = 672,
|
||||||
.maxHeight = 672,
|
.maxHeight = 672,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 90,
|
.radius = 90,
|
||||||
.minHeight = 768,
|
.minHeight = 768,
|
||||||
.maxHeight = 768,
|
.maxHeight = 768,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.chance= 0,
|
.chance = 0,
|
||||||
.properties = .{
|
.properties = .{
|
||||||
.wet,
|
.wet,
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 320,
|
.radius = 320,
|
||||||
.minHeight = 128,
|
.minHeight = 128,
|
||||||
.maxHeight = 128,
|
.maxHeight = 128,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 40,
|
.radius = 40,
|
||||||
.minHeight = 600,
|
.minHeight = 600,
|
||||||
.maxHeight = 600,
|
.maxHeight = 600,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 260,
|
.radius = 260,
|
||||||
.minHeight = 256,
|
.minHeight = 256,
|
||||||
.maxHeight = 256,
|
.maxHeight = 256,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 220,
|
.radius = 220,
|
||||||
.minHeight = 384,
|
.minHeight = 384,
|
||||||
.maxHeight = 384,
|
.maxHeight = 384,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 180,
|
.radius = 180,
|
||||||
.minHeight = 480,
|
.minHeight = 480,
|
||||||
.maxHeight = 480,
|
.maxHeight = 480,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 140,
|
.radius = 140,
|
||||||
.minHeight = 576,
|
.minHeight = 576,
|
||||||
.maxHeight = 576,
|
.maxHeight = 576,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 100,
|
.radius = 100,
|
||||||
.minHeight = 672,
|
.minHeight = 672,
|
||||||
.maxHeight = 672,
|
.maxHeight = 672,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
.{
|
.{
|
||||||
.properties = .{
|
.properties = .{.mountain},
|
||||||
.mountain
|
|
||||||
},
|
|
||||||
.radius = 80,
|
.radius = 80,
|
||||||
.minHeight = 640,
|
.minHeight = 640,
|
||||||
.maxHeight = 640,
|
.maxHeight = 640,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
.rotation = .no_rotation,
|
.rotation = .no_rotation,
|
||||||
.degradable = true,
|
.degradable = true,
|
||||||
.hasItem = false,
|
.hasItem = false,
|
||||||
.collide= false,
|
.collide = false,
|
||||||
|
|
||||||
.drops = .{},
|
.drops = .{},
|
||||||
.model = .none,
|
.model = .none,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.tags = .{.wood},
|
.tags = .{.wood},
|
||||||
.blockHealth = 4,
|
.blockHealth = 4,
|
||||||
.drops = .{
|
.drops = .{
|
||||||
.{ .items = .{.auto} },
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.absorbedLight = 0x202830,
|
.absorbedLight = 0x202830,
|
||||||
.rotation = .branch,
|
.rotation = .branch,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.tags = .{.wood},
|
.tags = .{.wood},
|
||||||
.blockHealth = 4,
|
.blockHealth = 4,
|
||||||
.drops = .{
|
.drops = .{
|
||||||
.{ .items = .{.auto} },
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.absorbedLight = 0x202830,
|
.absorbedLight = 0x202830,
|
||||||
.rotation = .branch,
|
.rotation = .branch,
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
.solid = false,
|
.solid = false,
|
||||||
.viewThrough = true,
|
.viewThrough = true,
|
||||||
.absorbedLight = 0x010101,
|
.absorbedLight = 0x010101,
|
||||||
.collide= false,
|
.collide = false,
|
||||||
.rotation = .torch,
|
.rotation = .torch,
|
||||||
.model = .{
|
.model = .{
|
||||||
.base = "cubyz:bolete/floor",
|
.base = "cubyz:bolete/floor",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.tags = .{.wood},
|
.tags = .{.wood},
|
||||||
.blockHealth = 2.5,
|
.blockHealth = 2.5,
|
||||||
.drops = .{
|
.drops = .{
|
||||||
.{ .items = .{.auto} },
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.absorbedLight = 0x202830,
|
.absorbedLight = 0x202830,
|
||||||
.rotation = .branch,
|
.rotation = .branch,
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
.model = "cubyz:plane",
|
.model = "cubyz:plane",
|
||||||
.rotation = .carpet,
|
.rotation = .carpet,
|
||||||
.texture = "cubyz:daisies",
|
.texture = "cubyz:daisies",
|
||||||
.item= .{
|
.item = .{
|
||||||
.texture = "daisies.png",
|
.texture = "daisies.png",
|
||||||
},
|
},
|
||||||
.lodReplacement = "cubyz:air",
|
.lodReplacement = "cubyz:air",
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
.model = "cubyz:plane",
|
.model = "cubyz:plane",
|
||||||
.rotation = .carpet,
|
.rotation = .carpet,
|
||||||
.texture = "cubyz:dandelions",
|
.texture = "cubyz:dandelions",
|
||||||
.item= .{
|
.item = .{
|
||||||
.texture = "dandelions.png",
|
.texture = "dandelions.png",
|
||||||
},
|
},
|
||||||
.lodReplacement = "cubyz:air",
|
.lodReplacement = "cubyz:air",
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
.viewThrough = true,
|
.viewThrough = true,
|
||||||
.absorbedLight = 0x010101,
|
.absorbedLight = 0x010101,
|
||||||
.emittedLight = 0x392862,
|
.emittedLight = 0x392862,
|
||||||
.collide= false,
|
.collide = false,
|
||||||
.rotation = .torch,
|
.rotation = .torch,
|
||||||
.model = .{
|
.model = .{
|
||||||
.base = "cubyz:glimmergill/floor",
|
.base = "cubyz:glimmergill/floor",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
.degradable = true,
|
.degradable = true,
|
||||||
.transparent = true,
|
.transparent = true,
|
||||||
.hasBackFace = true,
|
.hasBackFace = true,
|
||||||
.collide= false,
|
.collide = false,
|
||||||
.absorbedLight = 0x0084ff,
|
.absorbedLight = 0x0084ff,
|
||||||
.emittedLight = 0xff7b00,
|
.emittedLight = 0xff7b00,
|
||||||
.model = "cubyz:cube",
|
.model = "cubyz:cube",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
.drops = .{
|
.drops = .{
|
||||||
.{.items = .{.auto}},
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.rotation= .stairs,
|
.rotation = .stairs,
|
||||||
.model= "cubyz:cube",
|
.model = "cubyz:cube",
|
||||||
.texture= "cubyz:limestone_bricks",
|
.texture = "cubyz:limestone_bricks",
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
.drops = .{
|
.drops = .{
|
||||||
.{.items = .{.auto}},
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.rotation= .stairs,
|
.rotation = .stairs,
|
||||||
.model= "cubyz:cube",
|
.model = "cubyz:cube",
|
||||||
.texture= "cubyz:limestone_tiles",
|
.texture = "cubyz:limestone_tiles",
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.tags = .{.wood},
|
.tags = .{.wood},
|
||||||
.blockHealth = 4,
|
.blockHealth = 4,
|
||||||
.drops = .{
|
.drops = .{
|
||||||
.{ .items = .{.auto} },
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.absorbedLight = 0x202830,
|
.absorbedLight = 0x202830,
|
||||||
.rotation = .branch,
|
.rotation = .branch,
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
.allowOres = true,
|
.allowOres = true,
|
||||||
.rotation= .stairs,
|
.rotation = .stairs,
|
||||||
.model= "cubyz:cube",
|
.model = "cubyz:cube",
|
||||||
.texture= "cubyz:marble",
|
.texture = "cubyz:marble",
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
.drops = .{
|
.drops = .{
|
||||||
.{.items = .{.auto}},
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.rotation= .stairs,
|
.rotation = .stairs,
|
||||||
.model= "cubyz:cube",
|
.model = "cubyz:cube",
|
||||||
.texture= "cubyz:marble_bricks",
|
.texture = "cubyz:marble_bricks",
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
.drops = .{
|
.drops = .{
|
||||||
.{.items = .{.auto}},
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.rotation= .stairs,
|
.rotation = .stairs,
|
||||||
.model= "cubyz:cube",
|
.model = "cubyz:cube",
|
||||||
.texture= "cubyz:marble_tile",
|
.texture = "cubyz:marble_tile",
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.tags = .{.wood},
|
.tags = .{.wood},
|
||||||
.blockHealth = 4,
|
.blockHealth = 4,
|
||||||
.drops = .{
|
.drops = .{
|
||||||
.{ .items = .{.auto} },
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.absorbedLight = 0x202830,
|
.absorbedLight = 0x202830,
|
||||||
.rotation = .branch,
|
.rotation = .branch,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.tags = .{.wood},
|
.tags = .{.wood},
|
||||||
.blockHealth = 4,
|
.blockHealth = 4,
|
||||||
.drops = .{
|
.drops = .{
|
||||||
.{ .items = .{.auto} },
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.absorbedLight = 0x202830,
|
.absorbedLight = 0x202830,
|
||||||
.rotation = .branch,
|
.rotation = .branch,
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
.model = "cubyz:plane",
|
.model = "cubyz:plane",
|
||||||
.rotation = .carpet,
|
.rotation = .carpet,
|
||||||
.texture = "cubyz:red_leaf_pile",
|
.texture = "cubyz:red_leaf_pile",
|
||||||
.item= .{
|
.item = .{
|
||||||
.texture = "red_leaf_pile.png",
|
.texture = "red_leaf_pile.png",
|
||||||
},
|
},
|
||||||
.lodReplacement = "cubyz:air",
|
.lodReplacement = "cubyz:air",
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
.solid = false,
|
.solid = false,
|
||||||
.viewThrough = true,
|
.viewThrough = true,
|
||||||
.absorbedLight = 0x010101,
|
.absorbedLight = 0x010101,
|
||||||
.collide= false,
|
.collide = false,
|
||||||
.rotation = .torch,
|
.rotation = .torch,
|
||||||
.model = .{
|
.model = .{
|
||||||
.base = "cubyz:toadstool/floor",
|
.base = "cubyz:toadstool/floor",
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
.emittedLight = 0xa58d73,
|
.emittedLight = 0xa58d73,
|
||||||
.viewThrough = true,
|
.viewThrough = true,
|
||||||
.absorbedLight = 0x010101,
|
.absorbedLight = 0x010101,
|
||||||
.collide= false,
|
.collide = false,
|
||||||
.rotation = .torch,
|
.rotation = .torch,
|
||||||
.model = .{
|
.model = .{
|
||||||
.base = "cubyz:torch",
|
.base = "cubyz:torch",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
.degradable = true,
|
.degradable = true,
|
||||||
.transparent = true,
|
.transparent = true,
|
||||||
.hasBackFace = true,
|
.hasBackFace = true,
|
||||||
.collide= false,
|
.collide = false,
|
||||||
.absorbedLight = 0x090501,
|
.absorbedLight = 0x090501,
|
||||||
.model = "cubyz:cube",
|
.model = "cubyz:cube",
|
||||||
.texture = "cubyz:water",
|
.texture = "cubyz:water",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.tags = .{.wood},
|
.tags = .{.wood},
|
||||||
.blockHealth = 4,
|
.blockHealth = 4,
|
||||||
.drops = .{
|
.drops = .{
|
||||||
.{ .items = .{.auto} },
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.absorbedLight = 0x202830,
|
.absorbedLight = 0x202830,
|
||||||
.rotation = .branch,
|
.rotation = .branch,
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
.model = "cubyz:plane",
|
.model = "cubyz:plane",
|
||||||
.rotation = .carpet,
|
.rotation = .carpet,
|
||||||
.texture = "cubyz:yellow_leaf_pile",
|
.texture = "cubyz:yellow_leaf_pile",
|
||||||
.item= .{
|
.item = .{
|
||||||
.texture = "yellow_leaf_pile.png",
|
.texture = "yellow_leaf_pile.png",
|
||||||
},
|
},
|
||||||
.lodReplacement = "cubyz:air",
|
.lodReplacement = "cubyz:air",
|
||||||
|
@ -111,4 +111,4 @@
|
|||||||
.inputs = .{"cubyz:void_stone"},
|
.inputs = .{"cubyz:void_stone"},
|
||||||
.output = "2 cubyz:void_stone_wall",
|
.output = "2 cubyz:void_stone_wall",
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
|
@ -138,10 +138,10 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
.slots = .{
|
.slots = .{
|
||||||
.tiptip, .tip, .edge, .none, .none,
|
.tiptip, .tip, .edge, .none, .none,
|
||||||
.tip, .blade, .blade, .edge, .none,
|
.tip, .blade, .blade, .edge, .none,
|
||||||
.edge, .blade, .center, .back, .none,
|
.edge, .blade, .center, .back, .none,
|
||||||
.none, .edge, .back, .handle, .none,
|
.none, .edge, .back, .handle, .none,
|
||||||
.none, .none, .none, .none, .handle,
|
.none, .none, .none, .none, .handle,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ fn checkDirectory(dir: std.fs.Dir) !void {
|
|||||||
std.log.err("File name should end with .zig.zon so it gets syntax highlighting on github.", .{});
|
std.log.err("File name should end with .zig.zon so it gets syntax highlighting on github.", .{});
|
||||||
failed = true;
|
failed = true;
|
||||||
}
|
}
|
||||||
if(child.kind == .file and (std.mem.endsWith(u8, child.basename, ".zon") or std.mem.endsWith(u8, child.basename, ".vs") or std.mem.endsWith(u8, child.basename, ".fs") or std.mem.endsWith(u8, child.basename, ".glsl"))) {
|
if(child.kind == .file and (std.mem.endsWith(u8, child.basename, ".vs") or std.mem.endsWith(u8, child.basename, ".fs") or std.mem.endsWith(u8, child.basename, ".glsl"))) {
|
||||||
try checkFile(dir, child.path);
|
try checkFile(dir, child.path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -94,7 +94,5 @@ pub fn main() !void {
|
|||||||
dir = try std.fs.cwd().openDir("assets", .{.iterate = true});
|
dir = try std.fs.cwd().openDir("assets", .{.iterate = true});
|
||||||
try checkDirectory(dir);
|
try checkDirectory(dir);
|
||||||
|
|
||||||
try checkFile(std.fs.cwd(), "build.zig.zon");
|
|
||||||
|
|
||||||
if(failed) std.posix.exit(1);
|
if(failed) std.posix.exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user