This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
MudkipTheEpic's profile picture

Beacon API

Started by MudkipTheEpic, 15 June 2013 - 06:04 PM
MudkipTheEpic #1
Posted 15 June 2013 - 08:04 PM
Hi! This API lets you set rednet (for lack of a better term) "waypoints" to let your turtles navigate to different places.

Download:

pastebin get 7wbEnhwv beacon

Documentation:

(assumes beacon is the loaded API name)


--#For the hosting computer/turtle

beacon.host(channel,message)
--#channel is the channel it will broadcast on
--#message is the message it will send, good for identification on the same channel (If absent defaults to "")
--#It will respond to "PING" messages on the channel "channel", and reply with the message you specified

--#For the recieving turtle

beacon.goTo(channel,message)
--#The channel and message must match that of the host
--#Bonus feature: If you call it like beacon.goTo(true), it goes to the first GPS server that responds!
--#It breaks any blocks in its way
--#When message is absent, it takes any signal from that channel

Hope this is useful!
CoderPuppy #2
Posted 15 June 2013 - 08:42 PM
Cool
MudkipTheEpic #3
Posted 17 June 2013 - 05:56 PM
Noone thinks this is practical?

If you do, I may set up a waypoint program.
Mackan90096 #4
Posted 18 June 2013 - 06:56 AM
I'll test it on the server as soon as I get home.

Around 19:00 swedish time
Zudo #5
Posted 27 June 2013 - 02:09 AM
This a really good idea!
MudkipTheEpic #6
Posted 18 July 2013 - 05:40 PM
Thanks! Tell me if there is any improvements I could make or bugs I could fix.
Dlcruz129 #7
Posted 18 July 2013 - 05:43 PM
Nice!
oedze #8
Posted 22 July 2013 - 12:54 PM
cool, nice idea