replace_craftengine_block_objective
Replace Block - Objective entry.
An objective to replace a block with another one.
Entry Information
| Property | Value |
|---|---|
| Entry ID | replace_craftengine_block_objective |
| Type | Objective |
Fields
| Field | Description |
|---|---|
| Quest | The quest that the objective is a part of. |
| Fact | The fact that is used to track the player's progress. |
| From Block | The block that has to be removed. A CraftEngine block or furniture id (namespace:id), or a vanilla material name (STONE). Leave empty for anything. |
| To Block | The block that has to be put in its place. Same formats as From Block. Leave empty for anything. |
| Window | How long, in seconds, the player has to place the new block after removing the old one. Defaults to 30. |
| Amount | The amount of blocks to replace. |
| Display | Description displayed to the player. |
| On Complete | Triggerable entry to execute on completion. |
Behaviour
The objective counts how many times the player swaps what sits at a block position for something else: the old block or furniture is removed, and a new one is put at the very same position within the configured Window.
Every combination is recognised, in both directions - CraftEngine custom block, CraftEngine furniture and vanilla block. Building straight onto a replaceable block such as tall grass or water also counts, even though no break event is ever fired in that case.
Two rules keep the count honest:
- Putting back exactly what was just removed is not a replacement, and does not count.
- A position only ever counts once per player, so the same spot cannot be farmed by replacing back and forth.
How could this be used?
"Replace the 5 rotten planks of the bridge with fresh ones", "swap every broken lantern for a lit one", or a farming quest where dead crops have to be replaced by seedlings.
Usage
Add this entry from the Typewriter editor and fill in its fields. Every field carries an inline description in the editor.