Cannot put minecart by agent using Code Builder
I am trying to put minecart on top of rails using agent in CodeBuilder, but for some reason I can't. Please let me know, I will attach the code as well.
-
Hi. I am guessing that the problem is that a block is being perceived as already placed in the spot, and therefor unavailable for another to be placed.
I am wondering if you were working in Python if you would be able to determine the block id of a cart which is on top of a rail, and place it with that metadata, or if perhaps the two blaocks could be placed at once.
I do not know, but am merely guessing. Let me know if you try it. =]
0 -
If the cart can't be placed by the agent, a better method would be to use a dispenser to place it.
I am using this method to create an automatic cart dismounting mechanism in MakeCode.
Cart On Rail
https://makecode.com/_AKuiFRDkUYU7
0 -
Ah, HOSHINO HISASHI this is what my colleague calls "Minecrafty thinking." With a coding background, I like to do everything with code. What you have done (very nicely, I think) is to use code to run a Minecraft chat command, which is a great solution. I would love to keep learning more about what others are doing in their classrooms with Minecraft as a coding platform. Please keep posting, both of you, and perhaps consider joining the Teachers' Lounge on FaceBook, if that is an option.
=]
0 -
Thank you for your reply.
I have already joined the Minecraft Teachers' Lounge and Minecraft Education Ambassador Group on FaceBook.
I like to write code using a combination of coding and Minecraft commands.
The function to set up a block by specifying its direction is very useful and allows me to create various gimmicks using the Redstone circuit in MakeCode.
0
Please sign in to leave a comment.
Comments
4 comments