From 91849c3b4e346ee23e54fc6d1a9e5a21b0b90340 Mon Sep 17 00:00:00 2001 From: 4Evergreen4 Date: Sat, 10 Aug 2013 09:54:52 -0400 Subject: [PATCH] Implemented facedir in the nyan cat rainbow --- mods/default/mapgen.lua | 2 +- mods/default/nodes.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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(), }) -- 2.25.1