"Oops, the agent cannot place this block or item" error despite code being correct
Hello folks,
We are in Python 101 Make Code Lesson 8 Activity 2.
We have submitted the code correctly (verified with the lesson guide) as shown below, however, the "Oops, the agent cannot place this block or item" is shown and the lesson activity will not complete. We believe this is a bug with the application.
#Place your function below
# This function makes the Agent plant trees to its left
def plant_tree():
agent.set_slot(1)
agent.till(LEFT)
agent.place(LEFT)
agent.set_slot(2)
agent.place(LEFT)
agent.place(LEFT)
agent.place(LEFT)
agent.place(LEFT)
agent.place(LEFT)
agent.place(LEFT)
# Replace the lines below with your code #
agent.move(FORWARD, 1)
plant_tree()
agent.move(FORWARD, 6)
plant_tree()
agent.move(FORWARD, 6)
plant_tree()
-
Hey Alex,
Thank you for reporting this!
I just forwarded this information to my team and I will let you know if they inform me of any solutions or workarounds for this activity.0 -
Alright Alex,
The agent being unable to place bonemeal is a known issue that affects all lessons and worlds, unfortunately.
However, there is a workaround so that you can proceed with the lesson. When you run your code, you can right-click the agent to open its inventory and take the bonemeal and use it yourself to make the saplings grow.
A tad bit more manual, but it will allow you to get passed this lesson.1 -
One year later, I encounter the same bug in Python 101 Make Code Lesson 8 Activity 2. Why has this not been fixed? The workaround allowed me to go to the next activity, but I still spent a lot of time frustrated for nothing...
0
Please sign in to leave a comment.
Comments
3 comments