Puzzle Laser Grid
Laser grid puzzle -
字段
| 字段 | 类型 | 默认值 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
puzzleType | PuzzleType | LASER_GRID | —可选值: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> | true | — | ||||||||||||||||||||
showHints | Var<Boolean> | true | — | ||||||||||||||||||||
hintMessage | Var<String> | <yellow>Redirect the beams to the receivers! | 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. The beams are only drawn for players standing in the world of the emitters, within this radius. 0 = no distance limit (the world is still enforced). | ||||||||||||||||||||
emitters | List<LaserEmitterDef> | empty | Laser emitters in this puzzle.
|
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
position | Var<Position> | ORIGIN | World position of the emitter. |
color | Var<BeamColor> | RED | Beam color.可选值:REDGREENBLUEYELLOWPURPLECYANWHITE |
direction | Var<BlockFace> | NORTH | Initial beam direction. |
mirrorsList<LaserMirrorDef>emptyLaserMirrorDef(4)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
position | Var<Position> | ORIGIN | World position of the mirror. |
rotatable | Var<Boolean> | true | Can players rotate this mirror by right-clicking? A right click on a side of the mirror sends the beam away from the player; a right click on its top or bottom turns it a quarter turn (north, east, south, west). |
initialDirection | Var<BlockFace> | NORTH | Initial horizontal mirror direction. The test board uses this to require several rotations. |
mirrorMaterial | Var<Material> | WHITE_STAINED_GLASS | Material used for mirror visual. |
receiversList<LaserReceiverDef>emptyLaserReceiverDef(2)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
position | Var<Position> | ORIGIN | World position of the receiver. |
requiredColor | Var<BeamColor> | RED | Required beam color.可选值:REDGREENBLUEYELLOWPURPLECYANWHITE |
maxReflectionsVar<Int>16maxBeamLengthVar<Int>DEFAULT_MAX_LENGTHbeamDensityVar<Double>0.5solveSoundSoundTypeWriter 通用字段(criteria)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
criteria | List<Criteria> | empty | — |