jdroid91

WizardDoor

Dec 3rd, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local playerRange = 3
  2. local dector = peripheral.wrap("right")
  3. while (true)
  4. do
  5.     if (dector.isPlayerInRange(playerRanger,"Granite_Glasses") or dector.isPlayerInRange(playerRange, "jdroid91")
  6.     then
  7.         redstone.setOutput("bottom", false)
  8.     else
  9.         redstone.setOutput("bottom", true)
  10.     end    
  11.     os.sleep(0.5)
  12. end
Add Comment
Please, Sign In to add comment