Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local item = {2650, 2382, 2509, 2050, 2182, 8819, 8820}
- -- local itemPos = {x=32370, y=32245, z=7}
- function Position(x, y, z, stackpos)
- local position = {x = 0, y = 0, z = 0}
- if(isNumeric(x .. y .. z)) then
- position = {x = x, y = y, z = z}
- if(isNumeric(stackpos)) then
- position.stackpos = stackpos
- end
- end
- return position
- end
- function onThink(interval, lastExecution)
- for i = 1, 255 do
- if getTileThingByPos(Position(32370, 32245, 7, i)) ~= nil then
- addEvent(doRemoveItem, 500, getItem.uid, 1)
- break
- end
- end
- addEvent(doCreateItem, 1000, item[math.random(3)], 1, itemPos)
- return 1
- end
Advertisement
Add Comment
Please, Sign In to add comment