From 0486451045914f7fd0c3c84b5651cb845acc0ea9 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sun, 19 Aug 2018 20:27:52 -0400 Subject: [PATCH] import usesdirt mod's more useful (for building) items. --- depends.txt | 1 + init.lua | 171 +++++++++++++++++++- textures/gloopblocks_dirt_brick_overlay.png | Bin 0 -> 430 bytes textures/gloopblocks_dirt_cobble_mask.png | Bin 0 -> 224 bytes textures/gloopblocks_dirt_stone_mask.png | Bin 0 -> 268 bytes textures/gloopblocks_ladder_mask.png | Bin 0 -> 110 bytes textures/gloopblocks_ladder_overlay.png | Bin 0 -> 141 bytes 7 files changed, 171 insertions(+), 1 deletion(-) create mode 100644 textures/gloopblocks_dirt_brick_overlay.png create mode 100644 textures/gloopblocks_dirt_cobble_mask.png create mode 100644 textures/gloopblocks_dirt_stone_mask.png create mode 100644 textures/gloopblocks_ladder_mask.png create mode 100644 textures/gloopblocks_ladder_overlay.png diff --git a/depends.txt b/depends.txt index cdae19c..6b7584f 100644 --- a/depends.txt +++ b/depends.txt @@ -10,3 +10,4 @@ xdecor? caverealms? technic? nyancat? +usesdirt? diff --git a/init.lua b/init.lua index 44b51b8..387b6e1 100644 --- a/init.lua +++ b/init.lua @@ -62,7 +62,6 @@ minetest.register_node("gloopblocks:evil_block", { sounds = default.node_sound_stone_defaults(), }) - minetest.register_node("gloopblocks:basalt", { description = S("Basalt"), tiles = {"gloopblocks_basalt.png"}, @@ -159,6 +158,176 @@ minetest.register_node("gloopblocks:scaffolding", { minetest.register_alias("moreblocks:oerkkiblock", "gloopblocks:oerkki_block") minetest.register_alias("gloopblocks:obsidian", "default:obsidian") +-- Nodes imported from Usesdirt ================================================================================ + +if not minetest.get_modpath("usesdirt") then + + local dirt_brick_tex = "default_dirt.png^gloopblocks_dirt_brick_overlay.png" + local dirt_cobble_tex = "default_cobble.png^(default_dirt.png^[mask:gloopblocks_dirt_cobble_mask.png)" + local dirt_stone_tex = "default_stone.png^(default_dirt.png^[mask:gloopblocks_dirt_stone_mask.png)" + + local dirt_ladder_tex = "(default_dirt.png^[mask:gloopblocks_ladder_mask.png)^gloopblocks_ladder_overlay.png" + local dirt_cobble_ladder_tex = "(("..dirt_cobble_tex..")^[mask:gloopblocks_ladder_mask.png)^gloopblocks_ladder_overlay.png" + local dirt_stone_ladder_tex = "(("..dirt_stone_tex..")^[mask:gloopblocks_ladder_mask.png)^gloopblocks_ladder_overlay.png" + + minetest.register_node(":usesdirt:dirt_brick", { + tiles = { dirt_brick_tex }, + description = "Dirt Brick", + groups = {snappy=2,choppy=1,oddly_breakable_by_hand=2}, + }) + minetest.register_craft({ + output = '"usesdirt:dirt_brick" 6', + recipe = { + {'default:dirt', 'default:dirt', 'default:dirt'}, + {'default:dirt', 'default:dirt', 'default:dirt'}, + {'default:dirt', 'default:dirt', 'default:dirt'}, + } + }) + + minetest.register_node(":usesdirt:dirt_ladder", { + description = "Ladder", + drawtype = "signlike", + tiles = { dirt_ladder_tex }, + inventory_image = dirt_ladder_tex, + wield_image = dirt_ladder_tex, + paramtype = "light", + paramtype2 = "wallmounted", + is_ground_content = true, + walkable = false, + climbable = true, + selection_box = { + type = "wallmounted", + --wall_top = = + --wall_bottom = = + --wall_side = = + }, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3}, + legacy_wallmounted = true, + }) + minetest.register_craft({ + output = 'usesdirt:dirt_ladder 3', + recipe = { + {'usesdirt:dirt_brick', '', 'usesdirt:dirt_brick'}, + {'usesdirt:dirt_brick', 'usesdirt:dirt_brick','usesdirt:dirt_brick'}, + {'usesdirt:dirt_brick','','usesdirt:dirt_brick'}, + } + }) + + default.register_fence(":usesdirt:dirt_fence", { + description = "Dirt Fence", + texture = "default_dirt.png", + inventory_image = "default_fence_overlay.png^default_dirt.png^default_fence_overlay.png^[makealpha:255,126,126", + wield_image = "default_fence_overlay.png^default_dirt.png^default_fence_overlay.png^[makealpha:255,126,126", + material = "default:dirt", + groups = {snappy=2,choppy=1,oddly_breakable_by_hand=3}, + sounds = default.node_sound_dirt_defaults() + }) + +---- + + minetest.register_node(":usesdirt:dirt_cobble_stone", { + tiles = { dirt_cobble_tex }, + description = "Dirt Cobble Stone", + is_ground_content = true, + groups = {cracky=3, stone=2}, + }) + minetest.register_craft({ + output = '"usesdirt:dirt_cobble_stone" 3', + recipe = { + {'usesdirt:dirt_brick', 'usesdirt:dirt_brick', 'usesdirt:dirt_brick'}, + {'usesdirt:dirt_brick', 'usesdirt:dirt_brick', 'usesdirt:dirt_brick'}, + {'usesdirt:dirt_brick', 'usesdirt:dirt_brick', 'usesdirt:dirt_brick'}, + } + }) + + minetest.register_node(":usesdirt:dirt_cobble_stone_ladder", { + description = "Ladder", + drawtype = "signlike", + tiles = { dirt_cobble_ladder_tex }, + inventory_image = dirt_cobble_ladder_tex, + wield_image = dirt_cobble_ladder_tex, + paramtype = "light", + paramtype2 = "wallmounted", + is_ground_content = true, + walkable = false, + climbable = true, + selection_box = { + type = "wallmounted", + --wall_top = = + --wall_bottom = = + --wall_side = = + }, + groups = {cracky=3, stone=2}, + legacy_wallmounted = true, + }) + minetest.register_craft({ + output = 'usesdirt:dirt_cobble_stone_ladder 3', + recipe = { + {'usesdirt:dirt_cobble_stone', '', 'usesdirt:dirt_cobble_stone'}, + {'usesdirt:dirt_cobble_stone', 'usesdirt:dirt_cobble_stone','usesdirt:dirt_cobble_stone'}, + {'usesdirt:dirt_cobble_stone','','usesdirt:dirt_cobble_stone'}, + } + }) + + default.register_fence(":usesdirt:dirt_cobble_stone_fence", { + description = "Dirt Cobble Stone Fence", + texture = dirt_cobble_tex, + inventory_image = "default_fence_overlay.png^("..dirt_cobble_tex..")^default_fence_overlay.png^[makealpha:255,126,126", + wield_image = "default_fence_overlay.png^("..dirt_cobble_tex..")^default_fence_overlay.png^[makealpha:255,126,126", + material = "usesdirt:dirt_cobble_stone", + groups = {cracky=3, stone=2}, + sounds = default.node_sound_stone_defaults() + }) + +---- + + minetest.register_node(":usesdirt:dirt_stone", { + tiles = { dirt_stone_tex }, + description = "Dirt Stone", + is_ground_content = true, + groups = {cracky=3, stone=2}, + }) + + minetest.register_node(":usesdirt:dirt_stone_ladder", { + description = "Ladder", + drawtype = "signlike", + tiles = { dirt_stone_ladder_tex }, + inventory_image = dirt_stone_ladder_tex, + wield_image = dirt_stone_ladder_tex, + paramtype = "light", + paramtype2 = "wallmounted", + is_ground_content = true, + walkable = false, + climbable = true, + selection_box = { + type = "wallmounted", + --wall_top = = + --wall_bottom = = + --wall_side = = + }, + groups = {cracky=3, stone=2}, + legacy_wallmounted = true, + }) + minetest.register_craft({ + output = 'usesdirt:dirt_stone_ladder 3', + recipe = { + {'usesdirt:dirt_stone', '', 'usesdirt:dirt_stone'}, + {'usesdirt:dirt_stone', 'usesdirt:dirt_stone','usesdirt:dirt_stone'}, + {'usesdirt:dirt_stone','','usesdirt:dirt_stone'}, + } + }) + + default.register_fence(":usesdirt:dirt_stone_fence", { + description = "Dirt Cobble Stone Fence", + texture = dirt_cobble_tex, + inventory_image = "default_fence_overlay.png^("..dirt_stone_tex..")^default_fence_overlay.png^[makealpha:255,126,126", + wield_image = "default_fence_overlay.png^("..dirt_stone_tex..")^default_fence_overlay.png^[makealpha:255,126,126", + material = "usesdirt:dirt_stone", + groups = {cracky=3, stone=2}, + sounds = default.node_sound_stone_defaults() + }) +end + -- Stairs/slabs defs, conversion of normal -> mossy items if minetest.setting_getbool("gloopblocks_mossy_conversion") ~= false then diff --git a/textures/gloopblocks_dirt_brick_overlay.png b/textures/gloopblocks_dirt_brick_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..2eb70c601264bc02a51fea476468ee0d44609c02 GIT binary patch literal 430 zcmV;f0a5;mP)-UB^)Z_?tLWC=(arcez8nt49c>+*lzm4 z5842{S(bZJZ~KQkIK~*m-{iN5!H0I#Tb8QavH#sXpmomKS)cc0jWLEaNfE+fFc=VaLR6wC%98v;lVuvw5*TCn Y1nF0l`3<(c;s5{u07*qoM6N<$f>U-pr13>V(i~lu%fPASx z=y18acVoy6K4xZ|Tk!2%oY)lGi74`C!%3Ks5;X!7MM!E?_VsAMg(m_5pbJKK)#+_q zN)7M}^#qYP5^D1-F2^8K_ZgaVe3+JN)010@vz4QH(3{sr(0u`@?f3il={ zCPs`=l5oYT8cFNq(nEQcU;$wLY`yJ)EfQZlAZfkbh6gar?mIYI4;mBz)(aF!O1h%; zr|21l!G%$I#S4c0A4fcdlawc%A*7AbNbYpj*knPnBVy`=n|C^+D{xslNeMF>CtK-} zyzqX6MslAdGLmaddg$RktnS6)&eg3nqZ5>rM&)SbP1Wj!jjO!f{Id1N()@Y19@0t8g4Ua-0(XP oBqDBP7{K9nIKhOc%~OJbq4}t(oHpyTW}x{Dp00i_>zopr0GF3ASO5S3 literal 0 HcmV?d00001