From: 4Evergreen4 Date: Sat, 10 Aug 2013 13:54:52 +0000 (-0400) Subject: Implemented facedir in the nyan cat rainbow X-Git-Tag: 0.4.8~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=91849c3b4e346ee23e54fc6d1a9e5a21b0b90340;p=oweals%2Fminetest_game.git Implemented facedir in the nyan cat rainbow --- diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index 4c8a342e..afb35e0f 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -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 diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 63b7305b..4698c877 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -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(), })