Skip to main content

Replace Craftengine Block Objective

An objective to replace a block with another one

Fields

FieldTypeDefaultDescription
questRef<QuestEntry>——
factRef<CachableFactEntry>——
fromBlockVar<String>—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.
toBlockVar<String>—The block that has to be put in its place. A CraftEngine block or furniture id ('namespace:id'), or a vanilla material name ('STONE'). Leave empty for anything.
windowVar<Int>30How long, in seconds, the player has to place the new block after removing the old one.
amountVar<Int>1The amount of blocks to replace.
displayVar<String>——
onCompleteRef<TriggerableEntry>——
Common TypeWriter fields (criteria, children, priorityOverride)
FieldTypeDefaultDescription
criteriaList<Criteria>empty—
childrenList<Ref<AudienceEntry>>empty—
priorityOverrideOptional<Int>——

How to use it​

Counts how many times the player removes a block or furniture and puts something else at the very same position shortly after. fromBlock and toBlock each accept a CraftEngine id (namespace:id) or a vanilla material (STONE or minecraft:stone); empty accepts anything. window is the number of seconds allowed between the removal and the placement. A position counts once per player, so back-and-forth replacing cannot be farmed.