Jump to content




CommandBlock API bug



  • You cannot reply to this topic
5 replies to this topic

#1 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 28 May 2014 - 11:01 AM

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!

#2 CometWolf

  • Members
  • 1,283 posts

Posted 28 May 2014 - 02: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).

#3 valithor

  • Members
  • 1,053 posts

Posted 28 May 2014 - 06:54 PM

CometWolf, on 28 May 2014 - 02:44 PM, said:

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 by valithor, 28 May 2014 - 06:57 PM.


#4 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 29 May 2014 - 09:15 AM

Do you tested it on advanced turtle?

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 29 May 2014 - 05:04 PM

Moved to Ask a Pro pending independent confirmation.

#6 valithor

  • Members
  • 1,053 posts

Posted 29 May 2014 - 06:03 PM

View PostKonlab, on 29 May 2014 - 09:15 AM, said:

Do you tested it on advanced turtle?
Yes was a advanced turtle.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users