Skip to main content

replace_craftengine_block_objective

Replace Block - Objective entry.

An objective to replace a block with another one.

Entry Information

PropertyValue
Entry IDreplace_craftengine_block_objective
TypeObjective

Fields

FieldDescription
QuestThe quest that the objective is a part of.
FactThe fact that is used to track the player's progress.
From BlockThe 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 BlockThe block that has to be put in its place. Same formats as From Block. Leave empty for anything.
WindowHow long, in seconds, the player has to place the new block after removing the old one. Defaults to 30.
AmountThe amount of blocks to replace.
DisplayDescription displayed to the player.
On CompleteTriggerable 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.