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

CommandBlock API bug

Started by Konlab, 28 May 2014 - 10:01 AM
Konlab #1
Posted 28 May 2014 - 12:01 PM
Computercraft version: 1.63
Minecraft version: 1.6.4, forge: latest
Mods: Computercraft, Rei's minimap
Description of bug:
The computer the command in command block reads wrong.
Steps to reproduce bug:
1.place a turtle and at the right side of turtle place a command block
2.type in turtle 'edit test'
3.the code is:
commandB = peripheral.wrap("right")
command = commandB.getCommand()
print(command)
4. the command block's command is:
/give Konlab 373 1 55
5.the output:
/give Konlab 373 1 1

please fix!
CometWolf #2
Posted 28 May 2014 - 03:44 PM
From what i can tell, there is no ID 373:55 in vanilla MC, therefore it's probably just giving you a 373:1(water bottle).
valithor #3
Posted 28 May 2014 - 07:54 PM
[quote name='CometWolf' timestamp='1401288265' p
ost='180970']From what i can tell, there is no ID 373:55 in vanilla MC, therefore it's probably just giving you a 373:1(water bottle).

373:55 is a rank potion a 373:1 is a potion of regen. 373:0 is water bottle.

Back to what the op said. I set a advanced computer up used the program you provided and the command for the commandblock you provided and it printed "/give valithor2 373 1 55" which is exactly what i put in the command block. Therefore as far as i can tell there is no bug.

edit: Since you said you tested it on a turtle I went and tested it on a turtle as well and it provided the same result. It printed exactly what I put the command as in the command block.
Edited on 28 May 2014 - 05:57 PM
Konlab #4
Posted 29 May 2014 - 10:15 AM
Do you tested it on advanced turtle?
Lyqyd #5
Posted 29 May 2014 - 06:04 PM
Moved to Ask a Pro pending independent confirmation.
valithor #6
Posted 29 May 2014 - 07:03 PM
Do you tested it on advanced turtle?
Yes was a advanced turtle.