builder improvements - resource manager

This commit is contained in:
kepler155c@gmail.com 2017-07-02 10:05:10 -04:00
parent 7f99c0c69a
commit 027f386ed1
9 changed files with 1009 additions and 707 deletions

View File

@ -1,5 +1,5 @@
local class = require('class')
local TableDB = require('tableDB')
local itemDB = require('itemDB')
local Peripheral = require('peripheral')
local ChestProvider = class()
@ -28,14 +28,6 @@ function ChestProvider:init(args)
if chest then
Util.merge(self, chest)
end
if not self.itemInfoDB then
self.itemInfoDB = TableDB({
fileName = 'items.db'
})
self.itemInfoDB:load()
end
end
function ChestProvider:isValid()
@ -43,9 +35,9 @@ function ChestProvider:isValid()
end
function ChestProvider:getCachedItemDetails(item, k)
local key = table.concat({ item.name, item.damage, item.nbtHash }, ':')
local key = { item.name, item.damage, item.nbtHash }
local detail = self.itemInfoDB:get(key)
local detail = itemDB:get(key)
if not detail then
pcall(function() detail = self.getItemMeta(k) end)
if not detail then
@ -64,7 +56,7 @@ function ChestProvider:getCachedItemDetails(item, k)
end
end
self.itemInfoDB:add(key, detail)
itemDB:add(key, detail)
end
if detail then
return Util.shallowCopy(detail)
@ -108,7 +100,7 @@ function ChestProvider:listItems(throttle)
throttle()
end
self.itemInfoDB:flush()
itemDB:flush()
return items
end
@ -127,12 +119,14 @@ end
function ChestProvider:craftItems(items)
end
function ChestProvider:provide(item, qty, slot)
function ChestProvider:provide(item, qty, slot, direction)
local stacks = self.list()
for key,stack in pairs(stacks) do
if stack.name == item.id and stack.damage == item.dmg then
local amount = math.min(qty, stack.count)
self.pushItems(self.direction, key, amount, slot)
if amount > 0 then
self.pushItems(direction or self.direction, key, amount, slot)
end
qty = qty - amount
if qty <= 0 then
break

View File

@ -153,9 +153,9 @@ function Event.pullEvents(...)
end
else
while true do
local e = { os.pullEvent() }
local e = { os.pullEventRaw() }
Event.processEvent(e)
if exitPullEvents or e == 'terminate' then
if exitPullEvents or e[1] == 'terminate' then
break
end
end

35
sys/apis/itemDB.lua Normal file
View File

@ -0,0 +1,35 @@
local TableDB = require('tableDB')
local itemDB = TableDB({ fileName = 'usr/config/items.db' })
function itemDB:get(key)
local item = TableDB.get(self, key)
if item then
return item
end
if key[2] ~= 0 then
item = TableDB.get(self, { key[1], 0, key[3] })
if item and item.maxDamage > 0 then
return item
end
end
end
function itemDB:add(key, item)
if item.maxDamage > 0 then
key = { key[1], 0, key[3] }
end
TableDB.add(self, key, item)
end
function itemDB:makeKey(item)
return { item.name, item.damage, item.nbtHash }
end
itemDB:load()
return itemDB

View File

@ -1,6 +1,6 @@
local class = require('class')
local Peripheral = require('peripheral')
local TableDB = require('tableDB')
local itemDB = require('itemDB')
local RefinedProvider = class()
@ -14,7 +14,6 @@ local keys = {
}
function RefinedProvider:init(args)
local defaults = {
items = { },
name = 'refinedStorage',
@ -26,14 +25,6 @@ function RefinedProvider:init(args)
if controller then
Util.merge(self, controller)
end
if not self.itemInfoDB then
self.itemInfoDB = TableDB({
fileName = 'items.db'
})
self.itemInfoDB:load()
end
end
function RefinedProvider:isValid()
@ -45,9 +36,9 @@ function RefinedProvider:isOnline()
end
function RefinedProvider:getCachedItemDetails(item)
local key = table.concat({ item.name, item.damage, item.nbtHash }, ':')
local key = { item.name, item.damage, item.nbtHash }
local detail = self.itemInfoDB:get(key)
local detail = itemDB:get(key)
if not detail then
detail = self.findItem(item)
if detail then
@ -63,12 +54,12 @@ function RefinedProvider:getCachedItemDetails(item)
detail.lname = detail.displayName:lower()
local t = { }
for _,key in pairs(keys) do
t[key] = detail[key]
for _,k in pairs(keys) do
t[k] = detail[k]
end
detail = t
self.itemInfoDB:add(key, detail)
itemDB:add(key, detail)
end
end
if detail then
@ -99,7 +90,7 @@ function RefinedProvider:listItems()
end
throttle()
end
self.itemInfoDB:flush()
itemDB:flush()
end
return items
@ -107,9 +98,9 @@ end
function RefinedProvider:getItemInfo(fingerprint)
local key = table.concat({ fingerprint.name, fingerprint.damage, fingerprint.nbtHash }, ':')
local key = { fingerprint.name, fingerprint.damage, fingerprint.nbtHash }
local item = self.itemInfoDB:get(key)
local item = itemDB:get(key)
if not item then
return self:getCachedItemDetails(fingerprint)
end

View File

@ -706,11 +706,14 @@ function Schematic:determineBlockPlacement(y)
table.remove(dirtyBlocks, k)
end
elseif d == 'bottom' then
b.bottom = true -- flag this as a bottom block
local _,db = self:findIndexAt(b.x, b.z, b.y-1)
if db then
if not db.direction or db.direction ~= 'bottom' then
-- not a slab below, ok to place from above
b.direction = nil
if not db.bottom then
b.direction = nil
end
end
-- it is a slab below - must be pistoned
table.remove(dirtyBlocks, k)

View File

@ -266,7 +266,7 @@ function Builder:getAirResupplyList(blockIndex)
local fuel = subDB:getSubstitutedItem(Builder.fuelItem.id, Builder.fuelItem.dmg)
slots[15] = {
id = 'minecraft:chest',
id = 'ironchest:BlockIronChest', -- 'minecraft:chest',
dmg = 0,
qty = 0,
need = 1,

949
sys/apps/chestManager.lua Normal file
View File

@ -0,0 +1,949 @@
require = requireInjector(getfenv(1))
local UI = require('ui')
local Config = require('config')
local ChestProvider = require('chestProvider18')
local RefinedProvider = require('refinedProvider')
local itemDB = require('itemDB')
local Terminal = require('terminal')
-- 3 wide monitor (any side of turtle)
-- Config location is /sys/config/chestManager
-- adjust directions in that file if needed
local config = {
trashDirection = 'up', -- trash /chest in relation to interface
turtleDirection = 'down', -- turtle in relation to interface
noCraftingStorage = 'false' -- no ME crafting (or ability to tell if powered - use with caution)
}
Config.load('resourceManager', config)
local controller = RefinedProvider()
if not controller:isValid() then
-- error('Refined storage controller not found')
controller = nil
end
local chestProvider = ChestProvider({ direction = 'west', wrapSide = 'back' })
local jobListGrid
local craftingPaused = false
local recipes = Util.readTable('recipes') or { }
multishell.setTitle(multishell.getCurrent(), 'Resource Manager')
function getItem(items, inItem, ignoreDamage)
for _,item in pairs(items) do
if item.name == inItem.name then
if ignoreDamage then
return item
elseif item.damage == inItem.damage and item.nbtHash == inItem.nbtHash then
return item
end
end
end
end
local function getItemQuantity(items, item)
item = getItem(items, item)
if item then
return item.count
end
return 0
end
local function getItemDetails(items, item)
local cItem = getItem(items, item)
if cItem then
return cItem
end
cItem = itemDB:get(itemDB:makeKey(item))
if cItem then
return { count = 0, maxCount = cItem.maxCount }
enditemDB:makeKey
return { count = 0, maxCount = 64 }
end
local function uniqueKey(item)
return table.concat({ item.name, item.damage, item.nbtHash }, ':')
end
function getName(item)
local detail = itemDB:get(itemDB:makeKey(item))
if detail then
return detail.displayName
end
return item.name .. ':' .. item.damage
end
function mergeResources(t)
local resources = Util.readTable('resource.limits') or { }
for _,v in pairs(resources) do
v.low = tonumber(v.low) -- backwards compatibility
local item = getItem(t, v)
if item then
item.low = v.low
item.limit = v.limit
item.auto = v.auto
item.ignoreDamage = v.ignoreDamage
item.rsControl = v.rsControl
item.rsDevice = v.rsDevice
item.rsSide = v.rsSide
else
v.count = 0
table.insert(t, v)
end
end
for _,v in pairs(recipes) do
local item = getItem(t, v)
if item then
item.has_recipe = true
else
item = Util.shallowCopy(v)
item.displayName = getName(item)
item.count = 0
item.has_recipe = true
table.insert(t, item)
end
end
for _,v in pairs(t) do
v.lname = v.displayName:lower()
end
end
function filterItems(t, filter)
local r = {}
if filter then
filter = filter:lower()
for k,v in pairs(t) do
if string.find(v.lname, filter) then
table.insert(r, v)
end
end
else
return t
end
return r
end
function sumItems3(ingredients, items, summedItems, count)
local canCraft = 0
for _,item in pairs(ingredients) do
local key = uniqueKey(item)
local summedItem = summedItems[key]
if not summedItem then
summedItem = Util.shallowCopy(item)
summedItem.recipe = recipes[key]
summedItem.count = getItemQuantity(items, summedItem)
summedItems[key] = summedItem
end
summedItem.count = summedItem.count - count
if summedItem.recipe and summedItem.count < 0 then
local need = math.ceil(-summedItem.count / summedItem.recipe.count)
summedItem.count = 0
sumItems3(summedItem.recipe.ingredients, items, summedItems, need)
end
end
end
local function sumItems2(ingredients, items, summedItems, count)
local canCraft = 0
for i = 1, count do
for _,item in pairs(ingredients) do
local key = uniqueKey(item)
local summedItem = summedItems[key]
if not summedItem then
summedItem = Util.shallowCopy(item)
summedItem.recipe = recipes[key]
summedItem.count = getItemQuantity(items, summedItem)
summedItems[key] = summedItem
end
if summedItem.recipe and summedItem.count <= 0 then
summedItem.count = sumItems2(summedItem.recipe.ingredients, items, summedItems, 1)
end
if summedItem.count <= 0 then
return canCraft
end
summedItem.count = summedItem.count - item.count
end
canCraft = canCraft + 1
end
return canCraft
end
function sumItems(items)
local t = {}
for _,item in pairs(items) do
local key = uniqueKey(item)
local summedItem = t[key]
if summedItem then
summedItem.count = summedItem.count + item.count
else
summedItem = Util.shallowCopy(item)
summedItem.recipe = recipes[key]
t[key] = summedItem
end
end
return t
end
function isGridClear()
for i = 1, 16 do
if turtle.getItemCount(i) ~= 0 then
return false
end
end
return true
end
local function clearGrid()
for i = 1, 16 do
local count = turtle.getItemCount(i)
if count > 0 then
chestProvider:insert(i, count)
if turtle.getItemCount(i) ~= 0 then
return false
end
end
end
return true
end
function turtleCraft(recipe, originalItem, qty)
for k,v in pairs(recipe.ingredients) do
-- ugh
local dmg = v.damage
--FIX - LOOKUP IN ITEMS
if v.max_dmg and v.max_dmg > 0 then
local item = ME.getItemDetail({ id = v.id, nbt_hash = v.nbt_hash }, false)
if item then
dmg = item.dmg
end
end
chestProvider:provide({ id = v.name, dmg = dmg, nbt_hash = v.nbtHash }, v.count * qty, k)
if turtle.getItemCount(k) ~= v.count * qty then
clearGrid()
originalItem.status = v.name .. ' (extract failed)'
return false
end
end
if not turtle.craft() then
clearGrid()
return false
end
--for k,ingredient in pairs(recipe.ingredients) do
-- local item = getItem(items, ingredient)
-- item.count = item.count - ingredient.count
--end
clearGrid()
return true
end
function addCraftingRequest(item, craftList, count)
local key = uniqueKey(item)
local request = craftList[key]
if not craftList[key] then
request = { name = item.name, damage = item.damage, nbtHash = nbtHash, count = 0 }
request.displayName = getName(request)
craftList[key] = request
end
request.count = request.count + count
end
function craftRecipe(recipe, items, originalItem, count)
local maxCount = 64
local summedItems = sumItems(recipe.ingredients)
for key,ingredient in pairs(summedItems) do
local details = getItemDetails(items, ingredient)
maxCount = math.min(details.maxCount, maxCount)
if details.count < ingredient.count * count then
if ingredient.recipe then
if not craftRecipe(ingredient.recipe, items, originalItem, ingredient.count * count - details.count) then
return
end
end
end
end
repeat
if not turtleCraft(recipe, originalItem, math.min(count, maxCount)) then
return false
end
count = count - maxCount
until count < 0
return true
end
function craftItem(recipe, items, originalItem, craftList, count)
if craftingPaused or not device.workbench or not isGridClear() then
return
end
count = math.ceil(count / recipe.count)
local toCraft = sumItems2(recipe.ingredients, items, { }, count)
if toCraft > 0 then
craftRecipe(recipe, items, originalItem, toCraft)
end
count = count - toCraft
items = chestProvider:listItems()
local summedItems = { }
sumItems3(recipe.ingredients, items, summedItems, count)
for key,ingredient in pairs(summedItems) do
if not ingredient.recipe and ingredient.count < 0 then
addCraftingRequest(ingredient, craftList, -ingredient.count)
end
end
end
function craftItems(craftList, allItems)
for _,key in pairs(Util.keys(craftList)) do
local item = craftList[key]
local recipe = recipes[key]
if recipe then
craftItem(recipe, allItems, item, craftList, item.count)
allItems = chestProvider:listItems() -- refresh counts
elseif item.rsControl then
item.status = 'Activated'
end
end
for key,item in pairs(craftList) do
if controller and not recipes[key] then
if controller:isCrafting(item) then
item.status = '(crafting)'
else
local count = item.count
while count >= 1 do -- try to request smaller quantities until successful
local s, m = pcall(function()
item.status = '(no recipe)'
if not controller:craft(item, count) then
item.status = '(missing ingredients)'
error('failed')
end
item.status = '(crafting)'
end)
if s then
break -- successfully requested crafting
end
count = math.floor(count / 2)
end
end
end
end
end
local function jobMonitor(jobList)
local mon
if device.monitor then
mon = UI.Device({
deviceType = 'monitor',
textScale = .5,
})
else
mon = UI.Device({
device = Terminal.getNullTerm(term.current())
})
end
jobListGrid = UI.Grid({
parent = mon,
sortColumn = 'displayName',
columns = {
{ heading = 'Qty', key = 'count', width = 6 },
{ heading = 'Crafting', key = 'displayName', width = mon.width / 2 - 10 },
{ heading = 'Status', key = 'status', width = mon.width - 10 },
},
})
end
function getAutocraftItems()
local t = Util.readTable('resource.limits') or { }
local craftList = { }
for _,res in pairs(t) do
if res.auto then
res.count = 4 -- this could be higher to increase autocrafting speed
local key = uniqueKey(res)
craftList[key] = res
end
end
return craftList
end
local function getItemWithQty(items, res, ignoreDamage)
local item = getItem(items, res, ignoreDamage)
if item then
if ignoreDamage then
local count = 0
for _,v in pairs(items) do
if item.name == v.name and item.nbtHash == v.nbtHash then
if item.maxDamage > 0 or item.damage == v.damage then
count = count + v.count
end
end
end
item.count = count
end
end
return item
end
function watchResources(items)
local craftList = { }
local t = Util.readTable('resource.limits') or { }
for k, res in pairs(t) do
local item = getItemWithQty(items, res, res.ignoreDamage)
if not item then
item = {
damage = res.damage,
nbtHash = res.nbtHash,
name = res.name,
displayName = res.displayName,
count = 0
}
end
if res.limit and item.count > res.limit then
chestProvider:provide({ id = res.name, dmg = res.damage, nbtHash = res.nbt_hash }, item.count - res.limit, nil, config.trashDirection)
elseif res.low and item.count < res.low then
if res.ignoreDamage then
item.damage = 0
end
local key = uniqueKey(res)
craftList[key] = {
damage = item.damage,
nbtHash = item.nbtHash,
count = res.low - item.count,
name = item.name,
displayName = item.displayName,
status = '',
rsControl = res.rsControl,
}
end
if res.rsControl and res.rsDevice and res.rsSide then
pcall(function()
device[res.rsDevice].setOutput(res.rsSide, item.count < res.low)
end)
end
end
return craftList
end
itemPage = UI.Page {
backgroundColor = colors.lightGray,
titleBar = UI.TitleBar {
title = 'Limit Resource',
previousPage = true,
event = 'form_cancel',
backgroundColor = colors.green
},
displayName = UI.Window {
x = 5, y = 2, width = UI.term.width - 10, height = 3,
},
form = UI.Form {
x = 4, y = 4, height = 8, rex = -4,
[1] = UI.TextEntry {
width = 7,
backgroundColor = colors.gray,
backgroundFocusColor = colors.gray,
formLabel = 'Min', formKey = 'low', help = 'Craft if below min'
},
[2] = UI.TextEntry {
width = 7,
backgroundColor = colors.gray,
backgroundFocusColor = colors.gray,
formLabel = 'Max', formKey = 'limit', help = 'Eject if above max'
},
[3] = UI.Chooser {
width = 7,
formLabel = 'Autocraft', formKey = 'auto',
nochoice = 'No',
choices = {
{ name = 'Yes', value = true },
{ name = 'No', value = false },
},
help = 'Craft until out of ingredients'
},
[4] = UI.Chooser {
width = 7,
formLabel = 'Ignore Dmg', formKey = 'ignore_dmg',
nochoice = 'No',
choices = {
{ name = 'Yes', value = true },
{ name = 'No', value = false },
},
help = 'Ignore damage of item'
},
[5] = UI.Chooser {
width = 7,
formLabel = 'RS Control', formKey = 'rsControl',
nochoice = 'No',
choices = {
{ name = 'Yes', value = true },
{ name = 'No', value = false },
},
help = 'Control via redstone'
},
[6] = UI.Chooser {
width = 25,
formLabel = 'RS Device', formKey = 'rsDevice',
--choices = devices,
help = 'Redstone Device'
},
[7] = UI.Chooser {
width = 10,
formLabel = 'RS Side', formKey = 'rsSide',
--nochoice = 'No',
choices = {
{ name = 'up', value = 'up' },
{ name = 'down', value = 'down' },
{ name = 'east', value = 'east' },
{ name = 'north', value = 'north' },
{ name = 'west', value = 'west' },
{ name = 'south', value = 'south' },
},
help = 'Output side'
},
},
statusBar = UI.StatusBar { }
}
function itemPage.displayName:draw()
local item = self.parent.item
local str = string.format('Name: %s\nDamage: %d', item.displayName, item.damage)
if item.nbtHash then
str = str .. string.format('\nNBT: %s\n', item.nbtHash)
end
self:setCursorPos(1, 1)
self:print(str)
end
function itemPage:enable(item)
self.item = item
self.form:setValues(item)
self.titleBar.title = item.name
local devices = self.form[6].choices
Util.clear(devices)
for _,device in pairs(device) do
if device.setOutput then
table.insert(devices, { name = device.name, value = device.name })
end
end
if Util.size(devices) == 0 then
table.insert(devices, { name = 'None found', values = '' })
end
UI.Page.enable(self)
self:focusFirst()
end
function itemPage:eventHandler(event)
if event.type == 'form_cancel' then
UI:setPreviousPage()
elseif event.type == 'focus_change' then
self.statusBar:setStatus(event.focused.help)
self.statusBar:draw()
elseif event.type == 'form_complete' then
local values = self.form.values
local t = Util.readTable('resource.limits') or { }
local keys = { 'name', 'displayName', 'auto', 'low', 'limit', 'damage',
'maxDamage', 'nbtHash', 'ignoreDamage',
'rsControl', 'rsDevice', 'rsSide', }
local filtered = { }
for _,key in pairs(keys) do
filtered[key] = values[key]
end
filtered.low = tonumber(filtered.low)
filtered.limit = tonumber(filtered.limit)
filtered.ignoreDamage = filtered.ignoreDamage == true
filtered.auto = filtered.auto == true
filtered.rsControl = filtered.rsControl == true
if filtered.ignoreDamage then
filtered.damage = 0
end
t[uniqueKey(filtered)] = filtered
Util.writeTable('resource.limits', t)
UI:setPreviousPage()
else
return UI.Page.eventHandler(self, event)
end
return true
end
listingPage = UI.Page {
menuBar = UI.MenuBar {
buttons = {
{ text = 'Learn', event = 'learn' },
{ text = 'Forget', event = 'forget' },
},
},
grid = UI.Grid {
y = 2, height = UI.term.height - 2,
columns = {
{ heading = 'Name', key = 'displayName' , width = 22 },
{ heading = 'Qty', key = 'count' , width = 5 },
{ heading = 'Min', key = 'low' , width = 4 },
{ heading = 'Max', key = 'limit' , width = 4 },
},
sortColumn = 'displayName',
},
statusBar = UI.StatusBar {
backgroundColor = colors.gray,
width = UI.term.width,
filterText = UI.Text {
x = 2, width = 6,
value = 'Filter',
},
filter = UI.TextEntry {
x = 9, width = 19,
limit = 50,
},
refresh = UI.Button {
x = 31, width = 8,
text = 'Refresh',
event = 'refresh',
},
},
accelerators = {
r = 'refresh',
q = 'quit',
}
}
function listingPage.grid:getRowTextColor(row, selected)
if row.is_craftable then
return colors.yellow
end
if row.has_recipe then
if selected then
return colors.blue
end
return colors.lightBlue
end
return UI.Grid:getRowTextColor(row, selected)
end
function listingPage.grid:getDisplayValues(row)
row = Util.shallowCopy(row)
row.count = Util.toBytes(row.count)
if row.low then
row.low = Util.toBytes(row.low)
end
if row.limit then
row.limit = Util.toBytes(row.limit)
end
return row
end
function listingPage.statusBar:draw()
return UI.Window.draw(self)
end
function listingPage.statusBar.filter:eventHandler(event)
if event.type == 'mouse_rightclick' then
self.value = ''
self:draw()
local page = UI:getCurrentPage()
page.filter = nil
page:applyFilter()
page.grid:draw()
page:setFocus(self)
end
return UI.TextEntry.eventHandler(self, event)
end
function listingPage:eventHandler(event)
if event.type == 'quit' then
UI:exitPullEvents()
elseif event.type == 'grid_select' then
local selected = event.selected
UI:setPage('item', selected)
elseif event.type == 'refresh' then
self:refresh()
self.grid:draw()
self.statusBar.filter:focus()
elseif event.type == 'learn' then
UI:setPage('craft')
elseif event.type == 'forget' then
local item = self.grid:getSelected()
if item then
local key = uniqueKey(item)
if recipes[key] then
recipes[key] = nil
Util.writeTable('recipes', recipes)
end
local resources = Util.readTable('resource.limits') or { }
for k,v in pairs(resources) do
if v.name == item.name and v.damage == item.damage then
resources[k] = nil
Util.writeTable('resource.limits', resources)
break
end
end
self.statusBar:timedStatus('Forgot: ' .. item.name, 3)
self:refresh()
self.grid:draw()
end
elseif event.type == 'text_change' then
self.filter = event.text
if #self.filter == 0 then
self.filter = nil
end
self:applyFilter()
self.grid:draw()
self.statusBar.filter:focus()
else
UI.Page.eventHandler(self, event)
end
return true
end
function listingPage:enable()
self:refresh()
self:setFocus(self.statusBar.filter)
UI.Page.enable(self)
end
function listingPage:refresh()
self.allItems = chestProvider:listItems()
mergeResources(self.allItems)
self:applyFilter()
end
function listingPage:applyFilter()
local t = filterItems(self.allItems, self.filter)
self.grid:setValues(t)
end
-- without duck antenna
local function getTurtleInventory()
local inventory = { }
for i = 1,16 do
if turtle.getItemCount(i) > 0 then
turtle.select(i)
local item = turtle.getItemDetail()
inventory[i] = {
name = item.name,
damage = item.damage,
count = item.count,
}
end
end
return inventory
end
local function filter(t, filter)
local keys = Util.keys(t)
for _,key in pairs(keys) do
if not Util.key(filter, key) then
t[key] = nil
end
end
end
local function learnRecipe(page)
local recipe = { }
local ingredients = getTurtleInventory()
if ingredients then
turtle.select(1)
if device.workbench and turtle.craft() then
recipe = getTurtleInventory()
if recipe and recipe[1] then
recipe = recipe[1]
local key = uniqueKey(recipe)
clearGrid()
filter(recipe, { 'name', 'damage', 'nbtHash', 'count' })
for _,ingredient in pairs(ingredients) do
filter(ingredient, { 'name', 'damage', 'nbtHash', 'count' })
--if ingredient.max_dmg > 0 then -- let's try this...
-- ingredient.dmg = 0
--end
end
recipe.ingredients = ingredients
recipes[key] = recipe
Util.writeTable('recipes', recipes)
local displayName = getName(recipe)
listingPage.statusBar.filter:setValue(displayName)
listingPage.statusBar:timedStatus('Learned: ' .. displayName, 3)
listingPage.filter = displayName
listingPage:refresh()
listingPage.grid:draw()
return true
end
else
page.statusBar:timedStatus('Failed to craft', 3)
end
else
page.statusBar:timedStatus('No recipe defined', 3)
end
end
craftPage = UI.Dialog {
height = 7, width = UI.term.width - 6,
backgroundColor = colors.lightGray,
titleBar = UI.TitleBar {
title = 'Learn Recipe',
previousPage = true,
},
idField = UI.Text {
x = 5,
y = 3,
width = UI.term.width - 10,
value = 'Place recipe in turtle'
},
accept = UI.Button {
rx = -13, ry = -2,
text = 'Ok', event = 'accept',
},
cancel = UI.Button {
rx = -8, ry = -2,
text = 'Cancel', event = 'cancel'
},
statusBar = UI.StatusBar {
status = 'Crafting paused'
}
}
function craftPage:enable()
craftingPaused = true
self:focusFirst()
UI.Dialog.enable(self)
end
function craftPage:disable()
craftingPaused = false
UI.Dialog.disable(self)
end
function craftPage:eventHandler(event)
if event.type == 'cancel' then
UI:setPreviousPage()
elseif event.type == 'accept' then
if learnRecipe(self) then
UI:setPreviousPage()
end
else
return UI.Dialog.eventHandler(self, event)
end
return true
end
UI:setPages({
listing = listingPage,
item = itemPage,
craft = craftPage,
})
UI:setPage(listingPage)
listingPage:setFocus(listingPage.statusBar.filter)
clearGrid()
jobMonitor()
jobListGrid:draw()
jobListGrid:sync()
function craftingThread()
while true do
os.sleep(5)
if not craftingPaused then
local items = chestProvider:listItems()
if Util.size(items) == 0 then
jobListGrid.parent:clear()
jobListGrid.parent:centeredWrite(math.ceil(jobListGrid.parent.height/2), 'No items in system')
jobListGrid:sync()
else
local craftList = watchResources(items)
jobListGrid:setValues(craftList)
--jobListGrid:draw()
--jobListGrid:sync()
craftItems(craftList, items)
jobListGrid:update()
jobListGrid:draw()
jobListGrid:sync()
craftList = getAutocraftItems(items) -- autocrafted items don't show on job monitor
craftItems(craftList, items)
end
end
end
end
--craftingThread()
UI:pullEvents(craftingThread)
UI.term:reset()
jobListGrid.parent:reset()

View File

@ -1,668 +0,0 @@
Air,0,minecraft:air,Non-Solid Block
Stone,1,minecraft:stone,Solid Block
Granite,1:1,,Solid Block
Polished Granite,1:2,,Solid Block
Diorite,1:3,,Solid Block
Polished Diorite,1:4,,Solid Block
Andesite,1:5,,Solid Block
Polished Andesite,1:6,,Solid Block
Grass,2,minecraft:grass,Solid Block
Dirt,3,minecraft:dirt,Solid Block
Dirt (No Grass),3:1,,Solid Block
Podzol,3:2,,Solid Block
Cobblestone,4,minecraft:cobblestone,Solid Block
Wooden Plank (Oak),5,minecraft:planks,Solid Block
Wooden Plank (Spruce),5:1,,Solid Block
Wooden Plank (Birch),5:2,,Solid Block
Wooden Plank (Jungle),5:3,,Solid Block
Wooden Plank (Acacia),5:4,,Solid Block
Wooden Plank (Dark Oak),5:5,,Solid Block
Sapling (Oak),6,minecraft:sapling,Plant
Sapling (Spruce),6:1,,Plant
Sapling (Birch),6:2,,Plant
Sapling (Jungle),6:3,,Plant
Sapling (Acacia),6:4,,Plant
Sapling (Dark Oak),6:5,,Plant
Bedrock,7,minecraft:bedrock,Solid Block
Water,8,minecraft:flowing_water,Fluid
Water (No Spread),9,minecraft:water,Fluid
Lava,10,minecraft:flowing_lava,Fluid
Lava (No Spread),11,minecraft:lava,Fluid
Sand,12,minecraft:sand,Solid Block
Red Sand,12:1,,Solid Block
Gravel,13,minecraft:gravel,Solid Block
Gold Ore,14,minecraft:gold_ore,Solid Block
Iron Ore,15,minecraft:iron_ore,Solid Block
Coal Ore,16,minecraft:coal_ore,Solid Block
Wood (Oak),17,minecraft:log,Solid Block
Wood (Spruce),17:1,,Solid Block
Wood (Birch),17:2,,Solid Block
Wood (Jungle),17:3,,Solid Block
Wood (Oak 4),17:4,,Solid Block
Wood (Oak 5),17:5,,Solid Block
Leaves (Oak),18,minecraft:leaves,Solid Block
Leaves (Spruce),18:1,,Solid Block
Leaves (Birch),18:2,,Solid Block
Leaves (Jungle),18:3,,Solid Block
Sponge,19,minecraft:sponge,Solid Block
Wet Sponge,19:1,minecraft:sponge,Solid Block
Glass,20,minecraft:glass,Solid Block
Lapis Lazuli Ore,21,minecraft:lapis_ore,Solid Block
Lapis Lazuli Block,22,minecraft:lapis_block,Solid Block
Dispenser,23,minecraft:dispenser,Block
Sandstone,24,minecraft:sandstone,Solid Block
Sandstone (Chiseled),24:1,,Solid Block
Sandstone (Smooth),24:2,,Solid Block
Note Block,25,minecraft:noteblock,Solid Block
Bed (Block),26,minecraft:bed,Solid Block
Rail (Powered),27,minecraft:golden_rail,Non-Solid Block
Rail (Detector),28,minecraft:detector_rail,Non-Solid Block
Sticky Piston,29,minecraft:sticky_piston,Solid Block
Cobweb,30,minecraft:web,Non-Solid Block
Dead Shrub,31,minecraft:tallgrass,Plant
Tall Grass,31:1,,Plant
Fern,31:2,,Plant
Dead Shrub,32,minecraft:deadbush,Plant
Piston,33,minecraft:piston,Solid Block
Piston (Head),34,minecraft:piston_head,Solid Block
Wool,35,minecraft:wool,Solid Block
Orange Wool,35:1,,Solid Block
Magenta Wool,35:2,,Solid Block
Light Blue Wool,35:3,,Solid Block
Yellow Wool,35:4,,Solid Block
Lime Wool,35:5,,Solid Block
Pink Wool,35:6,,Solid Block
Gray Wool,35:7,,Solid Block
Light Gray Wool,35:8,,Solid Block
Cyan Wool,35:9,,Solid Block
Purple Wool,35:10,,Solid Block
Blue Wool,35:11,,Solid Block
Brown Wool,35:12,,Solid Block
Green Wool,35:13,,Solid Block
Red Wool,35:14,,Solid Block
Black Wool,35:15,,Solid Block
Piston (Moving),36,minecraft:piston_extension,Solid Block
Dandelion,37,minecraft:yellow_flower,Plant
Popppy,38,minecraft:red_flower,Plant
Blue Orchid,38:1,,Plant
Allium,38:2,,Plant
Azure Bluet,38:3,,
Red Tulip,38:4,,Plant
Orange Tulip,38:5,,Plant
White Tulip,38:6,,Plant
Pink Tulip,38:7,,Plant
Oxeye Daisy,38:8,,Plant
Brown Mushroom,39,minecraft:brown_mushroom,Block
Red Mushroom,40,minecraft:red_mushroom,Block
Block of Gold,41,minecraft:gold_block,Solid Block
Block of Iron,42,minecraft:iron_block,Solid Block
Stone Slab (Double),43,minecraft:double_stone_slab,Solid Block
Sandstone Slab (Double),43:1,,Solid Block
Wooden Slab (Double),43:2,,Solid Block
Cobblestone Slab (Double),43:3,,Solid Block
Brick Slab (Double),43:4,,Solid Block
Stone Brick Slab (Double),43:5,,Solid Block
Nether Brick Slab (Double),43:6,,Solid Block
Quartz Slab (Double),43:7,,Solid Block
Smooth Stone Slab (Double),43:8,,Solid Block
Smooth Sandstone Slab (Double),43:9,,Solid Block
Double Quartz Slab,43:15,,Solid Block
Stone Slab,44,minecraft:stone_slab,Solid Block
Sandstone Slab,44:1,,Solid Block
Wooden Slab,44:2,,Solid Block
Cobblestone Slab,44:3,,Solid Block
Brick Slab,44:4,,Solid Block
Stone Brick Slab,44:5,,Solid Block
Nether Brick Slab,44:6,,Solid Block
Quartz Slab,44:7,,Solid Block
Brick,45,minecraft:brick_block,Solid Block
TNT,46,minecraft:tnt,Solid Block
Bookshelf,47,minecraft:bookshelf,Solid Block
Moss Stone,48,minecraft:mossy_cobblestone,Solid Block
Obsidian,49,minecraft:obsidian,Solid Block
Torch,50,minecraft:torch,Non-Solid Block
Fire,51,minecraft:fire,Non-Solid Block
Mob Spawner,52,minecraft:mob_spawner,Solid Block
Wooden Stairs (Oak),53,minecraft:oak_stairs,Solid Block
Chest,54,minecraft:chest,Tile Entity
Redstone Wire,55,minecraft:redstone_wire,Raw Materials
Diamond Ore,56,minecraft:diamond_ore,Solid Block
Block of Diamond,57,minecraft:diamond_block,Solid Block
Crafting Table,58,minecraft:crafting_table,Solid Block
Wheat (Crop),59,minecraft:wheat,Plant
Farmland,60,minecraft:farmland,Solid Block
Furnace,61,minecraft:furnace,Solid Block
Furnace (Smelting),62,minecraft:lit_furnace,Solid Block
Sign (Block),63,minecraft:standing_sign,Non-Solid Block
Wood Door (Block),64,minecraft:wooden_door,Solid Block
Ladder,65,minecraft:ladder,Solid Block
Rail,66,minecraft:rail,Non-Solid Block
Cobblestair Stairs,67,minecraft:stone_stairs,Solid Block
Sign (Wall Block),68,minecraft:wall_sign,Non-Solid Block
Lever,69,minecraft:lever,Non-Solid Block
Stone Pressure Plate,70,minecraft:stone_pressure_plate,Non-Solid Block
Iron Door (Block),71,minecraft:iron_door,Solid Block
Wooden Pressure Plate,72,minecraft:wooden_pressure_plate,Non-Solid Blocks
Redstone Ore,73,minecraft:redstone_ore,Solid Block
Redstoen Ore (Glowing),74,minecraft:lit_redstone_ore,Solid Block
Redstone Torch (Off),75,minecraft:unlit_redstone_torch,Non-Solid Block
Redstone Torch,76,minecraft:redstone_torch,Non-Solid Block
Button (Stone),77,minecraft:stone_button,Non-Solid Block
Snow,78,minecraft:snow_layer,Block
Ice,79,minecraft:ice,Solid Block
Snow Block,80,minecraft:snow,Block
Cactus,81,minecraft:cactus,Solid Block
Clay Block,82,minecraft:clay,Solid Block
Sugar Can (Block),83,minecraft:reeds,Non-Solid Block
Jukebox,84,minecraft:jukebox,Solid Block
Fence,85,minecraft:fence,Solid Block
Pumpkin,86,minecraft:pumpkin,Solid Block
Netherrack,87,minecraft:netherrack,Solid Block
Soul Sand,88,minecraft:soul_sand,Solid Block
Glowstone,89,minecraft:glowstone,Solid Block
Portal,90,minecraft:portal,Non-Solid Block
Jack-O-Lantern,91,minecraft:lit_pumpkin,Solid Block
Cake (Block),92,minecraft:cake,Food
Redstone Repeater (Block Off),93,minecraft:unpowered_repeater,Solid Block
Redstone Repeater (Block On),94,minecraft:powered_repeater,Solid Block
Stained Glass (White),95,minecraft:stained_glass,Solid Block
Stained Glass (Orange),95:1,,Solid Block
Stained Glass (Magenta),95:2,,Solid Block
Stained Glass (Light Blue),95:3,,Solid Block
Stained Glass (Yellow),95:4,,Solid Block
Stained Glass (Lime),95:5,,Solid Block
Stained Glass (Pink),95:6,,Solid Block
Stained Glass (Gray),95:7,,Solid Block
Stained Glass (Light Gray),95:8,,Solid Block
Stained Glass (Cyan),95:9,,Solid Block
Stained Glass (Purple),95:10,,Solid Block
Stained Glass (Blue),95:11,,Solid Block
Stained Glass (Brown),95:12,,Solid Block
Stained Glass (Green),95:13,,Solid Block
Stained Glass (Red),95:14,,Solid Block
Stained Glass (Black),95:15,,Solid Block
Trapdoor,96,minecraft:trapdoor,Solid Block
Monster Egg (Stone),97,minecraft:monster_egg,Solid
Monster Egg (Cobblestone),97:1,,Solid
Monster Egg (Stone Brick),97:2,,Solid
Monster Egg (Mossy Stone Brick),97:3,,Solid
Monster Egg (Cracked Stone),97:4,,Solid
Monster Egg (Chiseled Stone),97:5,,Solid
Stone Brick,98,minecraft:stonebrick,Solid Block
Mossy Stone Brick,98:1,,Solid Block
Cracked Stone Brick,98:2,,Solid Block
Chiseled Stone Brick,98:3,,Solid Block
Brown Mushroom (Block),99,minecraft:brown_mushroom_block,Solid Block
Red Mushroom (Block),100,minecraft:red_mushroom_block,Solid Block
Iron Bars,101,minecraft:iron_bars,Solid Block
Glass Pane,102,minecraft:glass_pane,Solid Block
Melon (Block),103,minecraft:melon_block,Solid Block
Pumpkin Vine,104,minecraft:pumpkin_stem,
Melon Vine,105,minecraft:melon_stem,
Vines,106,minecraft:vine,
Fence Gate,107,minecraft:fence_gate,
Brick Stairs,108,minecraft:brick_stairs,
Stone Brick Stairs,109,minecraft:stone_brick_stairs,
Mycelium,110,minecraft:mycelium,
Lily Pad,111,minecraft:waterlily,
Nether Brick,112,minecraft:nether_brick,
Nether Brick Fence,113,minecraft:nether_brick_fence,
Nether Brick Stairs,114,minecraft:nether_brick_stairs,
Nether Wart,115,minecraft:nether_wart,
Enchantment Table,116,minecraft:enchanting_table,
Brewing Stand (Block),117,minecraft:brewing_stand,
Cauldron (Block),118,minecraft:cauldron,
End Portal,119,minecraft:end_portal,
End Portal Frame,120,minecraft:end_portal_frame,
End Stone,121,minecraft:end_stone,
Dragon Egg,122,minecraft:dragon_egg,
Redstone Lamp,123,minecraft:redstone_lamp,
Redstone Lamp (On),124,minecraft:lit_redstone_lamp,
Oak Wood Slab (Double),125,minecraft:double_wooden_slab,
Spruce Wood Slab (Double),125:1,,
Birch Wood Slab (Double),125:2,,
Jungle Wood Slab (Double),125:3,,
Acacia Wood Slab (Double),125:4,,
Dark Oak Wood Slab (Double),125:5,,
Oak Wood Slab,126,minecraft:wooden_slab,
Spruce Wood Slab,126:1,,
Birch Wood Slab,126:2,,
Jungle Wood Slab,126:3,,
Acacia Wood Slab,126:4,,
Dark Oak Wood Slab,126:5,,
Cocoa Plant,127,minecraft:cocoa,
Sandstone Stairs,128,minecraft:sandstone_stairs,
Emerald Ore,129,minecraft:emerald_ore,
Ender Chest,130,minecraft:ender_chest,
Tripwire Hook,131,minecraft:tripwire_hook,
Tripewire,132,minecraft:tripwire,
Block of Emerald,133,minecraft:emerald_block,
Wooden Stairs (Spruce),134,minecraft:spruce_stairs,
Wooden Stairs (Birch),135,minecraft:birch_stairs,
Wooden Stairs (Jungle),136,minecraft:jungle_stairs,
Command Block,137,minecraft:command_block,
Beacon,138,minecraft:beacon,
Cobblestone Wall,139,minecraft:cobblestone_wall,
Mossy Cobblestone Wall,139:1,,
Flower Pot (Block),140,minecraft:flower_pot,
Carrot (Crop),141,minecraft:carrots,
Potatoes (Crop),142,minecraft:potatoes,
Button (Wood),143,minecraft:wooden_button,
Head Block (Skeleton),144,minecraft:skull,
Head Block (Wither),144:1,,
Head Block (Zombie),144:2,,
Head Block (Steve),144:3,,
Head Block (Creeper),144:4,,
Anvil,145,minecraft:anvil,
Anvil (Slightly Damaged),145:1,,
Anvil (Very Damaged),145:2,,
Trapped Chest,146,minecraft:trapped_chest,
Weighted Pressure Plate (Light) (Gold),147,minecraft:light_weighted_pressure_plate,
Weighted Pressure Plate (Heavy) (Iron),148,minecraft:heavy_weighted_pressure_plate,
Redstone Comparator (Off),149,minecraft:unpowered_comparator,
Redstone Comparator (On),150,minecraft:powered_comparator,
Daylight Sensor,151,minecraft:daylight_detector,
Block of Redstone,152,minecraft:redstone_block,
Nether Quartz Ore,153,minecraft:quartz_ore,
Hopper,154,minecraft:hopper,
Quartz Block,155,minecraft:quartz_block,
Chiseled Quartz Block,155:1,,
Pillar Quartz Block,155:2,,
Quartz Stairs,156,minecraft:quartz_stairs,
Rail (Activator),157,minecraft:activator_rail,
Dropper,158,minecraft:dropper,
Stained Clay (White),159,minecraft:stained_hardened_clay,Solid Block
Stained Clay (Orange),159:1,,Solid Block
Stained Clay (Magenta),159:2,,Solid Block
Stained Clay (Light Blue),159:3,,Solid Block
Stained Clay (Yellow),159:4,,Solid Block
Stained Clay (Lime),159:5,,Solid Block
Stained Clay (Pink),159:6,,Solid Block
Stained Clay (Gray),159:7,,Solid Block
Stained Clay (Light Gray),159:8,,Solid Block
Stained Clay (Cyan),159:9,,Solid Block
Stained Clay (Purple),159:10,,Solid Block
Stained Clay (Blue),159:11,,Solid Block
Stained Clay (Brown),159:12,,Solid Block
Stained Clay (Green),159:13,,Solid Block
Stained Clay (Red),159:14,,Solid Block
Stained Clay (Black),159:15,,Solid Block
Stained Glass Pane (White),160,minecraft:stained_glass_pane,Solid Block
Stained Glass Pane (Orange),160:1,,Solid Block
Stained Glass Pane (Magenta),160:2,,Solid Block
Stained Glass Pane (Light Blue),160:3,,Solid Block
Stained Glass Pane (Yellow),160:4,,Solid Block
Stained Glass Pane (Lime),160:5,,Solid Block
Stained Glass Pane (Pink),160:6,,Solid Block
Stained Glass Pane (Gray),160:7,,Solid Block
Stained Glass Pane (Light Gray),160:8,,Solid Block
Stained Glass Pane (Cyan),160:9,,Solid Block
Stained Glass Pane (Purple),160:10,,Solid Block
Stained Glass Pane (Blue),160:11,,Solid Block
Stained Glass Pane (Brown),160:12,,Solid Block
Stained Glass Pane (Green),160:13,,Solid Block
Stained Glass Pane (Red),160:14,,Solid Block
Stained Glass Pane (Black),160:15,,Solid Block
Acacia Leaves,161,minecraft:leaves2,Solid Block
Dark Oak Leaves,161:1,,Solid Block
Acacia Wood,162,minecraft:log2,Solid Block
Dark Oak Wood,162:1,,Solid Block
Wooden Stairs (Acacia Oak),163,minecraft:acacia_stairs,
Wooden Stairs (Dark Oak),164,minecraft:dark_oak_stairs,
Slime Block,165,minecraft:slime,
Barrier,166,minecraft:barrier,
Iron Trapdoor,167,minecraft:iron_trapdoor,
Prismarine,168,minecraft:prismarine,
Prismarine Bricks,168:1,,
Dark Prismarine,168:2,,
Sea Lantern,169,minecraft:sea_lantern,
Hay Bale,170,minecraft:hay_block,
Carpet (White),171,minecraft:carpet,
Carpet (Orange),171:1,,
Carpet (Magenta),171:2,,
Carpet (Light Blue),171:3,,
Carpet (Yellow),171:4,,
Carpet (Lime),171:5,,
Carpet (Pink),171:6,,
Carpet (Gray),171:7,,
Carpet (Light Gray),171:8,,
Carpet (Cyan),171:9,,
Carpet (Purple),171:10,,
Carpet (Blue),171:11,,
Carpet (Brown),171:12,,
Carpet (Green),171:13,,
Carpet (Red),171:14,,
Carpet (Black),171:15,,
Hardened Clay,172,minecraft:hardened_clay,
Block of Coal,173,minecraft:coal_block,
Packed Ice,174,minecraft:packed_ice,
Sunflower,175,minecraft:double_plant,
Lilac,175:1,,
Double Tallgrass,175:2,,
Large Fern,175:3,,
Rose Bush,175:4,,
Peony,175:5,,
Free-standing Banner,176,minecraft:standing_banner,
Wall-mounted Banner,177,minecraft:wall_banner,
Inverted Daylight Sensor,178,minecraft:daylight_detector_inverted,
Red Sandstone,179,minecraft:red_sandstone,
Chiseled Red Sandstone,179:1,,
Smooth Red Sandstone,179:2,,
Red Sandstone Stairs,180,minecraft:red_sandstone_stairs,
Double Red Sandstone Slab,181,minecraft:double_stone_slab2,
Red Sandstone Slab,182,minecraft:stone_slab2,
Spruce Fence Gate,183,minecraft:spruce_fence_gate,
Birch Fence Gate,184,minecraft:birch_fence_gate,
Jungle Fence Gate,185,minecraft:jungle_fence_gate,
Dark Oak Fence Gate,186,minecraft:dark_oak_fence_gate,
Acacia Fence Gate,187,minecraft:acacia_fence_gate,
Spruce Fence,188,minecraft:spruce_fence,
Birch Fence,189,minecraft:birch_fence,
Jungle Fence,190,minecraft:jungle_fence,
Dark Oak Fence,191,minecraft:dark_oak_fence,
Acacia Fence,192,minecraft:acacia_fence,
Spruce Door Block,193,minecraft:spruce_door,
Birch Door Block,194,minecraft:birch_door,
Jungle Door Block,195,minecraft:jungle_door,
Acacia Door Block,196,minecraft:acacia_door,
Dark Oak Door Block,197,minecraft:dark_oak_door,
End Rod,198,minecraft:end_rod,
Chorus Plant,199,minecraft:chorus_plant,
Chorus Flower,200,minecraft:chorus_flower,
Purpur Block,201,minecraft:purpur_block,
Purpur Pillar,202,minecraft:purpur_pillar,
Purpur Stairs,203,minecraft:purpur_stairs,
Purpur Double Slab,204,minecraft:purpur_double_slab,
Purpur Slab,205,minecraft:purpur_slab,
End Stone Bricks,206,minecraft:end_bricks,
Beetroot Block,207,minecraft:beetroots,
Repeating Command Block,210,minecraft:repeating_command_block,
Chain Command Block,211,minecraft:chain_command_block,
Iron Shovel,256,minecraft:iron_shovel,
Iron Pickaxe,257,minecraft:iron_pickaxe,
Iron Axe,258,minecraft:iron_axe,
Flint and Steel,259,minecraft:flint_and_steel,
Apple,260,minecraft:apple,
Bow,261,minecraft:bow,
Arrow,262,minecraft:arrow,
Coal,263,minecraft:coal,
Charcoal,263:1,,
Diamond,264,minecraft:diamond,
Iron Ingot,265,minecraft:iron_ingot,
Gold Ingot,266,minecraft:gold_ingot,
Iron Sword,267,minecraft:iron_sword,
Wooden Sword,268,minecraft:wooden_sword,
Wooden Shovel,269,minecraft:wooden_shovel,
Wooden Pickaxe,270,minecraft:wooden_pickaxe,
Wooden Axe,271,minecraft:wooden_axe,
Stone Sword,272,minecraft:stone_sword,
Stone Shovel,273,minecraft:stone_shovel,
Stone Pickaxe,274,minecraft:stone_pickaxe,
Stone Axe,275,minecraft:stone_axe,
Diamond Sword,276,minecraft:diamond_sword,
Diamond Shovel,277,minecraft:diamond_shovel,
Diamond Pickaxe,278,minecraft:diamond_pickaxe,
Diamond Axe,279,minecraft:diamond_axe,
Stick,280,minecraft:stick,
Bowl,281,minecraft:bowl,
Mushroom Stew,282,minecraft:mushroom_stew,
Gold Sword,283,minecraft:golden_sword,
Gold Shovel,284,minecraft:golden_shovel,
Gold Pickaxe,285,minecraft:golden_pickaxe,
Gold Axe,286,minecraft:golden_axe,
String,287,minecraft:string,
Feather,288,minecraft:feather,
Gunpowder,289,minecraft:gunpowder,
Wooden Hoe,290,minecraft:wooden_hoe,
Stone Hoe,291,minecraft:stone_hoe,
Iron Hoe,292,minecraft:iron_hoe,
Diamond Hoe,293,minecraft:diamond_hoe,
Gold Hoe,294,minecraft:golden_hoe,
Wheat Seeds,295,minecraft:wheat_seeds,
Wheat,296,minecraft:wheat,
Bread,297,minecraft:bread,
Leather Helment,298,minecraft:leather_helmet,
Leather Tunic,299,minecraft:leather_chestplate,
Leather Leggings,300,minecraft:leather_leggings,
Leather Boots,301,minecraft:leather_boots,
Chainmail Helment,302,minecraft:chainmail_helmet,
Chainmail Chestplate,303,minecraft:chainmail_chestplate,
Chainmail Leggings,304,minecraft:chainmail_leggings,
Chainmail Boots,305,minecraft:chainmail_boots,
Iron Helment,306,minecraft:iron_helmet,
Iron Chestplate,307,minecraft:iron_chestplate,
Iron Leggings,308,minecraft:iron_leggings,
Iron Boots,309,minecraft:iron_boots,
Diamond Helment,310,minecraft:diamond_helmet,
Diamond Chestplate,311,minecraft:diamond_chestplate,
Diamond Leggings,312,minecraft:diamond_leggings,
Diamond Boots,313,minecraft:diamond_boots,
Gold Helment,314,minecraft:golden_helmet,
Gold Chestplate,315,minecraft:golden_chestplate,
Gold Leggings,316,minecraft:golden_leggings,
Gold Boots,317,minecraft:golden_boots,
Flint,318,minecraft:flint,
Raw Porkchop,319,minecraft:porkchop,
Cooked Porkchop,320,minecraft:cooked_porkchop,
Painting,321,minecraft:painting,
Golden Apple,322,minecraft:golden_apple,
Enchanted Golden Apple (Notch Apple),322:1,,
Sign,323,minecraft:sign,
Wooden Door,324,minecraft:wooden_door,
Bucket,325,minecraft:bucket,
Bucket (Water),326,minecraft:water_bucket,
Bucket (Lava),327,minecraft:lava_bucket,
Minecart,328,minecraft:minecart,
Saddle,329,minecraft:saddle,
Iron Door,330,minecraft:iron_door,
Redstone Dust,331,minecraft:redstone,
Snowball,332,minecraft:snowball,
Boat,333,minecraft:boat,
Leather,334,minecraft:leather,
Bucket (Milk),335,minecraft:milk_bucket,
Clay Brick,336,minecraft:brick,
Clay,337,minecraft:clay_ball,
Sugar Cane,338,minecraft:reeds,
Paper,339,minecraft:paper,
Book,340,minecraft:book,
Slime Ball,341,minecraft:slime_ball,
Minecart (Storage) (Chest),342,minecraft:chest_minecart,
Minecart (Powered) (Furance),343,minecraft:furnace_minecart,
Egg,344,minecraft:egg,
Compass,345,minecraft:compass,
Fishing Rod,346,minecraft:fishing_rod,
Clock,347,minecraft:clock,
Glowstone Dust,348,minecraft:glowstone_dust,
Raw Fish,349,minecraft:fish,
Raw Salmon,349:1,,
Clownfish,349:2,,
Pufferfish,349:3,,
Cooked Fish,350,minecraft:cooked_fished,
Cooked Salmon,350:1,,
Clownfish,350:2,,
Pufferfish,350:3,,
Ink Sack,351,minecraft:dye,
Rose Red Dye,351:1,,
Cactus Green Dye,351:2,,
Cocoa Bean,351:3,,
Lapis Lazuli,351:4,,
Purple Due,351:5,,
Cyan Dye,351:6,,
Light Gray Dye,351:7,,
Gray Dye,351:8,,
Pink Dye,351:9,,
Lime Dye,351:10,,
Dandelion Yellow Dye,351:11,,
Light Blue Dye,351:12,,
Magenta Dye,351:13,,
Orange Dye,351:14,,
Bone Meal,351:15,,
Bone,352,minecraft:bone,
Sugar,353,minecraft:sugar,
Cake,354,minecraft:cake,
Bed,355,minecraft:bed,
Redstone Repeater,356,minecraft:repeater,
Cookie,357,minecraft:cookie,
Map,358,minecraft:filled_map,
Shears,359,minecraft:shears,
Melon (Slice),360,minecraft:melon,
Pumplin Seeds,361,minecraft:pumpkin_seeds,
Melon Seeds,362,minecraft:melon_seeds,
Raw Beef,363,minecraft:beef,
Steak,364,minecraft:cooked_beef,
Raw Chicken,365,minecraft:chicken,
Cooked Chicken,366,minecraft:cooked_chicken,
Rotten Flesh,367,minecraft:rotten_flesh,
Ender Pearl,368,minecraft:ender_pearl,
Blaze Rod,369,minecraft:blaze_rod,
Ghast Tear,370,minecraft:ghast_tear,
Gold Nugget,371,minecraft:god_nugget,
Nether Wart,372,minecraft:nether_wart,
Water Bottle,373,minecraft:potion,Potion
Awkward Potion,373:16,,Potion
Thick Potion,373:32,,Potion
Mundane Potion,373:64,,Potion
Regeneration Potion (0:45),373:8193,,Potion
Swiftness Potion (3:00),373:8194,,Potion
Fire Resistance Potion (3:00),373:8195,,Potion
Poison Potion (0:45),373:8196,,Potion
Healing Potion,373:8197,,Potion
Night Vision Potion (3:00),373:8198,,Potion
Weakness Potion (1:30),373:8200,,Potion
Strength Potion (3:00),373:8201,,Potion
Slowness Potion (1:30),373:8202,,Potion
Harming Potion,373:8204,,Potion
Water Breathing Potion (3:00),373:8205,,Potion
Invisibility Potion (3:00),373:8206,,Potion
Regeneration Potion II (0:22),373:8225,,Potion
Swiftness Potion II (1:30),373:8226,,Potion
Poison Potion II (0:22),373:8228,,Potion
Healing Potion II,373:8229,,Potion
Strength Potion II (1:30),373:8233,,Potion
Harming Potion II,373:8236,,Potion
Regeneration Potion (2:00),373:8257,,Potion
Swiftness Potion (8:00),373:8258,,Potion
Fire Resistance Potion (8:00),373:8259,,Potion
Poison Potion (2:00),373:8260,,Potion
Night Vision Potion (8:00),373:8262,,Potion
Weakness Potion (4:00),373:8264,,Potion
Strength Potion (8:00),373:8265,,Potion
Slowness Potion (4:00),373:8266,,Potion
Water Breathing Potion (8:00),373:8269,,Potion
Invisbility Potion (8:00),373:8270,,Potion
Regeneration Potion II (1:00),373:8289,,Potion
Swiftness Potion II (4:00),373:8290,,Potion
Poison Potion II (1:00),373:8292,,Potion
Strength Potion II (4:00),373:8297,,Potion
Regeneration Splash (0:33),373:16385,,Potion
Swiftness Splash (2:15),373:16386,,Potion
Fire Resistance Splash (2:15),373:16387,,Potion
Poison Splash (0:33),373:16288,,Potion
Healing Splash,373:16389,,Potion
Night Vision Splash (2:15),373:16390,,Potion
Weakness Splash (1:07),373:16392,,Potion
Strength Splash (2:15),373:16393,,Potion
Slowness Splash (1:07),373:16394,,Potion
Harming Splash,373:16396,,Potion
Water Breathing Splash (2:15),373:16197,,Potion
Invisbility Splash (2:15),373:16338,,Potion
Regeneration Splash II (0:16),373:16417,,Potion
Swiftness Splash II (1:07),373:16418,,Potion
Poison Splash II (0:16),373:16420,,Potion
Healing Splash II,373:16421,,Potion
Strength Splash II (1:07),373:16425,,Potion
Harming Splash II,373:16428,,Potion
Regeneration Splash (1:30),373:16449,,Potion
Swiftness Splash (6:00),373:16450,,Potion
Fire Resistance Splash (6:00),373:16451,,Potion
Poison Splash (1:30),373:16452,,Potion
Night Vision Splash (6:00),373:16454,,Potion
Weakness Splash (3:00),373:16456,,Potion
Strength Splash (6:00),373:16457,,Potion
Slowness Splash (3:00),373:16458,,Potion
Water Breathing Splash (6:00),373:16461,,Potion
Invisbility Splash (6:00),373:16462,,Potion
Regeneration Splash II (0:45),373:16481,,Potion
Swiftness Splash II (3:00),373:16482,,Potion
Poison Splash II (0:45),373:16484,,Potion
Strength Splash II (3:00),373:16489,,Potion
Glass Bottle,374,minecraft:glass_bottle,
Spider Eye,375,minecraft:spider_eye,
Fermented Spider Eye,376,minecraft:fermented_spider_eye,
Blaze Powder,377,minecraft:blaze_powder,
Magma Cream,378,minecraft:magma_cream,
Brewing Stand,379,minecraft:brewing_stand,
Cauldron,380,minecraft:cauldron,
Eye of Ender,381,minecraft:ender_eye,
Glistering Melon,382,minecraft:speckled_melon,
Spawn Egg (Creeper),383:50,minecraft:spawn_egg,Item
Spawn Egg (Skeleton),383:51,,Item
Spawn Egg (Spider),383:52,,Item
Spawn Egg (Zombie),383:54,,Item
Spawn Egg (Slime),383:55,,Item
Spawn Egg (Ghast),383:56,,Item
Spawn Egg (Zombie Pigmen),383:57,,Item
Spawn Egg (Endermen),383:58,,Item
Spawn Egg (Cave Spider),383:59,,Item
Spawn Egg (Silverfish),383:60,,Item
Spawn Egg (Blaze),383:61,,Item
Spawn Egg (Magma Cube),383:62,,Item
Spawn Egg (Bat),383:65,,Item
Spawn Egg (Witch),383:66,,Item
Spawn Egg (Pig),383:90,,Item
Spawn Egg (Sheep),383:91,,Item
Spawn Egg (Cow),383:92,,Item
Spawn Egg (Chicken),383:93,,Item
Spawn Egg (Squid),383:94,,Item
Spawn Egg (Wolf),383:95,,Item
Spawn Egg (Mooshroom),383:96,,Item
Spawn Egg (Ocelot),383:98,,Item
Spawn Egg (Horse),383:100,,Item
Spawn Egg (Villager),383:120,,Item
Bottle o' Enchanting,384,minecraft:experience_bottle,
Fire Charge,385,minecraft:fire_charge,
Book and Quill,386,minecraft:writable_book,
Written Book,387,minecraft:written_book,
Emerald,388,minecraft:emerald,
Item Frame,389,minecraft:item_frame,
Flower Pot,390,minecraft:flower_pot,
Carrot,391,minecraft:carrot,
Potato,392,minecraft:potato,
Baked Potato,393,minecraft:baked_potato,
Poisonous Potato,394,minecraft:poisonous_potato,
Empty Map,395,minecraft:map,
Golden Carrot,396,minecraft:golden_carrot,
Head (Skeleton),397,minecraft:skull,
Head (Wither),397:1,,
Head (Zombie),397:2,,
Head (Steve),397:3,,
Head (Creeper),397:4,,
Carrot on a Stick,398,minecraft:carrot_on_a_stick,
Nether Star,399,minecraft:nether_star,
Pumpkin Pie,400,minecraft:pumpkin_pie,
Firework Rocket,401,minecraft:fireworks,
Firework Star,402,minecraft:firework_charge,
Enchanted Book,403,minecraft:enchanted_book,
Redstone Comparator,404,minecraft:comparator,
Nether Brick (Item),405,minecraft:netherbrick,
Nether Quartz,406,minecraft:quartz,
Minecart (TNT),407,minecraft:tnt_minecart,
Minecart (Hopper),408,minecraft:hopper_minecart,
Iron Horse Armor,417,minecraft:iron_horse_armor,
Gold Horse Armor,418,minecraft:golden_horse_armor,
Diamond Horse Armor,419,minecraft:diamond_horse_armor,
Lead,420,minecraft:lead,
Name Tag,421,minecraft:name_tag,
Minecart (Command Block),422,minecraft:command_block_minecart,
Music Disk (13),2256,minecraft:record_13,Decorations
Music Disk (Cat),2257,minecraft:record_cat,Decorations
Music Disk (Blocks),2258,minecraft:record_blocks,Decorations
Music Disk (Chrip),2259,minecraft:record_chirp,Decorations
Music Disk (Far),2260,minecraft:record_far,Decorations
Music Disk (Mall),2261,minecraft:record_mall,Decorations
Music Disk (Mellohi),2262,minecraft:record_mellohi,Decorations
Music Disk (Stal),2263,minecraft:record_stal,Decorations
Music Disk (Strad),2264,minecraft:record_strad,Decorations
Music Disk (Ward),2265,minecraft:record_ward,Decorations
Music Disk (11) (Broken),2266,minecraft:record_11,Decorations
Music Disk (Wait),2267,minecraft:record_wait,Decorations
1 Air 0 minecraft:air Non-Solid Block
2 Stone 1 minecraft:stone Solid Block
3 Granite 1:1 Solid Block
4 Polished Granite 1:2 Solid Block
5 Diorite 1:3 Solid Block
6 Polished Diorite 1:4 Solid Block
7 Andesite 1:5 Solid Block
8 Polished Andesite 1:6 Solid Block
9 Grass 2 minecraft:grass Solid Block
10 Dirt 3 minecraft:dirt Solid Block
11 Dirt (No Grass) 3:1 Solid Block
12 Podzol 3:2 Solid Block
13 Cobblestone 4 minecraft:cobblestone Solid Block
14 Wooden Plank (Oak) 5 minecraft:planks Solid Block
15 Wooden Plank (Spruce) 5:1 Solid Block
16 Wooden Plank (Birch) 5:2 Solid Block
17 Wooden Plank (Jungle) 5:3 Solid Block
18 Wooden Plank (Acacia) 5:4 Solid Block
19 Wooden Plank (Dark Oak) 5:5 Solid Block
20 Sapling (Oak) 6 minecraft:sapling Plant
21 Sapling (Spruce) 6:1 Plant
22 Sapling (Birch) 6:2 Plant
23 Sapling (Jungle) 6:3 Plant
24 Sapling (Acacia) 6:4 Plant
25 Sapling (Dark Oak) 6:5 Plant
26 Bedrock 7 minecraft:bedrock Solid Block
27 Water 8 minecraft:flowing_water Fluid
28 Water (No Spread) 9 minecraft:water Fluid
29 Lava 10 minecraft:flowing_lava Fluid
30 Lava (No Spread) 11 minecraft:lava Fluid
31 Sand 12 minecraft:sand Solid Block
32 Red Sand 12:1 Solid Block
33 Gravel 13 minecraft:gravel Solid Block
34 Gold Ore 14 minecraft:gold_ore Solid Block
35 Iron Ore 15 minecraft:iron_ore Solid Block
36 Coal Ore 16 minecraft:coal_ore Solid Block
37 Wood (Oak) 17 minecraft:log Solid Block
38 Wood (Spruce) 17:1 Solid Block
39 Wood (Birch) 17:2 Solid Block
40 Wood (Jungle) 17:3 Solid Block
41 Wood (Oak 4) 17:4 Solid Block
42 Wood (Oak 5) 17:5 Solid Block
43 Leaves (Oak) 18 minecraft:leaves Solid Block
44 Leaves (Spruce) 18:1 Solid Block
45 Leaves (Birch) 18:2 Solid Block
46 Leaves (Jungle) 18:3 Solid Block
47 Sponge 19 minecraft:sponge Solid Block
48 Wet Sponge 19:1 minecraft:sponge Solid Block
49 Glass 20 minecraft:glass Solid Block
50 Lapis Lazuli Ore 21 minecraft:lapis_ore Solid Block
51 Lapis Lazuli Block 22 minecraft:lapis_block Solid Block
52 Dispenser 23 minecraft:dispenser Block
53 Sandstone 24 minecraft:sandstone Solid Block
54 Sandstone (Chiseled) 24:1 Solid Block
55 Sandstone (Smooth) 24:2 Solid Block
56 Note Block 25 minecraft:noteblock Solid Block
57 Bed (Block) 26 minecraft:bed Solid Block
58 Rail (Powered) 27 minecraft:golden_rail Non-Solid Block
59 Rail (Detector) 28 minecraft:detector_rail Non-Solid Block
60 Sticky Piston 29 minecraft:sticky_piston Solid Block
61 Cobweb 30 minecraft:web Non-Solid Block
62 Dead Shrub 31 minecraft:tallgrass Plant
63 Tall Grass 31:1 Plant
64 Fern 31:2 Plant
65 Dead Shrub 32 minecraft:deadbush Plant
66 Piston 33 minecraft:piston Solid Block
67 Piston (Head) 34 minecraft:piston_head Solid Block
68 Wool 35 minecraft:wool Solid Block
69 Orange Wool 35:1 Solid Block
70 Magenta Wool 35:2 Solid Block
71 Light Blue Wool 35:3 Solid Block
72 Yellow Wool 35:4 Solid Block
73 Lime Wool 35:5 Solid Block
74 Pink Wool 35:6 Solid Block
75 Gray Wool 35:7 Solid Block
76 Light Gray Wool 35:8 Solid Block
77 Cyan Wool 35:9 Solid Block
78 Purple Wool 35:10 Solid Block
79 Blue Wool 35:11 Solid Block
80 Brown Wool 35:12 Solid Block
81 Green Wool 35:13 Solid Block
82 Red Wool 35:14 Solid Block
83 Black Wool 35:15 Solid Block
84 Piston (Moving) 36 minecraft:piston_extension Solid Block
85 Dandelion 37 minecraft:yellow_flower Plant
86 Popppy 38 minecraft:red_flower Plant
87 Blue Orchid 38:1 Plant
88 Allium 38:2 Plant
89 Azure Bluet 38:3
90 Red Tulip 38:4 Plant
91 Orange Tulip 38:5 Plant
92 White Tulip 38:6 Plant
93 Pink Tulip 38:7 Plant
94 Oxeye Daisy 38:8 Plant
95 Brown Mushroom 39 minecraft:brown_mushroom Block
96 Red Mushroom 40 minecraft:red_mushroom Block
97 Block of Gold 41 minecraft:gold_block Solid Block
98 Block of Iron 42 minecraft:iron_block Solid Block
99 Stone Slab (Double) 43 minecraft:double_stone_slab Solid Block
100 Sandstone Slab (Double) 43:1 Solid Block
101 Wooden Slab (Double) 43:2 Solid Block
102 Cobblestone Slab (Double) 43:3 Solid Block
103 Brick Slab (Double) 43:4 Solid Block
104 Stone Brick Slab (Double) 43:5 Solid Block
105 Nether Brick Slab (Double) 43:6 Solid Block
106 Quartz Slab (Double) 43:7 Solid Block
107 Smooth Stone Slab (Double) 43:8 Solid Block
108 Smooth Sandstone Slab (Double) 43:9 Solid Block
109 Double Quartz Slab 43:15 Solid Block
110 Stone Slab 44 minecraft:stone_slab Solid Block
111 Sandstone Slab 44:1 Solid Block
112 Wooden Slab 44:2 Solid Block
113 Cobblestone Slab 44:3 Solid Block
114 Brick Slab 44:4 Solid Block
115 Stone Brick Slab 44:5 Solid Block
116 Nether Brick Slab 44:6 Solid Block
117 Quartz Slab 44:7 Solid Block
118 Brick 45 minecraft:brick_block Solid Block
119 TNT 46 minecraft:tnt Solid Block
120 Bookshelf 47 minecraft:bookshelf Solid Block
121 Moss Stone 48 minecraft:mossy_cobblestone Solid Block
122 Obsidian 49 minecraft:obsidian Solid Block
123 Torch 50 minecraft:torch Non-Solid Block
124 Fire 51 minecraft:fire Non-Solid Block
125 Mob Spawner 52 minecraft:mob_spawner Solid Block
126 Wooden Stairs (Oak) 53 minecraft:oak_stairs Solid Block
127 Chest 54 minecraft:chest Tile Entity
128 Redstone Wire 55 minecraft:redstone_wire Raw Materials
129 Diamond Ore 56 minecraft:diamond_ore Solid Block
130 Block of Diamond 57 minecraft:diamond_block Solid Block
131 Crafting Table 58 minecraft:crafting_table Solid Block
132 Wheat (Crop) 59 minecraft:wheat Plant
133 Farmland 60 minecraft:farmland Solid Block
134 Furnace 61 minecraft:furnace Solid Block
135 Furnace (Smelting) 62 minecraft:lit_furnace Solid Block
136 Sign (Block) 63 minecraft:standing_sign Non-Solid Block
137 Wood Door (Block) 64 minecraft:wooden_door Solid Block
138 Ladder 65 minecraft:ladder Solid Block
139 Rail 66 minecraft:rail Non-Solid Block
140 Cobblestair Stairs 67 minecraft:stone_stairs Solid Block
141 Sign (Wall Block) 68 minecraft:wall_sign Non-Solid Block
142 Lever 69 minecraft:lever Non-Solid Block
143 Stone Pressure Plate 70 minecraft:stone_pressure_plate Non-Solid Block
144 Iron Door (Block) 71 minecraft:iron_door Solid Block
145 Wooden Pressure Plate 72 minecraft:wooden_pressure_plate Non-Solid Blocks
146 Redstone Ore 73 minecraft:redstone_ore Solid Block
147 Redstoen Ore (Glowing) 74 minecraft:lit_redstone_ore Solid Block
148 Redstone Torch (Off) 75 minecraft:unlit_redstone_torch Non-Solid Block
149 Redstone Torch 76 minecraft:redstone_torch Non-Solid Block
150 Button (Stone) 77 minecraft:stone_button Non-Solid Block
151 Snow 78 minecraft:snow_layer Block
152 Ice 79 minecraft:ice Solid Block
153 Snow Block 80 minecraft:snow Block
154 Cactus 81 minecraft:cactus Solid Block
155 Clay Block 82 minecraft:clay Solid Block
156 Sugar Can (Block) 83 minecraft:reeds Non-Solid Block
157 Jukebox 84 minecraft:jukebox Solid Block
158 Fence 85 minecraft:fence Solid Block
159 Pumpkin 86 minecraft:pumpkin Solid Block
160 Netherrack 87 minecraft:netherrack Solid Block
161 Soul Sand 88 minecraft:soul_sand Solid Block
162 Glowstone 89 minecraft:glowstone Solid Block
163 Portal 90 minecraft:portal Non-Solid Block
164 Jack-O-Lantern 91 minecraft:lit_pumpkin Solid Block
165 Cake (Block) 92 minecraft:cake Food
166 Redstone Repeater (Block Off) 93 minecraft:unpowered_repeater Solid Block
167 Redstone Repeater (Block On) 94 minecraft:powered_repeater Solid Block
168 Stained Glass (White) 95 minecraft:stained_glass Solid Block
169 Stained Glass (Orange) 95:1 Solid Block
170 Stained Glass (Magenta) 95:2 Solid Block
171 Stained Glass (Light Blue) 95:3 Solid Block
172 Stained Glass (Yellow) 95:4 Solid Block
173 Stained Glass (Lime) 95:5 Solid Block
174 Stained Glass (Pink) 95:6 Solid Block
175 Stained Glass (Gray) 95:7 Solid Block
176 Stained Glass (Light Gray) 95:8 Solid Block
177 Stained Glass (Cyan) 95:9 Solid Block
178 Stained Glass (Purple) 95:10 Solid Block
179 Stained Glass (Blue) 95:11 Solid Block
180 Stained Glass (Brown) 95:12 Solid Block
181 Stained Glass (Green) 95:13 Solid Block
182 Stained Glass (Red) 95:14 Solid Block
183 Stained Glass (Black) 95:15 Solid Block
184 Trapdoor 96 minecraft:trapdoor Solid Block
185 Monster Egg (Stone) 97 minecraft:monster_egg Solid
186 Monster Egg (Cobblestone) 97:1 Solid
187 Monster Egg (Stone Brick) 97:2 Solid
188 Monster Egg (Mossy Stone Brick) 97:3 Solid
189 Monster Egg (Cracked Stone) 97:4 Solid
190 Monster Egg (Chiseled Stone) 97:5 Solid
191 Stone Brick 98 minecraft:stonebrick Solid Block
192 Mossy Stone Brick 98:1 Solid Block
193 Cracked Stone Brick 98:2 Solid Block
194 Chiseled Stone Brick 98:3 Solid Block
195 Brown Mushroom (Block) 99 minecraft:brown_mushroom_block Solid Block
196 Red Mushroom (Block) 100 minecraft:red_mushroom_block Solid Block
197 Iron Bars 101 minecraft:iron_bars Solid Block
198 Glass Pane 102 minecraft:glass_pane Solid Block
199 Melon (Block) 103 minecraft:melon_block Solid Block
200 Pumpkin Vine 104 minecraft:pumpkin_stem
201 Melon Vine 105 minecraft:melon_stem
202 Vines 106 minecraft:vine
203 Fence Gate 107 minecraft:fence_gate
204 Brick Stairs 108 minecraft:brick_stairs
205 Stone Brick Stairs 109 minecraft:stone_brick_stairs
206 Mycelium 110 minecraft:mycelium
207 Lily Pad 111 minecraft:waterlily
208 Nether Brick 112 minecraft:nether_brick
209 Nether Brick Fence 113 minecraft:nether_brick_fence
210 Nether Brick Stairs 114 minecraft:nether_brick_stairs
211 Nether Wart 115 minecraft:nether_wart
212 Enchantment Table 116 minecraft:enchanting_table
213 Brewing Stand (Block) 117 minecraft:brewing_stand
214 Cauldron (Block) 118 minecraft:cauldron
215 End Portal 119 minecraft:end_portal
216 End Portal Frame 120 minecraft:end_portal_frame
217 End Stone 121 minecraft:end_stone
218 Dragon Egg 122 minecraft:dragon_egg
219 Redstone Lamp 123 minecraft:redstone_lamp
220 Redstone Lamp (On) 124 minecraft:lit_redstone_lamp
221 Oak Wood Slab (Double) 125 minecraft:double_wooden_slab
222 Spruce Wood Slab (Double) 125:1
223 Birch Wood Slab (Double) 125:2
224 Jungle Wood Slab (Double) 125:3
225 Acacia Wood Slab (Double) 125:4
226 Dark Oak Wood Slab (Double) 125:5
227 Oak Wood Slab 126 minecraft:wooden_slab
228 Spruce Wood Slab 126:1
229 Birch Wood Slab 126:2
230 Jungle Wood Slab 126:3
231 Acacia Wood Slab 126:4
232 Dark Oak Wood Slab 126:5
233 Cocoa Plant 127 minecraft:cocoa
234 Sandstone Stairs 128 minecraft:sandstone_stairs
235 Emerald Ore 129 minecraft:emerald_ore
236 Ender Chest 130 minecraft:ender_chest
237 Tripwire Hook 131 minecraft:tripwire_hook
238 Tripewire 132 minecraft:tripwire
239 Block of Emerald 133 minecraft:emerald_block
240 Wooden Stairs (Spruce) 134 minecraft:spruce_stairs
241 Wooden Stairs (Birch) 135 minecraft:birch_stairs
242 Wooden Stairs (Jungle) 136 minecraft:jungle_stairs
243 Command Block 137 minecraft:command_block
244 Beacon 138 minecraft:beacon
245 Cobblestone Wall 139 minecraft:cobblestone_wall
246 Mossy Cobblestone Wall 139:1
247 Flower Pot (Block) 140 minecraft:flower_pot
248 Carrot (Crop) 141 minecraft:carrots
249 Potatoes (Crop) 142 minecraft:potatoes
250 Button (Wood) 143 minecraft:wooden_button
251 Head Block (Skeleton) 144 minecraft:skull
252 Head Block (Wither) 144:1
253 Head Block (Zombie) 144:2
254 Head Block (Steve) 144:3
255 Head Block (Creeper) 144:4
256 Anvil 145 minecraft:anvil
257 Anvil (Slightly Damaged) 145:1
258 Anvil (Very Damaged) 145:2
259 Trapped Chest 146 minecraft:trapped_chest
260 Weighted Pressure Plate (Light) (Gold) 147 minecraft:light_weighted_pressure_plate
261 Weighted Pressure Plate (Heavy) (Iron) 148 minecraft:heavy_weighted_pressure_plate
262 Redstone Comparator (Off) 149 minecraft:unpowered_comparator
263 Redstone Comparator (On) 150 minecraft:powered_comparator
264 Daylight Sensor 151 minecraft:daylight_detector
265 Block of Redstone 152 minecraft:redstone_block
266 Nether Quartz Ore 153 minecraft:quartz_ore
267 Hopper 154 minecraft:hopper
268 Quartz Block 155 minecraft:quartz_block
269 Chiseled Quartz Block 155:1
270 Pillar Quartz Block 155:2
271 Quartz Stairs 156 minecraft:quartz_stairs
272 Rail (Activator) 157 minecraft:activator_rail
273 Dropper 158 minecraft:dropper
274 Stained Clay (White) 159 minecraft:stained_hardened_clay Solid Block
275 Stained Clay (Orange) 159:1 Solid Block
276 Stained Clay (Magenta) 159:2 Solid Block
277 Stained Clay (Light Blue) 159:3 Solid Block
278 Stained Clay (Yellow) 159:4 Solid Block
279 Stained Clay (Lime) 159:5 Solid Block
280 Stained Clay (Pink) 159:6 Solid Block
281 Stained Clay (Gray) 159:7 Solid Block
282 Stained Clay (Light Gray) 159:8 Solid Block
283 Stained Clay (Cyan) 159:9 Solid Block
284 Stained Clay (Purple) 159:10 Solid Block
285 Stained Clay (Blue) 159:11 Solid Block
286 Stained Clay (Brown) 159:12 Solid Block
287 Stained Clay (Green) 159:13 Solid Block
288 Stained Clay (Red) 159:14 Solid Block
289 Stained Clay (Black) 159:15 Solid Block
290 Stained Glass Pane (White) 160 minecraft:stained_glass_pane Solid Block
291 Stained Glass Pane (Orange) 160:1 Solid Block
292 Stained Glass Pane (Magenta) 160:2 Solid Block
293 Stained Glass Pane (Light Blue) 160:3 Solid Block
294 Stained Glass Pane (Yellow) 160:4 Solid Block
295 Stained Glass Pane (Lime) 160:5 Solid Block
296 Stained Glass Pane (Pink) 160:6 Solid Block
297 Stained Glass Pane (Gray) 160:7 Solid Block
298 Stained Glass Pane (Light Gray) 160:8 Solid Block
299 Stained Glass Pane (Cyan) 160:9 Solid Block
300 Stained Glass Pane (Purple) 160:10 Solid Block
301 Stained Glass Pane (Blue) 160:11 Solid Block
302 Stained Glass Pane (Brown) 160:12 Solid Block
303 Stained Glass Pane (Green) 160:13 Solid Block
304 Stained Glass Pane (Red) 160:14 Solid Block
305 Stained Glass Pane (Black) 160:15 Solid Block
306 Acacia Leaves 161 minecraft:leaves2 Solid Block
307 Dark Oak Leaves 161:1 Solid Block
308 Acacia Wood 162 minecraft:log2 Solid Block
309 Dark Oak Wood 162:1 Solid Block
310 Wooden Stairs (Acacia Oak) 163 minecraft:acacia_stairs
311 Wooden Stairs (Dark Oak) 164 minecraft:dark_oak_stairs
312 Slime Block 165 minecraft:slime
313 Barrier 166 minecraft:barrier
314 Iron Trapdoor 167 minecraft:iron_trapdoor
315 Prismarine 168 minecraft:prismarine
316 Prismarine Bricks 168:1
317 Dark Prismarine 168:2
318 Sea Lantern 169 minecraft:sea_lantern
319 Hay Bale 170 minecraft:hay_block
320 Carpet (White) 171 minecraft:carpet
321 Carpet (Orange) 171:1
322 Carpet (Magenta) 171:2
323 Carpet (Light Blue) 171:3
324 Carpet (Yellow) 171:4
325 Carpet (Lime) 171:5
326 Carpet (Pink) 171:6
327 Carpet (Gray) 171:7
328 Carpet (Light Gray) 171:8
329 Carpet (Cyan) 171:9
330 Carpet (Purple) 171:10
331 Carpet (Blue) 171:11
332 Carpet (Brown) 171:12
333 Carpet (Green) 171:13
334 Carpet (Red) 171:14
335 Carpet (Black) 171:15
336 Hardened Clay 172 minecraft:hardened_clay
337 Block of Coal 173 minecraft:coal_block
338 Packed Ice 174 minecraft:packed_ice
339 Sunflower 175 minecraft:double_plant
340 Lilac 175:1
341 Double Tallgrass 175:2
342 Large Fern 175:3
343 Rose Bush 175:4
344 Peony 175:5
345 Free-standing Banner 176 minecraft:standing_banner
346 Wall-mounted Banner 177 minecraft:wall_banner
347 Inverted Daylight Sensor 178 minecraft:daylight_detector_inverted
348 Red Sandstone 179 minecraft:red_sandstone
349 Chiseled Red Sandstone 179:1
350 Smooth Red Sandstone 179:2
351 Red Sandstone Stairs 180 minecraft:red_sandstone_stairs
352 Double Red Sandstone Slab 181 minecraft:double_stone_slab2
353 Red Sandstone Slab 182 minecraft:stone_slab2
354 Spruce Fence Gate 183 minecraft:spruce_fence_gate
355 Birch Fence Gate 184 minecraft:birch_fence_gate
356 Jungle Fence Gate 185 minecraft:jungle_fence_gate
357 Dark Oak Fence Gate 186 minecraft:dark_oak_fence_gate
358 Acacia Fence Gate 187 minecraft:acacia_fence_gate
359 Spruce Fence 188 minecraft:spruce_fence
360 Birch Fence 189 minecraft:birch_fence
361 Jungle Fence 190 minecraft:jungle_fence
362 Dark Oak Fence 191 minecraft:dark_oak_fence
363 Acacia Fence 192 minecraft:acacia_fence
364 Spruce Door Block 193 minecraft:spruce_door
365 Birch Door Block 194 minecraft:birch_door
366 Jungle Door Block 195 minecraft:jungle_door
367 Acacia Door Block 196 minecraft:acacia_door
368 Dark Oak Door Block 197 minecraft:dark_oak_door
369 End Rod 198 minecraft:end_rod
370 Chorus Plant 199 minecraft:chorus_plant
371 Chorus Flower 200 minecraft:chorus_flower
372 Purpur Block 201 minecraft:purpur_block
373 Purpur Pillar 202 minecraft:purpur_pillar
374 Purpur Stairs 203 minecraft:purpur_stairs
375 Purpur Double Slab 204 minecraft:purpur_double_slab
376 Purpur Slab 205 minecraft:purpur_slab
377 End Stone Bricks 206 minecraft:end_bricks
378 Beetroot Block 207 minecraft:beetroots
379 Repeating Command Block 210 minecraft:repeating_command_block
380 Chain Command Block 211 minecraft:chain_command_block
381 Iron Shovel 256 minecraft:iron_shovel
382 Iron Pickaxe 257 minecraft:iron_pickaxe
383 Iron Axe 258 minecraft:iron_axe
384 Flint and Steel 259 minecraft:flint_and_steel
385 Apple 260 minecraft:apple
386 Bow 261 minecraft:bow
387 Arrow 262 minecraft:arrow
388 Coal 263 minecraft:coal
389 Charcoal 263:1
390 Diamond 264 minecraft:diamond
391 Iron Ingot 265 minecraft:iron_ingot
392 Gold Ingot 266 minecraft:gold_ingot
393 Iron Sword 267 minecraft:iron_sword
394 Wooden Sword 268 minecraft:wooden_sword
395 Wooden Shovel 269 minecraft:wooden_shovel
396 Wooden Pickaxe 270 minecraft:wooden_pickaxe
397 Wooden Axe 271 minecraft:wooden_axe
398 Stone Sword 272 minecraft:stone_sword
399 Stone Shovel 273 minecraft:stone_shovel
400 Stone Pickaxe 274 minecraft:stone_pickaxe
401 Stone Axe 275 minecraft:stone_axe
402 Diamond Sword 276 minecraft:diamond_sword
403 Diamond Shovel 277 minecraft:diamond_shovel
404 Diamond Pickaxe 278 minecraft:diamond_pickaxe
405 Diamond Axe 279 minecraft:diamond_axe
406 Stick 280 minecraft:stick
407 Bowl 281 minecraft:bowl
408 Mushroom Stew 282 minecraft:mushroom_stew
409 Gold Sword 283 minecraft:golden_sword
410 Gold Shovel 284 minecraft:golden_shovel
411 Gold Pickaxe 285 minecraft:golden_pickaxe
412 Gold Axe 286 minecraft:golden_axe
413 String 287 minecraft:string
414 Feather 288 minecraft:feather
415 Gunpowder 289 minecraft:gunpowder
416 Wooden Hoe 290 minecraft:wooden_hoe
417 Stone Hoe 291 minecraft:stone_hoe
418 Iron Hoe 292 minecraft:iron_hoe
419 Diamond Hoe 293 minecraft:diamond_hoe
420 Gold Hoe 294 minecraft:golden_hoe
421 Wheat Seeds 295 minecraft:wheat_seeds
422 Wheat 296 minecraft:wheat
423 Bread 297 minecraft:bread
424 Leather Helment 298 minecraft:leather_helmet
425 Leather Tunic 299 minecraft:leather_chestplate
426 Leather Leggings 300 minecraft:leather_leggings
427 Leather Boots 301 minecraft:leather_boots
428 Chainmail Helment 302 minecraft:chainmail_helmet
429 Chainmail Chestplate 303 minecraft:chainmail_chestplate
430 Chainmail Leggings 304 minecraft:chainmail_leggings
431 Chainmail Boots 305 minecraft:chainmail_boots
432 Iron Helment 306 minecraft:iron_helmet
433 Iron Chestplate 307 minecraft:iron_chestplate
434 Iron Leggings 308 minecraft:iron_leggings
435 Iron Boots 309 minecraft:iron_boots
436 Diamond Helment 310 minecraft:diamond_helmet
437 Diamond Chestplate 311 minecraft:diamond_chestplate
438 Diamond Leggings 312 minecraft:diamond_leggings
439 Diamond Boots 313 minecraft:diamond_boots
440 Gold Helment 314 minecraft:golden_helmet
441 Gold Chestplate 315 minecraft:golden_chestplate
442 Gold Leggings 316 minecraft:golden_leggings
443 Gold Boots 317 minecraft:golden_boots
444 Flint 318 minecraft:flint
445 Raw Porkchop 319 minecraft:porkchop
446 Cooked Porkchop 320 minecraft:cooked_porkchop
447 Painting 321 minecraft:painting
448 Golden Apple 322 minecraft:golden_apple
449 Enchanted Golden Apple (Notch Apple) 322:1
450 Sign 323 minecraft:sign
451 Wooden Door 324 minecraft:wooden_door
452 Bucket 325 minecraft:bucket
453 Bucket (Water) 326 minecraft:water_bucket
454 Bucket (Lava) 327 minecraft:lava_bucket
455 Minecart 328 minecraft:minecart
456 Saddle 329 minecraft:saddle
457 Iron Door 330 minecraft:iron_door
458 Redstone Dust 331 minecraft:redstone
459 Snowball 332 minecraft:snowball
460 Boat 333 minecraft:boat
461 Leather 334 minecraft:leather
462 Bucket (Milk) 335 minecraft:milk_bucket
463 Clay Brick 336 minecraft:brick
464 Clay 337 minecraft:clay_ball
465 Sugar Cane 338 minecraft:reeds
466 Paper 339 minecraft:paper
467 Book 340 minecraft:book
468 Slime Ball 341 minecraft:slime_ball
469 Minecart (Storage) (Chest) 342 minecraft:chest_minecart
470 Minecart (Powered) (Furance) 343 minecraft:furnace_minecart
471 Egg 344 minecraft:egg
472 Compass 345 minecraft:compass
473 Fishing Rod 346 minecraft:fishing_rod
474 Clock 347 minecraft:clock
475 Glowstone Dust 348 minecraft:glowstone_dust
476 Raw Fish 349 minecraft:fish
477 Raw Salmon 349:1
478 Clownfish 349:2
479 Pufferfish 349:3
480 Cooked Fish 350 minecraft:cooked_fished
481 Cooked Salmon 350:1
482 Clownfish 350:2
483 Pufferfish 350:3
484 Ink Sack 351 minecraft:dye
485 Rose Red Dye 351:1
486 Cactus Green Dye 351:2
487 Cocoa Bean 351:3
488 Lapis Lazuli 351:4
489 Purple Due 351:5
490 Cyan Dye 351:6
491 Light Gray Dye 351:7
492 Gray Dye 351:8
493 Pink Dye 351:9
494 Lime Dye 351:10
495 Dandelion Yellow Dye 351:11
496 Light Blue Dye 351:12
497 Magenta Dye 351:13
498 Orange Dye 351:14
499 Bone Meal 351:15
500 Bone 352 minecraft:bone
501 Sugar 353 minecraft:sugar
502 Cake 354 minecraft:cake
503 Bed 355 minecraft:bed
504 Redstone Repeater 356 minecraft:repeater
505 Cookie 357 minecraft:cookie
506 Map 358 minecraft:filled_map
507 Shears 359 minecraft:shears
508 Melon (Slice) 360 minecraft:melon
509 Pumplin Seeds 361 minecraft:pumpkin_seeds
510 Melon Seeds 362 minecraft:melon_seeds
511 Raw Beef 363 minecraft:beef
512 Steak 364 minecraft:cooked_beef
513 Raw Chicken 365 minecraft:chicken
514 Cooked Chicken 366 minecraft:cooked_chicken
515 Rotten Flesh 367 minecraft:rotten_flesh
516 Ender Pearl 368 minecraft:ender_pearl
517 Blaze Rod 369 minecraft:blaze_rod
518 Ghast Tear 370 minecraft:ghast_tear
519 Gold Nugget 371 minecraft:god_nugget
520 Nether Wart 372 minecraft:nether_wart
521 Water Bottle 373 minecraft:potion Potion
522 Awkward Potion 373:16 Potion
523 Thick Potion 373:32 Potion
524 Mundane Potion 373:64 Potion
525 Regeneration Potion (0:45) 373:8193 Potion
526 Swiftness Potion (3:00) 373:8194 Potion
527 Fire Resistance Potion (3:00) 373:8195 Potion
528 Poison Potion (0:45) 373:8196 Potion
529 Healing Potion 373:8197 Potion
530 Night Vision Potion (3:00) 373:8198 Potion
531 Weakness Potion (1:30) 373:8200 Potion
532 Strength Potion (3:00) 373:8201 Potion
533 Slowness Potion (1:30) 373:8202 Potion
534 Harming Potion 373:8204 Potion
535 Water Breathing Potion (3:00) 373:8205 Potion
536 Invisibility Potion (3:00) 373:8206 Potion
537 Regeneration Potion II (0:22) 373:8225 Potion
538 Swiftness Potion II (1:30) 373:8226 Potion
539 Poison Potion II (0:22) 373:8228 Potion
540 Healing Potion II 373:8229 Potion
541 Strength Potion II (1:30) 373:8233 Potion
542 Harming Potion II 373:8236 Potion
543 Regeneration Potion (2:00) 373:8257 Potion
544 Swiftness Potion (8:00) 373:8258 Potion
545 Fire Resistance Potion (8:00) 373:8259 Potion
546 Poison Potion (2:00) 373:8260 Potion
547 Night Vision Potion (8:00) 373:8262 Potion
548 Weakness Potion (4:00) 373:8264 Potion
549 Strength Potion (8:00) 373:8265 Potion
550 Slowness Potion (4:00) 373:8266 Potion
551 Water Breathing Potion (8:00) 373:8269 Potion
552 Invisbility Potion (8:00) 373:8270 Potion
553 Regeneration Potion II (1:00) 373:8289 Potion
554 Swiftness Potion II (4:00) 373:8290 Potion
555 Poison Potion II (1:00) 373:8292 Potion
556 Strength Potion II (4:00) 373:8297 Potion
557 Regeneration Splash (0:33) 373:16385 Potion
558 Swiftness Splash (2:15) 373:16386 Potion
559 Fire Resistance Splash (2:15) 373:16387 Potion
560 Poison Splash (0:33) 373:16288 Potion
561 Healing Splash 373:16389 Potion
562 Night Vision Splash (2:15) 373:16390 Potion
563 Weakness Splash (1:07) 373:16392 Potion
564 Strength Splash (2:15) 373:16393 Potion
565 Slowness Splash (1:07) 373:16394 Potion
566 Harming Splash 373:16396 Potion
567 Water Breathing Splash (2:15) 373:16197 Potion
568 Invisbility Splash (2:15) 373:16338 Potion
569 Regeneration Splash II (0:16) 373:16417 Potion
570 Swiftness Splash II (1:07) 373:16418 Potion
571 Poison Splash II (0:16) 373:16420 Potion
572 Healing Splash II 373:16421 Potion
573 Strength Splash II (1:07) 373:16425 Potion
574 Harming Splash II 373:16428 Potion
575 Regeneration Splash (1:30) 373:16449 Potion
576 Swiftness Splash (6:00) 373:16450 Potion
577 Fire Resistance Splash (6:00) 373:16451 Potion
578 Poison Splash (1:30) 373:16452 Potion
579 Night Vision Splash (6:00) 373:16454 Potion
580 Weakness Splash (3:00) 373:16456 Potion
581 Strength Splash (6:00) 373:16457 Potion
582 Slowness Splash (3:00) 373:16458 Potion
583 Water Breathing Splash (6:00) 373:16461 Potion
584 Invisbility Splash (6:00) 373:16462 Potion
585 Regeneration Splash II (0:45) 373:16481 Potion
586 Swiftness Splash II (3:00) 373:16482 Potion
587 Poison Splash II (0:45) 373:16484 Potion
588 Strength Splash II (3:00) 373:16489 Potion
589 Glass Bottle 374 minecraft:glass_bottle
590 Spider Eye 375 minecraft:spider_eye
591 Fermented Spider Eye 376 minecraft:fermented_spider_eye
592 Blaze Powder 377 minecraft:blaze_powder
593 Magma Cream 378 minecraft:magma_cream
594 Brewing Stand 379 minecraft:brewing_stand
595 Cauldron 380 minecraft:cauldron
596 Eye of Ender 381 minecraft:ender_eye
597 Glistering Melon 382 minecraft:speckled_melon
598 Spawn Egg (Creeper) 383:50 minecraft:spawn_egg Item
599 Spawn Egg (Skeleton) 383:51 Item
600 Spawn Egg (Spider) 383:52 Item
601 Spawn Egg (Zombie) 383:54 Item
602 Spawn Egg (Slime) 383:55 Item
603 Spawn Egg (Ghast) 383:56 Item
604 Spawn Egg (Zombie Pigmen) 383:57 Item
605 Spawn Egg (Endermen) 383:58 Item
606 Spawn Egg (Cave Spider) 383:59 Item
607 Spawn Egg (Silverfish) 383:60 Item
608 Spawn Egg (Blaze) 383:61 Item
609 Spawn Egg (Magma Cube) 383:62 Item
610 Spawn Egg (Bat) 383:65 Item
611 Spawn Egg (Witch) 383:66 Item
612 Spawn Egg (Pig) 383:90 Item
613 Spawn Egg (Sheep) 383:91 Item
614 Spawn Egg (Cow) 383:92 Item
615 Spawn Egg (Chicken) 383:93 Item
616 Spawn Egg (Squid) 383:94 Item
617 Spawn Egg (Wolf) 383:95 Item
618 Spawn Egg (Mooshroom) 383:96 Item
619 Spawn Egg (Ocelot) 383:98 Item
620 Spawn Egg (Horse) 383:100 Item
621 Spawn Egg (Villager) 383:120 Item
622 Bottle o' Enchanting 384 minecraft:experience_bottle
623 Fire Charge 385 minecraft:fire_charge
624 Book and Quill 386 minecraft:writable_book
625 Written Book 387 minecraft:written_book
626 Emerald 388 minecraft:emerald
627 Item Frame 389 minecraft:item_frame
628 Flower Pot 390 minecraft:flower_pot
629 Carrot 391 minecraft:carrot
630 Potato 392 minecraft:potato
631 Baked Potato 393 minecraft:baked_potato
632 Poisonous Potato 394 minecraft:poisonous_potato
633 Empty Map 395 minecraft:map
634 Golden Carrot 396 minecraft:golden_carrot
635 Head (Skeleton) 397 minecraft:skull
636 Head (Wither) 397:1
637 Head (Zombie) 397:2
638 Head (Steve) 397:3
639 Head (Creeper) 397:4
640 Carrot on a Stick 398 minecraft:carrot_on_a_stick
641 Nether Star 399 minecraft:nether_star
642 Pumpkin Pie 400 minecraft:pumpkin_pie
643 Firework Rocket 401 minecraft:fireworks
644 Firework Star 402 minecraft:firework_charge
645 Enchanted Book 403 minecraft:enchanted_book
646 Redstone Comparator 404 minecraft:comparator
647 Nether Brick (Item) 405 minecraft:netherbrick
648 Nether Quartz 406 minecraft:quartz
649 Minecart (TNT) 407 minecraft:tnt_minecart
650 Minecart (Hopper) 408 minecraft:hopper_minecart
651 Iron Horse Armor 417 minecraft:iron_horse_armor
652 Gold Horse Armor 418 minecraft:golden_horse_armor
653 Diamond Horse Armor 419 minecraft:diamond_horse_armor
654 Lead 420 minecraft:lead
655 Name Tag 421 minecraft:name_tag
656 Minecart (Command Block) 422 minecraft:command_block_minecart
657 Music Disk (13) 2256 minecraft:record_13 Decorations
658 Music Disk (Cat) 2257 minecraft:record_cat Decorations
659 Music Disk (Blocks) 2258 minecraft:record_blocks Decorations
660 Music Disk (Chrip) 2259 minecraft:record_chirp Decorations
661 Music Disk (Far) 2260 minecraft:record_far Decorations
662 Music Disk (Mall) 2261 minecraft:record_mall Decorations
663 Music Disk (Mellohi) 2262 minecraft:record_mellohi Decorations
664 Music Disk (Stal) 2263 minecraft:record_stal Decorations
665 Music Disk (Strad) 2264 minecraft:record_strad Decorations
666 Music Disk (Ward) 2265 minecraft:record_ward Decorations
667 Music Disk (11) (Broken) 2266 minecraft:record_11 Decorations
668 Music Disk (Wait) 2267 minecraft:record_wait Decorations

View File

@ -19,8 +19,6 @@ Event.addHandler('peripheral', function(event, side)
term.setTextColor(attachColor)
Util.print('[%s] %s attached', dev.side, dev.name)
os.queueEvent('device_attach', dev.name)
else
Util.print('[%s] attached failed', side)
end
end
end)