Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command = '/testforblock '
- ore = 'railcraft:ore_metal 5'
- lx = -175
- ly = 29
- lz = -393
- wide = 45
- hmax = 30
- hmin = 30
- for x=lx-wide,lx+wide do
- for z=lz-wide,lz+wide do
- for y=hmin,hmax do
- loc = tostring(x)..' '..tostring(y)..' '..tostring(z)
- bol = commands.testforblock(loc..' '..ore)
- if bol then
- print("Find one at "..loc)
- return 0
- end
- print(loc)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement