diff --git a/init.lua b/init.lua index f36ebff..229c61e 100644 --- a/init.lua +++ b/init.lua @@ -156,7 +156,12 @@ minetest.override_item("default:leaves", { wield_scale = {x = 0.5, y = 0.5, z = 0.5}, mesh = "leaf.b3d", paramtype = "light", + paramtype2 = "degrotate", visual_scale = 0.5, + on_construct = function(pos) + local node = minetest.get_node(pos) + node.param2 = math.random(10, 169) + end }) minetest.override_item("default:acacia_leaves", { diff --git a/models/leaf.b3d b/models/leaf.b3d index 9213c95..53d134c 100644 Binary files a/models/leaf.b3d and b/models/leaf.b3d differ diff --git a/models/leaf.blend b/models/leaf.blend new file mode 100644 index 0000000..3307561 Binary files /dev/null and b/models/leaf.blend differ