From 397cd97ae995c3a5a61c08de508ada8241cca6ff Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 28 Jan 2017 01:01:10 +0100 Subject: [PATCH] Add end rod --- mods/mcl_end/init.lua | 56 ++++++++++++++++-- mods/mcl_end/textures/mcl_end_end_rod.png | Bin 6441 -> 0 bytes .../textures/mcl_end_end_rod_bottom.png | Bin 0 -> 944 bytes .../mcl_end/textures/mcl_end_end_rod_side.png | Bin 0 -> 2062 bytes mods/mcl_end/textures/mcl_end_end_rod_top.png | Bin 0 -> 1005 bytes 5 files changed, 51 insertions(+), 5 deletions(-) delete mode 100644 mods/mcl_end/textures/mcl_end_end_rod.png create mode 100644 mods/mcl_end/textures/mcl_end_end_rod_bottom.png create mode 100644 mods/mcl_end/textures/mcl_end_end_rod_side.png create mode 100644 mods/mcl_end/textures/mcl_end_end_rod_top.png diff --git a/mods/mcl_end/init.lua b/mods/mcl_end/init.lua index 9973dd9f..9d0e1618 100644 --- a/mods/mcl_end/init.lua +++ b/mods/mcl_end/init.lua @@ -1,3 +1,4 @@ +-- Nodes minetest.register_node("mcl_end:end_stone", { description = "End Stone", tiles = {"mcl_end_end_stone.png"}, @@ -34,6 +35,40 @@ minetest.register_node("mcl_end:purpur_pillar", { sounds = default.node_sound_stone_defaults(), }) +local rod_box = { + type = "wallmounted", + wall_top = {-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, + wall_side = {-0.5, -0.125, -0.125, 0.5, 0.125, 0.125}, + wall_bottom = {-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, +} +minetest.register_node("mcl_end:end_rod", { + description = "End Rod", + tiles = { + "mcl_end_end_rod_top.png", + "mcl_end_end_rod_bottom.png", + "mcl_end_end_rod_side.png", + "mcl_end_end_rod_side.png", + "mcl_end_end_rod_side.png", + "mcl_end_end_rod_side.png", + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "wallmounted", + light_source = 14, + sunlight_propagates = true, + groups = { dig_immediate=3, deco_block=1 }, + node_box = { + type = "fixed", + fixed = { + {-0.125, -0.5, -0.125, 0.125, -0.4375, 0.125}, -- Base + {-0.0625, -0.4375, -0.0625, 0.0625, 0.5, 0.0625}, -- Rod + }, + }, + selection_box = rod_box, + collision_box = rod_box, + sounds = default.node_sound_glass_defaults(), +}) + minetest.register_node("mcl_end:dragon_egg", { description = "Dragon Egg", tiles = { @@ -66,6 +101,16 @@ minetest.register_node("mcl_end:dragon_egg", { -- TODO: Make dragon egg teleport on punching }) +-- Craftitems +minetest.register_craftitem("mcl_end:ender_eye", { + description = "Eye of Ender", + wield_image = "mcl_end_ender_eye.png", + inventory_image = "mcl_end_ender_eye.png", + stack_max = 64, +}) + + +-- Crafting recipes minetest.register_craft({ output = "mcl_end:end_bricks 4", recipe = { @@ -74,11 +119,12 @@ minetest.register_craft({ } }) -minetest.register_craftitem("mcl_end:ender_eye", { - description = "Eye of Ender", - wield_image = "mcl_end_ender_eye.png", - inventory_image = "mcl_end_ender_eye.png", - stack_max = 64, +minetest.register_craft({ + output = "mcl_end:end_rod 4", + recipe = { + {"mcl_mobitems:blaze_rod"}, + {"mcl_end:chorus_fruit_popped"}, + }, }) minetest.register_craft({ diff --git a/mods/mcl_end/textures/mcl_end_end_rod.png b/mods/mcl_end/textures/mcl_end_end_rod.png deleted file mode 100644 index 72ae555277b519771936fad120b147f2527d9757..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6441 zcmV+^8P?{BP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!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