From b90afa0b861bc7c0e4b7fd59763763c86d2ec0c0 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 5 Jul 2021 09:18:09 +0100 Subject: [PATCH 1/3] fix nil bug in portal_api.lua fixes a nil bug in portal_api.lua where nodedef.is_ground_content isn't available. --- portal_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal_api.lua b/portal_api.lua index 22d9f34..e1c84f8 100644 --- a/portal_api.lua +++ b/portal_api.lua @@ -2211,7 +2211,7 @@ function nether.volume_is_natural_and_unprotected(minp, maxp, player_name) if id ~= c_air and id ~= c_ignore and id ~= nil then -- checked for common natural or not emerged local name = minetest.get_name_from_content_id(id) local nodedef = minetest.registered_nodes[name] - if not nodedef.is_ground_content then + if nodedef and not nodedef.is_ground_content then -- trees are natural but not "ground content" local node_groups = nodedef.groups if node_groups == nil or (node_groups.tree == nil and node_groups.leaves == nil and node_groups.leafdecay == nil) then From 023539c29733868f47a82fb7f530e34bf0427d94 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 11 Jul 2021 03:10:58 +0100 Subject: [PATCH 2/3] add deep nether brick (#47) * add deep nether brick * Update crafts.lua --- crafts.lua | 10 +++++++++- nodes.lua | 7 +++++++ textures/nether_brick_deep.png | Bin 0 -> 198 bytes 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 textures/nether_brick_deep.png diff --git a/crafts.lua b/crafts.lua index f880e19..88d1d07 100644 --- a/crafts.lua +++ b/crafts.lua @@ -44,6 +44,14 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "nether:brick_deep 4", + recipe = { + {"nether:rack_deep", "nether:rack_deep"}, + {"nether:rack_deep", "nether:rack_deep"} + } +}) + minetest.register_craft({ output = "nether:basalt_hewn", type = "shapeless", @@ -61,4 +69,4 @@ minetest.register_craft({ } }) --- See tools.lua for tools related crafting \ No newline at end of file +-- See tools.lua for tools related crafting diff --git a/nodes.lua b/nodes.lua index 3205783..104b5ff 100644 --- a/nodes.lua +++ b/nodes.lua @@ -161,6 +161,13 @@ minetest.register_node("nether:fence_nether_brick", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("nether:brick_deep", { + description = S("Deep Nether Brick"), + tiles = {"nether_brick_deep.png"}, + is_ground_content = false, + groups = {cracky = 2, level = 2}, + sounds = default.node_sound_stone_defaults() +}) -- Register stair and slab diff --git a/textures/nether_brick_deep.png b/textures/nether_brick_deep.png new file mode 100644 index 0000000000000000000000000000000000000000..a11e53e49118fc29c749cd3ab8488e466c22ed9c GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPE^3h)VWRaCOm)OI&8@VB&zvayW~ z4z6^v$=eB(&G&S14B@!0+Ivv2*+78#DbM%otz0?g41vrInF`6f|A!U%e7Tb4?r`Lo z=NmKq-yR=atBbxf=-Nv(tKL4#d2#dAI{_UjNzPCAOg|;(8(tJw@J;I6;_|ZxFZ73H t@oda{xBAD?eT?f36f~Ec`~UcVp*})@f1Y7XULeqF22WQ%mvv4FO#tULNVot1 literal 0 HcmV?d00001 From 54613d673a855ca38aa7623fd725fb07c534075e Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 10 Jul 2021 18:45:38 +0100 Subject: [PATCH 3/3] Update README.md add texture license info --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9481384..edf300f 100644 --- a/README.md +++ b/README.md @@ -74,4 +74,7 @@ SOFTWARE. * `nether_rack`* (files starting with "nether_rack"): Zeg9 * `nether_tool_`* (files starting with "nether_tool_"): color adjusted versions from "[default](https://github.com/minetest/minetest_game/tree/master/mods/default)" mod, originals by BlockMen -All other media: Copyright © 2013 PilzAdam, licensed under CC BY-SA 3.0 by PilzAdam. \ No newline at end of file +### [Unlicensed but permission for inclusion by kovaszos_uborka](https://www.planetminecraft.com/member/kovaszos_uborka/) + * `nether_brick_deep.png` (edited by TenPlus1) + +All other media: Copyright © 2013 PilzAdam, licensed under CC BY-SA 3.0 by PilzAdam.