Skip to content

Commit

Permalink
Implemented facedir in the nyan cat rainbow
Browse files Browse the repository at this point in the history
  • Loading branch information
4Evergreen4 authored and ShadowNinja committed Nov 3, 2013
1 parent 2d9f34c commit 91849c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mods/default/mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion mods/default/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})
Expand Down

0 comments on commit 91849c3

Please sign in to comment.