summaryrefslogtreecommitdiff
path: root/gloopblocks
diff options
context:
space:
mode:
Diffstat (limited to 'gloopblocks')
-rw-r--r--gloopblocks/depends.txt1
-rw-r--r--gloopblocks/init.lua28
-rw-r--r--gloopblocks/textures/gloopblocks_rainbow_horizontal.pngbin0 -> 137 bytes
3 files changed, 27 insertions, 2 deletions
diff --git a/gloopblocks/depends.txt b/gloopblocks/depends.txt
index 8b07d49..cdae19c 100644
--- a/gloopblocks/depends.txt
+++ b/gloopblocks/depends.txt
@@ -9,3 +9,4 @@ wool?
xdecor?
caverealms?
technic?
+nyancat?
diff --git a/gloopblocks/init.lua b/gloopblocks/init.lua
index 5b059eb..48248fc 100644
--- a/gloopblocks/init.lua
+++ b/gloopblocks/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"),
diff --git a/gloopblocks/textures/gloopblocks_rainbow_horizontal.png b/gloopblocks/textures/gloopblocks_rainbow_horizontal.png
new file mode 100644
index 0000000..685a22c
--- /dev/null
+++ b/gloopblocks/textures/gloopblocks_rainbow_horizontal.png
Binary files differ