Cubyz/assets/cubyz/blocks/oak_branch.zig.zon
OneAvargeCoder193 35fedba2c6
Change branches so that the textures can be rotated (#1183)
* add pipes, which are like branches but you can have different textures on each mode

* fix formatting

* remove testing block

* fix more formatting issues

* fix more formatting issues

* simplify fromRelPos

* fix fromRelPos and give pipe same properties as branch

* fix flashing dots caused by floating point inaccuracies

* remove debug object

* fix formatting issues

* fix a couple things

* remove debug textures

* fix formatting and also make dir an enum

* fix more formatting issues

* remove branches

* rename pipe to branch

* remove floating point fix

* remove branch model

* Add back branches and add temporary textures

* add back the branches

* fix some stuff

* small changes

* fix compiler error

---------

Co-authored-by: Carrie <carriecapp9@gmail.com>
2025-03-12 18:27:28 +01:00

39 lines
796 B
Zig

.{
.tags = .{.wood},
.blockHealth = 4,
.drops = .{
.{.items = .{.auto}},
},
.absorbedLight = 0x202830,
.rotation = .branch,
.model = .{
.radius = 4,
},
.texture_top = "cubyz:branch/oak/dot",
.texture_bottom = "cubyz:branch/oak/half_line",
.texture_right = "cubyz:branch/oak/line",
.texture_left = "cubyz:branch/oak/bend",
.texture_front = "cubyz:branch/oak/intersection",
.texture_back = "cubyz:branch/oak/cross",
.item = .{
.material = .{
.density = 0.25,
.strength = 1.0,
.elasticity = 4,
.grip = 10,
.hardness = 1.5,
.textureRoughness = 0.7,
.colors = .{
0xff463724, 0xff55422b, 0xff6a5030, 0xff836136, 0xff6a5030,
},
.modifiers = .{
.{
.id = "fragile",
.strength = 0.10,
},
},
},
.texture = "branch/oak.png",
},
}