Posted 16 May 2013 - 02:03 PM
Hey Guys,
I have -Another- suggestion, this time for turtles.
Basically, this MIGHT be a little bit OP, so I tried to give it a bit of a expensive recipe…
But anyways..
This topic is for the peripheral for the turtle names 'Block Ray', and there are 2 kinds, the first one being crafted like this:
There is also a advanced one, which I will get indept with later, but that one is crafted like so:
Now, what the Block Ray can do…
Basically, it allows the turtle to see blocks far away-ish, and store the data in a table.
Here is a basic program that should explain how it would work:
The getTransparancy is for both basic as advanced, and will basically return if the blocks are solid, or transparent, it should look like this:
–In world:
–What the turtle outputs (S = solid, T = transparant)
Now, here is a command that only is accesable using the advanced block ray, and might be a little bit OP.
This command will return the ID of the blocks, and so, again might be OP.
The code would be like above, only with m.getID("radius")
It would look like this:
–In world:
–What the turtle outputs:
So…
Thats about it…
Please tell me about your opinion.
I have -Another- suggestion, this time for turtles.
Basically, this MIGHT be a little bit OP, so I tried to give it a bit of a expensive recipe…
But anyways..
This topic is for the peripheral for the turtle names 'Block Ray', and there are 2 kinds, the first one being crafted like this:
There is also a advanced one, which I will get indept with later, but that one is crafted like so:
Now, what the Block Ray can do…
Basically, it allows the turtle to see blocks far away-ish, and store the data in a table.
Here is a basic program that should explain how it would work:
local blocks = {} --Defines the variable 'blocks' as a table, VERY important!
m = peripheral.wrap("side")
blocks = m.getTransparancy("radius") --Max radius for the basic is 3, for the advanced 8
for i = 1, 9 do --If the radius was 1...
term.write("" ..blocks[i])
if (i == 3) or (i == 6) then
print("")
end
end
The getTransparancy is for both basic as advanced, and will basically return if the blocks are solid, or transparent, it should look like this:
–In world:
–What the turtle outputs (S = solid, T = transparant)
Now, here is a command that only is accesable using the advanced block ray, and might be a little bit OP.
This command will return the ID of the blocks, and so, again might be OP.
The code would be like above, only with m.getID("radius")
It would look like this:
–In world:
–What the turtle outputs:
So…
Thats about it…
Please tell me about your opinion.