Puzzle Pattern
Pattern placement puzzle -
字段
| 字段 | 类型 | 默认值 | 描述 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
puzzleType | PuzzleType | PATTERN_PLACEMENT | —可选值:BLOCK_PUSHLASER_GRIDMEMORY_SEQUENCELEVER_ORDERPATTERN_PLACEMENTCOOP_PRESSUREITEM_FRAMECOMBINATION_LOCKPEDESTAL_OFFERING | ||||||||
fact | Ref<CachableFactEntry> | — | — | ||||||||
amount | Var<Int> | 1 | — | ||||||||
timeLimit | Var<Int> | 0 | — | ||||||||
cooldownOnFail | Var<Int> | 0 | — | ||||||||
maxAttempts | Var<Int> | 0 | — | ||||||||
resetOnWrong | Var<Boolean> | false | — | ||||||||
showHints | Var<Boolean> | true | — | ||||||||
hintMessage | Var<String> | <yellow>Place blocks in the correct pattern! {progress}/{total} | Chat message sent after each step of the puzzle when hints are on. {progress} is the steps done, {total} the steps needed. Leave it empty to send nothing.占位符颜色 | ||||||||
completionMessage | Var<String> | DEFAULT_PUZZLE_COMPLETION_MESSAGE | Chat message sent once to the player who solves the puzzle. Leave it empty to send nothing.占位符颜色 | ||||||||
onStart | Ref<TriggerableEntry> | — | — | ||||||||
onComplete | Ref<TriggerableEntry> | — | — | ||||||||
onFail | Ref<TriggerableEntry> | — | — | ||||||||
onTimeout | Ref<TriggerableEntry> | — | — | ||||||||
onLifespanExpire | Ref<TriggerableEntry> | — | — | ||||||||
lifespan | Var<Int> | 0 | — | ||||||||
isShared | Var<Boolean> | false | Share the progression with the players of the group set on the fact: a step, a mistake or the solve by one player applies to the others. Needs a fact with a group; has no effect without one. | ||||||||
activationRadius | Var<Double> | DEFAULT_PUZZLE_ACTIVATION_RADIUS | Detection radius in blocks around the grid. The preview is only rendered for players standing in the grid's world, within this radius. 0 = no distance limit (the world is still enforced). | ||||||||
pattern | List<PatternSlotDef> | empty | Expected materials for the grid pattern, in row-major order.
|
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
material | Var<Material> | AIR | Material expected at this grid position. |
gridOriginVar<Position>ORIGINcolumnsVar<Int>3previewOffsetYVar<Int>2ghostBlocksVar<Boolean>falsetoleranceVar<Int>0correctSoundSoundwrongSoundSoundsolveSoundSoundprogressMessageVar<String><green>Pattern <white>{progress}/{total}TypeWriter 通用字段(criteria)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
criteria | List<Criteria> | empty | — |