Advertisement
Win4Win

AUTO TU

Sep 1st, 2023 (edited)
768
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. module = peripheral.wrap("back")
  2. displayName = "minecraft:totem_of_undying"
  3. local cachedSlot
  4.  
  5.  
  6. local function moveTotem()
  7.     while true do
  8.         local found
  9.         if module.getEquipment().getItem(2) == nil then
  10.             for slot, meta in pairs(module.getEnder().list()) do
  11.                 if (meta.name == displayName) then
  12.                    
  13.                     cachedSlot = slot
  14.                     found = true
  15.                     break
  16.                 end
  17.             end
  18.         end
  19.         if found then
  20.             print("Totem Added")
  21.             module.getEnder().pushItems("equipment", cachedSlot)
  22.         else
  23.             cachedSlot = nil
  24.         end
  25.         sleep(0.05)
  26.     end
  27.  
  28. end
  29.  
  30. moveTotem()
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement