I need some help in improving my code in my Draconic tool tier i have five out that the recipes for the each tier is the same other then different key upgrades using it.
I'm new to coding thing in lua and i hoping posting would help in learning how to improve my code.
Heres my code.
local component = require("component")
local sides = require("sides")
local colors = require("colors")
local rs = component.redstone
local tier = 0
local c = 15 --color also using enderio cables
while true do
if rs.getBundledInput(sides.top,colors.red) > 0 then -- this part of ther code changes wh