Posted 14 September 2013 - 08:40 PM
Soulshard Mobgrinder
V1.0
This program is very simple it utilizes the chatbox peripheral to make a wireless mobspawner.
Requirements:
This requires at least the Soulshards, Computercraft(of course) and MiscPeripherals.
All the Soulshards must be at tier 5.
What it does:
Picks up chat messages such as:
Blaze on
Blaze off
To toggle on and off the spawners.
If it worked it will reply with:
Blazes Initiated
Blazes Deinitiated
How it does it:
Using the chatbox peripheral it reads what is said in chat.
In accordance to what is said it will toggle a redstone signal.
IE:
Blazes on – turns off redstone signal going to the "Blaze" side.
Downside:
As of right now with this code anyone can initiate the spawners from any distance.
(As long as chunk is loaded.)
(If you know how to secure it to 1 person or a group of people please post how to do so)
Code (Because everyone loves it.):
Spoiler
rs.setOutput("front", true)
rs.setOutput("back", true)
rs.setOutput("left", true)
rs.setOutput("right", true)
m = peripheral.wrap("bottom")
while true do
event, player, message = os.pullEvent("chat")
if message == "Zombie on" then
rs.setOutput("front", false)
m.say("Zombies Initiated")
end
if message == "Zombie off" then
rs.setOutput("front", true)
m.say("Zombies Deinitiated")
end
if message == "Skeleton on" then
rs.setOutput("left", false)
m.say("Skeletons Initiated")
end
if message == "Skeleton off" then
rs.setOutput("left",true)
m.say("Skeletons Deinitiated")
end
if message == "Blaze on" then
rs.setOutput("right", false)
m.say("Blazes Initiated")
end
if message == "Blaze off" then
rs.setOutput("right", true)
m.say("Blazes Deinitiated")
end
if message == "Creeper on" then
rs.setOutput("back", false)
m.say("Creepers Initiated")
end
if message == "Creeper off" then
rs.setOutput("back", true)
m.say("Creepers Deinitiated")
end
end
Credits:
Demicreator - The idea
bimmybear - testing
DjIvor - testing
JoshTim - testing
How to get it:
Typing
pastebin get 863PDeaN startup
into a CC computer.
Screenshots:
Spoiler
(If you know how to post actual pictures and not links please tell me so. I will update)
Please post ANY feedback or suggestions (what I can add or improve) here.