Added enderpearl name in its description
parent
c061354c9f
commit
225fe35a03
4
init.lua
4
init.lua
|
@ -6,7 +6,7 @@ local t = minetest.get_translator("enderpearl")
|
|||
|
||||
|
||||
minetest.register_craftitem("enderpearl:ender_pearl", {
|
||||
description = t("Left click to throw it@nIt will teleport you on the node it hits making you 2 damage@n(it won't work if you launch it to an unloaded world area)"),
|
||||
description = "Enderpeal\n"..t("Left click to throw it@nIt will teleport you on the node it hits making you 2 damage@n(it won't work if you launch it to an unloaded world area)"),
|
||||
inventory_image = "enderpearl.png",
|
||||
stack_max = 16,
|
||||
on_use =
|
||||
|
@ -59,7 +59,7 @@ local thrown_ender_pearl = {
|
|||
|
||||
|
||||
|
||||
function thrown_ender_pearl:on_step(dtime, moveresult)
|
||||
function thrown_ender_pearl:on_step(dtime, moveresult)
|
||||
local collided_with_node = moveresult.collisions[1] and moveresult.collisions[1].type == "node"
|
||||
|
||||
-- if it's touching the ground or it collides with a node
|
||||
|
|
Loading…
Reference in New Issue