import the former nyan cat rainbow
call it "horizontal rainbow" if pbj_pup_alias_nyancat is nil/false, and mt_game nyan cat does not exist (in either form), alias the old name to this rainbow.
This commit is contained in:
parent
a47da04e6d
commit
64b5b673fd
@ -9,3 +9,4 @@ wool?
|
||||
xdecor?
|
||||
caverealms?
|
||||
technic?
|
||||
nyancat?
|
||||
|
28
init.lua
28
init.lua
@ -17,13 +17,37 @@ end
|
||||
|
||||
-- Nodes
|
||||
|
||||
minetest.register_node("gloopblocks:rainbow_block", {
|
||||
description = S("Rainbow Block"),
|
||||
minetest.register_node("gloopblocks:rainbow_block_diagonal", {
|
||||
description = S("Diagonal Rainbow Block"),
|
||||
tiles = {"gloopblocks_rainbow_block.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
minetest.register_alias("gloopblocks:rainbow_block", "gloopblocks:rainbow_block_diagonal")
|
||||
|
||||
minetest.register_node("gloopblocks:rainbow_block_horizontal", {
|
||||
description = "Horizontal Rainbow Block",
|
||||
tiles = {
|
||||
"gloopblocks_rainbow_horizontal.png^[transformR90",
|
||||
"gloopblocks_rainbow_horizontal.png^[transformR90",
|
||||
"gloopblocks_rainbow_horizontal.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = default.LIGHT_MAX,
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
if not minetest.setting_getbool("pbj_pup_alias_nyancat") then
|
||||
if not minetest.registered_nodes["nyancat:nyancat_rainbow"] then
|
||||
minetest.register_alias("nyancat:nyancat_rainbow", "gloopblocks:rainbow_block_horizontal")
|
||||
elseif not minetest.registered_nodes["default:nyancat_rainbow"] then
|
||||
minetest.register_alias("default:nyancat_rainbow", "gloopblocks:rainbow_block_horizontal")
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_node("gloopblocks:cement", {
|
||||
description = S("Cement"),
|
||||
|
BIN
textures/gloopblocks_rainbow_horizontal.png
Normal file
BIN
textures/gloopblocks_rainbow_horizontal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 137 B |
Loading…
x
Reference in New Issue
Block a user