Tweak eye of ender behaviour

This commit is contained in:
Wuzzy 2017-12-10 22:40:45 +01:00
parent 810357f81a
commit a50f714400

View File

@ -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