1
0
Fork 0

Tweak eye of ender behaviour

This commit is contained in:
Wuzzy 2017-12-10 22:40:45 +01:00
parent 810357f81a
commit a50f714400
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ minetest.register_entity("mcl_end:ender_eye", {
minetest.register_craftitem("mcl_end:ender_eye", { minetest.register_craftitem("mcl_end:ender_eye", {
description = "Eye of Ender", 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.", _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", wield_image = "mcl_end_ender_eye.png",
inventory_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 -- Just drop the eye of ender if there are no strongholds
if #strongholds <= 0 or dim ~= "overworld" then if #strongholds <= 0 or dim ~= "overworld" then
if not is_creative 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() itemstack:take_item()
end end
return itemstack return itemstack