Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- BowCore
- -- Coded for BowWhalley by fun_ride
- -- Code
- local tcmd = {}
- term.clear()
- term.setCursorPos(1,1)
- print("BowCore")
- function drawBit()
- term.setTextColor(colors.yellow)
- write("$ ")
- term.setTextColor(colors.white)
- end
- while true do
- drawBit()
- cmd = read(nil, tcmd)
- table.insert(tcmd,cmd)
- if cmd:sub(1,8) == "/prefix " then
- s = cmd:gsub("/prefix ","")
- t = s:gsub("&","\194\167")
- peripheral.find("command").setCommand('setblock ~ ~-1 ~ air')
- peripheral.find("command").runCommand()
- peripheral.find("command").setCommand('setblock ~ ~-1 ~ command_block 0 {CustomName:"'..t..'"}')
- peripheral.find("command").runCommand()
- peripheral.find("command").setCommand('setblock ~ ~-1 ~ air')
- peripheral.find("command").runCommand()
- else
- s = cmd:gsub("&","\194\167")
- peripheral.find("command").setCommand("say "..s)
- peripheral.find("command").runCommand()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement