Build your first Collector in Balanced
In Savebot: The Last Garden, build a repeating block program that checks battery, then cargo, then collects. Low battery should take the recharge branch. When battery is adequate, a full Collector should recycle. The remaining case should collect.
Full Steam release unless a source specifies the demo. Evidence checked . Guide updated .
Steps
- In the Collector’s Workshop use a repeat block so the robot comes back to the decisions after an action. In Balanced you assemble the tests and the loop yourself.
- Start with the low-battery decision. Then build the full-cargo decision on the branch where the robot can continue working. Place collecting only on the branch that passed both tests.
- Read the sentence below the block bench. Look for the intended order and make sure the collecting block belongs to the case where battery and cargo are both suitable.
- Run a test while observing the currently selected Collector. Watch a collection action and wait for a cargo or battery change. Use a breakpoint or the live values to see which branch is reached.
How to tell it worked
The Collector chooses recharge when battery is low, recycling when full with enough battery, and collecting otherwise.
If you are still stuck
If it collects while full, inspect nesting and the sensor value on that Collector. Putting a collecting block outside both branches can make the program issue that action even when another decision should control it.
Lay out the decisions before dropping the action blocks
Decide which action belongs to each situation before placing it. With low battery, the Collector should recharge even if it is also carrying a full load. With adequate battery and full cargo it should recycle. With space and enough battery it should collect. In Balanced, place all three outcomes inside your repeating flow. The full-cargo test belongs only to the branch where the low-battery test let the robot continue.
Read the sentence after you place the actions. If the collecting action appears to follow the test in every case, inspect whether it was placed after the entire decision. If recycling sounds like it is part of the low-battery result, move it into the appropriate cargo branch before your first run. Keep a copy of the intended order in a short note so that moving one block does not quietly reverse the condition while you fix nesting.
Run cases that exercise every action
Start with enough power and spare space. Observe the Collector select collect and finish a pickup. Wait for a full case, then inspect the live reading at the cargo decision. Recycling should take over while the robot still has enough power. If a low-battery case occurs first, use it to confirm that the recharge decision is reachable. Come back to the full-cargo case when you can watch it separately.
The case with both tests true distinguishes priorities. If the Collector recycles while low on battery and full, check whether cargo was placed first or an action is outside the recharge decision. If the robot recharges and later collects while still full, observe the cargo reading after recharging. That second observation tells you whether the loop returned to the test or continued through a misplaced action.
Confirm the state after each successful action
Once a recycling trip works, check whether the Collector can choose collection again afterward. This is an easy way to detect a routine that completes a single trip and then never returns to the decision. If it still needs a change, edit one condition or block placement, then run a previously working case again. If the program selects recycling and the load never arrives, keep the decision as a reference and inspect the world target. Separate completion of the delivery from correct selection of its action.