1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

Implemented facedir in the nyan cat rainbow

This commit is contained in:
4Evergreen4 2013-08-10 09:54:52 -04:00 committed by ShadowNinja
parent 2d9f34cf29
commit 91849c3b4e
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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(),
})