This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Inv = require "widgets/inventorybar" | |
local OldUpdCT = Inv.UpdateCursorText | |
local ItemTile = require "widgets/itemtile" | |
local OldGDS = ItemTile.GetDescriptionString --原版显示物品描述 | |
local Text = require "widgets/text" | |
--获取装备颜色 | |
local function GetEquipmentName(position) | |
local slots = {"equipment_purple","equipment_red","equipment_yellow","equipment_blue","equipment_green"} | |
local color = {"粉色","红色","黄色","蓝色","绿色"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local filesystem = require('filesystem') | |
File = {} | |
local tab = 0 | |
local function writeTab(file) | |
file:write(string.rep(' ', tab)) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chest = "ironchest:diamond_chest" | |
local peripherals = peripheral.getNames() | |
for i,per in pairs(peripherals) do | |
if peripheral.getType(per) == chest then | |
chest = peripheral.wrap(per) | |
end | |
end | |
if type(chest) == "string" then | |
return nil |