NPC and command_block cannot interact with any Agent
NPC and command_block are not able to interact with Agent.
If I type on command line:
/tp @e[type=Agent,name=MarcoV.Agent] 58 4 67
I'm able to teleport that Agent to those coordinates.
Using the same command from a NPC or a command_block... nothing happens: to be honest on command_block output it says "No targets matched selector"
Using a more generic /tp @v 58 4 67 from NPC or command_block continues to do nothing.
-
Official comment
Thanks for posting. Are you using MakeCode or Tynker?
-
I have the same issue. Wanted to make a button that teleported my agent to a specific location. Command works when typed in manually, but not using a command block.
There are lot of valid reasons for command blocks and NPC's to interact with the agent(s). I would love for this to work. Would introduce lots of interesting plays. Also it would be possible to make a world with mechanisms that works for all players without any coding from the start.
Here is what I wanted to do:
I wanted to make a closed space for the player with vision from a high location, and only let the agent move around in the world. The idea was to make the players do everything with the player and not "cheat". But I wanted a button to teleport the agent to the inside of the closed space for inventory reasons. Guess I need to look for other solutions.
1 -
Have same problem.
This command can help to reset agent to proper position. (trying to achieve "radio" reset presented in official education edition coding FUNdamentals lessons.
Did someone managed "work_around" for that issue?
0 -
Thanks for checking up on this again and reaching out. Currently you still cannot officially use a command block or NPC to interact with agents.
0 -
You can use execute command with tp like this --> execute @p ~ ~ ~ tp @c -44 4 20
1 -
Thank you, that works !
0
Please sign in to leave a comment.
Comments
6 comments