GTNH 曲曲效果
[!INFO] 来源:
WarpEventRegistry枚举中注释为// GTNH warp effects的 25 个常量
25 个 GTNH 追加效果
| 常量 | name | description | 默认开 | minWarp | 全局 | 踢服 |
|---|---|---|---|---|---|---|
BLAZE_FIREBALL |
BlazeFireball | blaze fireball | ✅ | 95 | 否 | 否 |
COIN |
Coin | coin | ✅ | 15 | 否 | 否 |
COUNTDOWN_BOMB |
CountdownBomb | countdown bomb | ✅ | 160 | 是 | 否 |
DOPPELGANGER |
Doppelganger | doppelganger | ✅ | 75 | 否 | 否 |
ENDER_PEARL |
EnderPearl | ender pearl | ✅ | 90 | 否 | 否 |
ENDERMEN |
Endermen | endermen | ✅ | 80 | 否 | 否 |
EYE_BLINK |
EyeBlink | eye blink | ❌ | 5 | 否 | 否 |
FAKE_RAIN |
FakeRain | fake rain | ✅ | 25 | 否 | 否 |
FIRE_BATS |
FireBats | fire bats | ✅ | 60 | 否 | 否 |
INSOMNIA |
Insomnia | insomnia | ✅ | 50 | 否 | 否 |
INVENTORY_SCRAMBLE |
InventoryScramble | inventory scramble | ✅ | 150 | 否 | 否 |
INVENTORY_SWAP |
InventorySwap | inventory swap | ✅ | 125 | 否 | 否 |
JUNK |
Junk | junk | ✅ | 100 | 否 | 否 |
LAY_EGGS |
LayEggs | lay eggs | ✅ | 20 | 否 | 否 |
LITMUS_PAPER |
LitmusPaper | litmus paper | ✅ | 100 | 否 | 否 |
MESSAGE |
Message | message | ✅ | 5 | 否 | 否 |
MUSHROOMS |
Mushrooms | mushrooms | ✅ | 170 | 是 | 否 |
OBSIDIAN |
Obsidian | obsidian | ✅ | 110 | 是 | 否 |
PHANTOMS |
Phantoms | phantoms | ✅ | 20 | 否 | 否 |
PUMPKIN |
Pumpkin | pumpkin | ✅ | 15 | 否 | 否 |
SNOW |
Snow | snow | ✅ | 175 | 是 | 否 |
WAND_DRAIN |
WandDrain | wand drain | ✅ | 50 | 否 | 否 |
WITHER_POTION |
WitherPotion | wither potion | ❌ | 80 | 否 | 否 |
FAKE_ENDERMAN |
FakeEnderman | fake enderman | ✅ | 35 | 否 | 否 |
FAKE_WITHER |
FakeWither | fake wither | ✅ | 150 | 否 | 否 |
⚠️ FAKE_ENDERMAN / FAKE_WITHER / FAKE_DISCORD_* 虽在本段之后,
但仍属 GTNH 段(下一节的 3 个才是需 GregTech 的)。
3 个 Discord 梗
本段末尾 3 个是 GTNH 社区向的玩笑效果:
| 常量 | name | 声音键 | 限流 | minWarp |
|---|---|---|---|---|
FAKE_DISCORD_PING |
FakeDiscordPing | warptheory:discordping |
✅ | 50 |
FAKE_DISCORD_VOICE_CHANNEL_JOIN |
FakeDiscordVoiceChannelJoin | warptheory:discordvoicechanneljoin |
✅ | 100 |
(+ FAKE_DISCORD_* 共 2 个) |
它们使用 WarpFakeSoundRateLimited(继承 WarpFakeSound),
是唯一使用限流基类的两个效果 —— 防止短时间内反复触发扰人。
自定义声音资源位于 assets/warptheory/sounds/。
WITHER_POTION 与 WITHER 是两个不同效果
| 常量 | 效果 | 门槛 | 默认 |
|---|---|---|---|
WITHER(上游段) |
生成凋灵实体 | 200 | ✅ 开启 |
WITHER_POTION(本段) |
施加凋灵类效果 | 80 | ❌ 关闭 |
WITHER_POTION 是唯一同时施加 3 个药水效果的 buff,
且时长为 30 秒(30 * 20),不是其它 buff 的 20 秒:
WITHER_POTION(warp -> new WarpBuff("witherpotion", warp, false,
new PotionEffect(Potion.wither.id, 30 * 20, 2),
new PotionEffect(Potion.hunger.id, 30 * 20, 2),
new PotionEffect(Potion.moveSlowdown.id, 30 * 20, 2)),
"WitherPotion", "wither potion", true, 80, false, false),
| 药水 | 时长 | 等级 |
|---|---|---|
Potion.wither |
30 s | 2 |
Potion.hunger |
30 s | 2 |
Potion.moveSlowdown |
30 s | 2 |
三个效果等级均为 2(放大 2),时长统一 30 秒。
其 WarpBuff 第 3 参为 false(只给触发者),
与 POISON/NAUSEA/JUMP/BLIND 的 true(给所有人)不同。
两个物品栏破坏效果
| 常量 | 门槛 | 区别 |
|---|---|---|
INVENTORY_SWAP |
125 | 交换 |
INVENTORY_SCRAMBLE |
150 | 打乱 |
INVENTORY_SCRAMBLE 是 25 个中门槛最高的非全局效果。
另有两个与物品栏相关的效果分散在别处:
JUNK(100) 随机垃圾,LITMUS_PAPER(100) 对应本模组的
石蕊试纸。
4 个 isGlobal 效果
COUNTDOWN_BOMB(160)、MUSHROOMS(170)、OBSIDIAN(110)、SNOW(175)
会对所有在线玩家生效。
MUSHROOMS/OBSIDIAN/SNOW 会改写方块,
是本段中破坏性最高的三个。
最低门槛的一批
EYE_BLINK(5) 与 MESSAGE(5) 是全 50 个效果中门槛最低的,
(并列)其次 COIN(15) / PUMPKIN(15) / LAY_EGGS(20) /
PHANTOMS(20) / FAKE_RAIN(25)。
即刚产生曲曲的玩家最先遇到的是眨眼和消息这类轻效果。
曲曲值消耗
IWarpEvent.getCost() 的实现是:
public final int getCost() {
return (int) Math.ceil(getSeverity() / (double) 10);
}
getSeverity() 返回 minWarp,即效果消耗
ceil(minWarp / 10) 点曲曲值。
两个 minWarp = 5 的效果各消耗 1 点;
WITHER(200) 消耗 20 点。