diff options
-rw-r--r-- | gloopblocks/depends.txt | 1 | ||||
-rw-r--r-- | gloopblocks/init.lua | 28 | ||||
-rw-r--r-- | gloopblocks/textures/gloopblocks_rainbow_horizontal.png | bin | 0 -> 137 bytes | |||
-rw-r--r-- | technic/radiation.lua | 3 |
4 files changed, 29 insertions, 3 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 Binary files differnew file mode 100644 index 0000000..685a22c --- /dev/null +++ b/gloopblocks/textures/gloopblocks_rainbow_horizontal.png diff --git a/technic/radiation.lua b/technic/radiation.lua index 7bf70da..79dfcb4 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -56,7 +56,8 @@ local rad_resistance_node = { ["default:mossycobble"] = 15, ["pbj_pup:pbj_pup"] = 10000, ["pbj_pup:pbj_pup_candies"] = 10000, - ["gloopblocks:rainbow_block"] = 5000, + ["gloopblocks:rainbow_block_diagonal"] = 5000, + ["gloopblocks:rainbow_block_horizontal"] = 10000, ["default:nyancat"] = 10000, ["default:nyancat_rainbow"] = 10000, ["nyancat:nyancat"] = 10000, |