From a50f714400ab0cae014a92b5bd79f54950bc6162 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 10 Dec 2017 22:40:45 +0100 Subject: [PATCH] Tweak eye of ender behaviour --- mods/ITEMS/mcl_end/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_end/init.lua b/mods/ITEMS/mcl_end/init.lua index 6f834f2c9..2f0c6b4a5 100644 --- a/mods/ITEMS/mcl_end/init.lua +++ b/mods/ITEMS/mcl_end/init.lua @@ -235,7 +235,7 @@ minetest.register_entity("mcl_end:ender_eye", { minetest.register_craftitem("mcl_end:ender_eye", { description = "Eye of Ender", - _doc_items_longdesc = "This item is used to locate End portal shrines and to activate End portals.", + _doc_items_longdesc = "This item is used to locate End portal shrines in the Overworld and to activate End portals.", _doc_items_usagehelp = "Use the attack key to release the eye of ender. It will rise and fly in the horizontal direction of the closest end portal shrine. If you're very close, the eye of ender will take the direct path to the End portal shrine instead. After a few seconds, it stops. It may drop as an item, but there's a 20% chance it shatters." .. "\n" .. "To activate an End portal, eyes of ender need to be placed into each block of an intact End portal frame.", wield_image = "mcl_end_ender_eye.png", inventory_image = "mcl_end_ender_eye.png", @@ -254,7 +254,7 @@ minetest.register_craftitem("mcl_end:ender_eye", { -- Just drop the eye of ender if there are no strongholds if #strongholds <= 0 or dim ~= "overworld" then if not is_creative then - minetest.add_item(origin, "mcl_end:ender_eye") + minetest.item_drop(ItemStack("mcl_end:ender_eye"), user, user:get_pos()) itemstack:take_item() end return itemstack