canary/data/scripts/actions/tools/sickle.lua
2024-08-29 19:45:55 -03:00

13 lines
275 B
Lua

local sickle = Action()
function sickle.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.itemid == 5463 then
target:transform(5462)
target:decay()
Game.createItem(5466, 1, toPosition)
return true
end
end
sickle:id(3293)
sickle:register()