Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local M = {}
- -- Inventory Item:
- -- name = "minecraft:charcoal"
- -- itemGroups = [1 = { displayName = "Miscellaneous", id = "misc" }]
- -- tags = { minecraft:coals: true }
- -- count = 64
- -- maxCount = 64
- -- displayName = "Charcoal"
- M.inventory = {}
- M.gasTank = {}
- function M.initInventory()
- for i = 1, 16 do
- local item = turtle.getItemDetail(i, true)
- local validFuel = turtle.refuel(0)
- if(validFuel) then
- M.gasTank[i] = true
- end
- if(#M.gasTank > 1) then
- M.hasGas = true
- end
- M.inventory[i] = item
- end
- end
- return M
Advertisement
Comments
-
- as a roblox studio scripter i cant understand this
Add Comment
Please, Sign In to add comment
Advertisement