paramus

Block analyzer [AP]

Jun 11th, 2026
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | Gaming | 0 0
  1. local reader = peripheral.find("blockReader")
  2.  
  3. print("Block name: " .. reader.getBlockName())
  4. print("Is tile entity: " .. reader.isTileEntity())
  5.  
  6. --block states
  7. local blockStates = reader.getBlockStates()
  8. local statesString = ""
  9. for i,s in ipairs(blockStates) do
  10.     statesString = statesString .. ", " .. s
  11. end
  12. print("Block states: " .. statesString)
  13.  
  14. --block data
  15. print("Block data:")
  16. for k, v in pairs(reader.getBlockData()) do
  17.     print(k .. " = " .. v)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment