createbread.lua

main 20 lines · 605 bytes Raw
Alex Alex Commit Server upload 18/10/2026 23:38
1local liquidContainers = {1775, 2005, 2006, 2007, 2008, 2009, 2011, 2012, 2013, 2014, 2015, 2023, 2031, 2032, 2033}
2local millstones = {1381, 1382, 1383, 1384}
3
4function onUse(player, item, fromPosition, target, toPosition, isHotkey)
5 local itemId = item:getId()
6 if itemId == 2692 then
7 if target.type == 1 and table.contains(liquidContainers, target.itemid) then
8 item:remove(1)
9 player:addItem(2693, 1)
10 target:transform(target.itemid, 0)
11 return true
12 end
13 elseif table.contains(millstones, target.itemid) then
14 item:remove(1)
15 player:addItem(2692, 1)
16 return true
17 end
18 return false
19end
20
Top