forked from thunderdog1138/star_wars
Implemented facedir in the nyan cat rainbow
This commit is contained in:
parent
2d9f34cf29
commit
91849c3b4e
|
@ -371,7 +371,7 @@ function default.make_nyancat(pos, facedir, length)
|
|||
for i=1,length do
|
||||
p.x = p.x + tailvec.x
|
||||
p.z = p.z + tailvec.z
|
||||
minetest.set_node(p, {name="default:nyancat_rainbow"})
|
||||
minetest.set_node(p, {name="default:nyancat_rainbow", param2=facedir})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1332,7 +1332,9 @@ minetest.register_node("default:nyancat", {
|
|||
|
||||
minetest.register_node("default:nyancat_rainbow", {
|
||||
description = "Nyan Cat Rainbow",
|
||||
tiles = {"default_nc_rb.png"},
|
||||
tiles = {"default_nc_rb.png^[transformR90", "default_nc_rb.png^[transformR90",
|
||||
"default_nc_rb.png", "default_nc_rb.png"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue