Implemented facedir in the nyan cat rainbow
author4Evergreen4 <eljohnson@frontier.com>
Sat, 10 Aug 2013 13:54:52 +0000 (09:54 -0400)
committerShadowNinja <noreply@gmail.com>
Sun, 3 Nov 2013 20:30:24 +0000 (15:30 -0500)
mods/default/mapgen.lua
mods/default/nodes.lua

index 4c8a342e449df8189710031589ca203abc850fb1..afb35e0fef60984a4f7602b651105202f1c709f5 100644 (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
 
index 63b7305b5c9bba708d2b9b0ba6126b106ed52efb..4698c877954ee0a7ff0408dfcc2367598cf1c827 100644 (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(),
 })