mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 06:34:55 +02:00
fix fluid colors and add few more items functionality from 781
This commit is contained in:
20
data/actions/scripts/misc/distilling_rum.lua
Normal file
20
data/actions/scripts/misc/distilling_rum.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
local distillingMachines = {
|
||||
[5468] = 5512,
|
||||
[5469] = 5513
|
||||
}
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if not target:isItem() then
|
||||
return false
|
||||
end
|
||||
|
||||
local machine = distillingMachines[target:getId()]
|
||||
if machine then
|
||||
target:transform(machine, 1)
|
||||
target:decay()
|
||||
item:remove(1)
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
Reference in New Issue
Block a user