1.7.10 compatibility
This commit is contained in:
@@ -19,14 +19,30 @@
|
|||||||
Refined storage
|
Refined storage
|
||||||
TODO: add required block
|
TODO: add required block
|
||||||
|
|
||||||
Turtle crafting:
|
Turtle crafting (optional):
|
||||||
1. The turtle must have a crafting table equipped.
|
1. The turtle must have a crafting table equipped.
|
||||||
2. Requires a vanilla chest beside the turtle with the "craftingChest"
|
2. Requires a vanilla chest beside the turtle with the "craftingChest"
|
||||||
configuration variable defined.
|
configuration variable defined.
|
||||||
-- or --
|
-- or --
|
||||||
If using MC 1.7x, you can equip the turtle with a duck antenna.
|
If using MC 1.7x, you can equip the turtle with a duck antenna.
|
||||||
|
|
||||||
Restocking:
|
Controller (optional):
|
||||||
|
Provides the ability to request crafting from AE / RS
|
||||||
|
|
||||||
|
Applied Energistics
|
||||||
|
In versions 1.7x, AE can be used for both inventory access and crafting
|
||||||
|
requests.
|
||||||
|
|
||||||
|
In versions 1.8+, AE can only be used to request crafting.
|
||||||
|
|
||||||
|
Refined Storage
|
||||||
|
In versions 1.8x, inventory access works depending upon version.
|
||||||
|
|
||||||
|
Turtle/computer must be touching controller for inventory access. If only
|
||||||
|
requesting crafting, the controller must be either be touching or connected
|
||||||
|
via CC cables.
|
||||||
|
|
||||||
|
Restocking (optional):
|
||||||
If using a limited inventory block, such as RFTools modular storage, you
|
If using a limited inventory block, such as RFTools modular storage, you
|
||||||
can have the main inventory automatically replenish items from the restocking
|
can have the main inventory automatically replenish items from the restocking
|
||||||
inventory. Each cycle, the restocking inventory will be checked and if the
|
inventory. Each cycle, the restocking inventory will be checked and if the
|
||||||
@@ -34,6 +50,8 @@
|
|||||||
from the restocking inventory into the main inventory.
|
from the restocking inventory into the main inventory.
|
||||||
|
|
||||||
Configuration:
|
Configuration:
|
||||||
|
Configuration file is usr/config/inventoryManager
|
||||||
|
|
||||||
valid sides:
|
valid sides:
|
||||||
top, bottom, left, right, front, back
|
top, bottom, left, right, front, back
|
||||||
|
|
||||||
@@ -46,7 +64,7 @@
|
|||||||
|
|
||||||
Optional:
|
Optional:
|
||||||
craftingChest : side for the chest used for crafting
|
craftingChest : side for the chest used for crafting
|
||||||
controller : side for AE / RS block
|
controller : side for AE cable/interface or RS controller
|
||||||
stock : side for restocking inventory
|
stock : side for restocking inventory
|
||||||
trashDirection : direction of trash block (trashcan/inventory/etc) in
|
trashDirection : direction of trash block (trashcan/inventory/etc) in
|
||||||
relationship to the main inventory. This block does not
|
relationship to the main inventory. This block does not
|
||||||
@@ -223,15 +241,6 @@ local function filterItems(t, filter, displayMode)
|
|||||||
return t
|
return t
|
||||||
end
|
end
|
||||||
|
|
||||||
local function isGridClear()
|
|
||||||
for i = 1, 16 do
|
|
||||||
if turtle.getItemCount(i) ~= 0 then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
local function clearGrid()
|
local function clearGrid()
|
||||||
local function clear()
|
local function clear()
|
||||||
for i = 1, 16 do
|
for i = 1, 16 do
|
||||||
@@ -260,7 +269,7 @@ local function addCraftingRequest(item, craftList, count)
|
|||||||
return request
|
return request
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Craft
|
-- Craft
|
||||||
local function craftItem(recipe, items, originalItem, craftList, count)
|
local function craftItem(recipe, items, originalItem, craftList, count)
|
||||||
local missing = { }
|
local missing = { }
|
||||||
local toCraft = Craft.getCraftableAmount(recipe, count, items, missing)
|
local toCraft = Craft.getCraftableAmount(recipe, count, items, missing)
|
||||||
@@ -360,7 +369,6 @@ local function forceCraftItem(inRecipe, items, originalItem, craftList, inCount)
|
|||||||
|
|
||||||
local count = sumItems(inRecipe, inCount)
|
local count = sumItems(inRecipe, inCount)
|
||||||
|
|
||||||
-- local count, summed = Craft.getResourceList3(inRecipe, items, inCount, inventoryAdapter)
|
|
||||||
if count < inCount then
|
if count < inCount then
|
||||||
for _,ingredient in pairs(summed) do
|
for _,ingredient in pairs(summed) do
|
||||||
if ingredient.need > 0 then
|
if ingredient.need > 0 then
|
||||||
@@ -1072,6 +1080,7 @@ local function getTurtleInventory()
|
|||||||
v.count = v.qty
|
v.count = v.qty
|
||||||
v.maxDamage = v.max_dmg
|
v.maxDamage = v.max_dmg
|
||||||
v.maxCount = v.max_size
|
v.maxCount = v.max_size
|
||||||
|
v.nbtHash = v.nbt_hash
|
||||||
if not itemDB:get(v) then
|
if not itemDB:get(v) then
|
||||||
itemDB:add(v)
|
itemDB:add(v)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user