Schrodinger Blocks
量子方块,在玩家观察之前处于叠加态。
每个量子方块都在两种状态之间闪烁:
- 它的自然方块(即实际存在的方块,
stateA),以及
- 一个“可能是任何东西”的方块(
stateB),这是一个完全不透明的立方体,根据方块的坐标从安全候选集中确定性地选取。
它在传送门粒子形成的薄雾中来回闪烁。任何玩家只要获得对其清晰、无遮挡的视线,波函数就会坍缩。方块将锁定为两者之一,而具体是哪一个完全由其坐标决定,而非随机或时机。你可以随意移开视线;但在有人真正看到它之前,它永远不会稳定下来。
量子方块可以通过命令放置,或在世界生成时自然出现,像量子矿石一样散布在地底。
功能说明
- 自然与随机的闪烁:每个量子方块在其真实的原始方块和一个确定性的“可能是任何安全方块”的选择之间交替。相同的坐标总是产生相同的配对和相同的坍缩结果。
- 安全候选集:随机侧(以及自然生成转换的唯一方块)仅限完全不透明的立方体。不包括台阶、楼梯、玻璃、树叶、地毯、植物、实体方块、红石状态方块、活塞、刷怪笼、基岩或受感染的方块。该集合在启动时通过扫描材料注册表并移除问题黑名单来构建一次。
- 自然世界生成:新生成的区块有可配置的概率在 Y 范围内的随机位置生成量子方块,但仅当自然方块本身是一个安全的全立方体时才生效。遵守全局上限。仅在主线程执行。
- 观察:通过真实的眼到方块的射线检测进行识别。视线必须畅通;被其他方块阻挡不算。
- 坍缩:锁定为一个确定性的、由坐标种子的结果(相同的位置总是以相同的方式坍缩),然后留下一个普通方块,并伴有微妙的粒子和声音反馈,以及一条操作栏消息告知观察者他们迫使什么存在。
- 性能:每刻仅处理距离在线玩家
observe-range x 1.5 范围内的方块。空闲方块保持其自然状态且不消耗资源,因此充满散落量子方块的世界在玩家靠近前看起来毫无异样。随后闪烁恢复。
- 持久性:未被观察的方块在重启后依然存在。自然状态和种子会被存储,因此配对和结果保持不变。
命令
| 命令 |
描述 |
/quantum place [forcedStateB] |
使你所注视的方块变为量子状态。stateA 是该方块的当前类型;stateB 是由种子生成的安全随机方块,或者如果你提供了材质则使用 forcedStateB。 |
/quantum clear |
停止跟踪你所注视的量子方块(保留当前世界方块不变)。 |
/quantum clear all |
停止跟踪所有量子方块。 |
/quantum info |
显示活动计数和当前可调参数。 |
/quantum reload |
重载 config.yml(管理员)。 |
别名:/qblock, /superposition。
权限
| 权限 |
默认值 |
授予 |
quantum.use |
op |
放置和清除量子方块。 |
quantum.admin |
op |
重载配置(隐含 quantum.use)。 |
配置 (config.yml)
observe-range: 24.0 # 允许观察的眼部到方块中心的距离
shimmer-period-ticks: 4 # 闪烁翻转之间的刻数 (20 = 1秒)
max-active-blocks: 500 # 并发叠加的安全上限
natural-spawn:
enabled: true # 世界生成生成的总开关
chance-per-chunk: 0.12 # 新区块获得任意量子方块(s)的概率
max-per-chunk: 1 # 每个新区块放置的最大量子方块数
min-y: -60 # 自然量子方块可能出现的最低 Y 值
max-y: 64 # 自然量子方块可能出现的最高 Y 值
不再有 default-state-a / default-state-b。现在的两个状态是方块的天然类型和安全候选集中由坐标种子选择的一个。
运行时使用 /quantum reload 重载。
兼容性
Paper / Spigot / Bukkit / Purpur 1.21.1 至 1.21.11 以及 26.1.x 系列(已在 26.1.2 上验证),Java 21。仅针对 Spigot API 构建(无 Paper 特定类),因此同一个 jar 可在上述任何平台上运行。
原始概念,内部测试想法,并非源自 Reddit 帖子。
Schrodinger Blocks
Quantum blocks that exist in superposition until a player observes them.
Every quantum block shimmers between two states:
- its natural block, whatever was actually there (
stateA), and
- a "could be anything" block (
stateB), a full opaque cube picked deterministically
from a safe-candidate set using the block's coordinates.
It flickers back and forth with a haze of portal particles. The moment any player gets a
clear, unobstructed line of sight to it, the wavefunction collapses. The block locks to
one of the two, and which one is decided purely by its coordinates, not by chance or
timing. Look away all you like; until someone actually sees it, it never settles.
Quantum blocks can be placed by command or appear naturally as the world generates,
scattered underground like a quantum ore.
What it does
- Natural-vs-random shimmer: each quantum block alternates between its real, original
block and a deterministic "could be any safe block" pick. Same coordinates always
yield the same pair and the same collapse outcome.
- Safe-candidate set: the random side (and the only blocks natural-spawn will convert)
are full opaque cubes only. No slabs, stairs, glass, leaves, carpets, plants, tile
entities, redstone-state blocks, pistons, spawners, bedrock, or infested blocks. The
set is built once at startup by scanning the Material registry and removing a problem
blacklist.
- Natural world-generation: freshly-generated chunks have a configurable chance to seed
quantum blocks at a random spot within a Y range, but only where the natural block is
itself a safe full cube. Honors the global cap. Main-thread only.
- Observation: detected with a real eye-to-block ray trace. The line of sight must be
clear; a block in the way does not count.
- Collapse: locks to a deterministic, coordinate-seeded outcome (the same spot always
collapses the same way), then leaves an ordinary block behind, with subtle particle
and sound feedback and an action-bar message telling the observer what they forced
into existence.
- Performance: only blocks within
observe-range x 1.5 of an online player are
processed each tick. Idle blocks sit on their natural state and cost nothing, so a
world full of scattered quantum blocks looks untouched until a player is near. Then
shimmering resumes.
- Persistence: still-unobserved blocks survive restarts. The natural state and seed are
stored, so the pair and the outcome are unchanged.
Commands
| Command |
Description |
/quantum place [forcedStateB] |
Make the block you are looking at quantum. stateA is that block's current type; stateB is the seeded safe-random block, or forcedStateB if you supply a material. |
/quantum clear |
Stop tracking the quantum block you are looking at (leaves the current world block as-is). |
/quantum clear all |
Stop tracking every quantum block. |
/quantum info |
Show active count and current tunables. |
/quantum reload |
Reload config.yml (admin). |
Aliases: /qblock, /superposition.
Permissions
| Permission |
Default |
Grants |
quantum.use |
op |
Place and clear quantum blocks. |
quantum.admin |
op |
Reload the config (implies quantum.use). |
Config (config.yml)
observe-range: 24.0 # eye -> block-centre distance that allows observation
shimmer-period-ticks: 4 # ticks between shimmer flips (20 = 1s)
max-active-blocks: 500 # safety cap on concurrent superpositions
natural-spawn:
enabled: true # master switch for world-generation spawning
chance-per-chunk: 0.12 # probability a fresh chunk gets any quantum block(s)
max-per-chunk: 1 # max quantum blocks placed per new chunk
min-y: -60 # lowest Y a natural quantum block may appear at
max-y: 64 # highest Y a natural quantum block may appear at
There is no longer a default-state-a / default-state-b. The two states are now the
block's natural type and a coordinate-seeded pick from the safe-candidate set.
Reload at runtime with /quantum reload.
Compatibility
Paper / Spigot / Bukkit / Purpur 1.21.1 to 1.21.11 and the 26.1.x line (verified on
26.1.2), Java 21. Built against the Spigot API only (no Paper-specific classes), so the
same jar runs on any of them.
Original concept, an internal test idea, not sourced from a Reddit post.
评论 0
登录后参与评分
还没有评论,来抢沙发吧