Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module = peripheral.wrap("back")
- displayName = "minecraft:totem_of_undying"
- local cachedSlot
- local function moveTotem()
- while true do
- local found
- if module.getEquipment().getItem(2) == nil then
- for slot, meta in pairs(module.getEnder().list()) do
- if (meta.name == displayName) then
- cachedSlot = slot
- found = true
- break
- end
- end
- end
- if found then
- print("Totem Added")
- module.getEnder().pushItems("equipment", cachedSlot)
- else
- cachedSlot = nil
- end
- sleep(0.05)
- end
- end
- moveTotem()
Advertisement
Advertisement