From 86c8387f19f8fb359818f2a6f0c753960982775e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 2 Sep 2017 15:49:41 +0200 Subject: [PATCH] Add end portal frame (nodes only) --- mods/ITEMS/mcl_portals/portal_end.lua | 51 +++++++++++++++++- .../textures/mcl_portals_endframe_eye.png | Bin 0 -> 168 bytes .../textures/mcl_portals_endframe_side.png | Bin 0 -> 202 bytes .../textures/mcl_portals_endframe_top.png | Bin 0 -> 197 bytes mods/MISC/mcl_wip/init.lua | 2 + tools/Texture_Conversion_Table.csv | 3 ++ 6 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 mods/ITEMS/mcl_portals/textures/mcl_portals_endframe_eye.png create mode 100644 mods/ITEMS/mcl_portals/textures/mcl_portals_endframe_side.png create mode 100644 mods/ITEMS/mcl_portals/textures/mcl_portals_endframe_top.png diff --git a/mods/ITEMS/mcl_portals/portal_end.lua b/mods/ITEMS/mcl_portals/portal_end.lua index 8ed499b5..545a54a3 100644 --- a/mods/ITEMS/mcl_portals/portal_end.lua +++ b/mods/ITEMS/mcl_portals/portal_end.lua @@ -415,13 +415,62 @@ minetest.register_abm({ local portal_open_help = "To open an End portal, place an upright frame of quartz blocks with a length of 4 blocks and a height of 5 blocks, leaving only air in the center. After placing this frame, use an eye of ender on the frame. The eye of ender is destroyed in the process." --- Frame material +-- Fake frame material minetest.override_item(portal_frame, { _doc_items_longdesc = "A block of quartz can be used to create End portals.", _doc_items_usagehelp = portal_open_help, on_destruct = destroy_portal, }) + +-- End Portal Frame (TODO) +minetest.register_node("mcl_portals:end_portal_frame", { + description = "End Portal Frame", + groups = { creative_breakable = 1, deco_block = 1 }, + tiles = { "mcl_portals_endframe_top.png", "mcl_portals_endframe_top.png", "mcl_portals_endframe_side.png" }, + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 5/16, 0.5 }, + }, + is_ground_content = false, + sounds = mcl_sounds.node_sound_stone_defaults(), + paramtype = "light", + sunlight_propagates = false, + light_source = 1, + _mcl_blast_resistance = 18000000, + _mcl_hardness = -1, +}) + +minetest.register_node("mcl_portals:end_portal_frame_eye", { + description = "End Portal Frame with Eye of Ender", + _doc_items_create_entry = false, + groups = { creative_breakable = 1, not_in_creative_inventory = 1 }, + tiles = { "mcl_portals_endframe_top.png^[lowpart:75:mcl_portals_endframe_eye.png", "mcl_portals_endframe_top.png", "mcl_portals_endframe_eye.png^mcl_portals_endframe_side.png" }, + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + { -0.5, -0.5, -0.5, 0.5, 5/16, 0.5 }, -- Frame + { -4/16, 5/16, -4/16, 4/16, 0.5, 4/16 }, -- Eye + }, + }, + is_ground_content = false, + sounds = mcl_sounds.node_sound_stone_defaults(), + paramtype = "light", + sunlight_propagates = false, + light_source = 1, + _mcl_blast_resistance = 18000000, + _mcl_hardness = -1, +}) + +if minetest.get_modpath("doc") then + doc.add_entry_alias("nodes", "mcl_portals:end_portal_frame", "nodes", "mcl_portals:end_portal_frame_eye") +end + + -- Portal opener minetest.override_item("mcl_end:ender_eye", { _doc_items_longdesc = "An eye of ender can be used to open End portals.", diff --git a/mods/ITEMS/mcl_portals/textures/mcl_portals_endframe_eye.png b/mods/ITEMS/mcl_portals/textures/mcl_portals_endframe_eye.png new file mode 100644 index 0000000000000000000000000000000000000000..c1d3a2bb620b030d6464eb6df5e334899c4514c4 GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd7G?$phPQVgfdoVYd_r6q7#K2`m<|Rjbn1w& zu#yR6;eOv@K6~Gf76t|e#*!evU&Tz0YaX1GE9O4KmZ1Uio=~&viMAOnq!YfmtZ9?ECr5Hme>p%tu(*>Nqcb_or RW?*1o@O1TaS?83{1OOa>EBgQd literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_portals/textures/mcl_portals_endframe_side.png b/mods/ITEMS/mcl_portals/textures/mcl_portals_endframe_side.png new file mode 100644 index 0000000000000000000000000000000000000000..a2370ecefe91c0528ee25ae446274965645f7743 GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd7G?$phPQVgfdoVYd_r6q7#OOGQ#+fA3esbe zL*0CAOu{^D8YJFrV_;xlED7=pW^j0RBaMN9A=%T#F{FaAwmXp5*^r0XSMe=}36EC) z0h9F{)7lky>p5O4Z