From f0408d20eace4de7add5378716fe28b6deb71b35 Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 12 Sep 2022 15:44:13 +0200 Subject: [PATCH] Nether portal -> struct api, add schematics --- mods/ITEMS/mcl_portals/mod.conf | 2 +- mods/ITEMS/mcl_portals/portal_nether.lua | 15 +++++++++++++++ .../schematics/mcl_portals_nether_portal.mts | Bin 0 -> 80 bytes .../mcl_portals_nether_portal_open.mts | Bin 0 -> 109 bytes 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 mods/ITEMS/mcl_portals/schematics/mcl_portals_nether_portal.mts create mode 100644 mods/ITEMS/mcl_portals/schematics/mcl_portals_nether_portal_open.mts diff --git a/mods/ITEMS/mcl_portals/mod.conf b/mods/ITEMS/mcl_portals/mod.conf index 610b590c6..ab03de570 100644 --- a/mods/ITEMS/mcl_portals/mod.conf +++ b/mods/ITEMS/mcl_portals/mod.conf @@ -1,4 +1,4 @@ name = mcl_portals description = Adds buildable portals to the Nether and End dimensions. -depends = mcl_nether, mcl_end, mcl_particles, mcl_spawn, mcl_credits +depends = mcl_nether, mcl_end, mcl_particles, mcl_spawn, mcl_credits, mcl_structures optional_depends = awards, doc diff --git a/mods/ITEMS/mcl_portals/portal_nether.lua b/mods/ITEMS/mcl_portals/portal_nether.lua index 4a0d7c3c0..5f889d86f 100644 --- a/mods/ITEMS/mcl_portals/portal_nether.lua +++ b/mods/ITEMS/mcl_portals/portal_nether.lua @@ -906,3 +906,18 @@ minetest.override_item(OBSIDIAN, { end end, }) + +mcl_structures.register_structure("nether_portal",{ + nospawn = true, + filenames = { + modpath.."/schematics/mcl_portals_nether_portal.mts" + }, + after_place = function(pos,def,pr,blockseed) + end +}) +mcl_structures.register_structure("nether_portal_open",{ + nospawn = true, + filenames = { + modpath.."/schematics/mcl_portals_nether_portal_open.mts" + }, +}) diff --git a/mods/ITEMS/mcl_portals/schematics/mcl_portals_nether_portal.mts b/mods/ITEMS/mcl_portals/schematics/mcl_portals_nether_portal.mts new file mode 100644 index 0000000000000000000000000000000000000000..b5d75cdbf31887818fc0e92d5ab94bdb24ec9cb5 GIT binary patch literal 80 zcmeYb3HD`RVPIxpWnifX0R|=p=ETe*2Ep9qocQGYqExH=q~gq!%*4EkImrnL2`LPW hZ&Z{el9*dkKTiItv0~poxrLI=-F+Gi3{DK3i~yox87Ke% literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_portals/schematics/mcl_portals_nether_portal_open.mts b/mods/ITEMS/mcl_portals/schematics/mcl_portals_nether_portal_open.mts new file mode 100644 index 0000000000000000000000000000000000000000..a1c6c79ce60db19537e5dfdefbb12adc2aeb8f10 GIT binary patch literal 109 zcmeYb3HD`RVPIxpWnifX0U(n(F|&w4FgH0TJ~_WA)ha)!I5Q