工作原理
轨道杆是带有 NBT 数据的原版钓鱼竿。它们通过 UUID 锁定给获得者,因此其他人无法使用。当你使用这根杆时(取决于触发方式),它会执行你配置的打击效果。
获取杆需要通过指令——目前还没有合成表。杆可以配置射击类型、打击发射前的延迟刻数、大小,以及可选的固定目标坐标(无视玩家视角方向)。
触发方式
有三种触发方式,通过全局设置进行更改:
/orbital setting triggerstyle:
即时 — 右键点击,杆断裂,经过延迟后发射打击。简单粗暴。
投掷 — 右键点击抛出浮漂,等待片刻后发射并断裂。视觉效果整洁。
收线 — 第一次点击抛出浮漂,第二次点击收回并触发打击。这是首选风格,也是大多数设置使用的风格。
如果你的射线检测失败(看向天空/虚空),MissFailsafe 游戏规则将控制杆是断裂还是给你另一次机会。
射击类型
- 穿刺 — 从 Y=319 到 Y=-64 的垂直 TNT 柱。每三个方块放置三块 TNT,带有轻微的随机偏移。经典款。
- 直刺 — 与穿刺相同,但每个方块只有一块干净的 TNT,无偏移,完全垂直。
- 精确穿刺 — 基于 CubicMeter 的轨道炮设计。数百枚加速 TNT 在 Y=319 处链式引爆,驱动穿透 TNT 深入地下后再爆炸。实际上能钻透地形。
- 核弹 MK4 — 土星环阵列。TNT 在目标上方紧密聚集,然后在下落过程中向外扩展成同心环。经典的轨道核弹外观。
- 核弹 MK2 — 大型号。发射两批独立的 TNT。第一批形成锥形和蘑菇云形状,其高度随大小缩放。第二批在固定高度生成紧凑集群,自由下落 50 刻后向外爆炸成巨大的环形。锥形的高度按比例缩放,以确保外观始终正确。
- 核弹 MK6 — 快速且激进。所有 TNT 在中心生成,并立即以强烈的向下速度向外爆发,各环之间使用缓动加速度。快速且具有毁灭性。
- 精确核弹 - 完全精确模拟的核弹射击,完全按照 cubic metre 的方式实现
指令
/orbital give <shot> <delay> <amount>
/orbital give <shot> <delay> <size> <amount>
/orbital strike <shot> <delay> <pos>
/orbital strike crosshair <shot> <delay>
/orbital strike crosshair <shot> <delay> <size>
/orbital strike give <shot> <delay> <pos>
Strike give 创建一根固定目标的杆,无论用户看向哪里,它总是击中指定的坐标。
设置
你可能不想改动这些,我添加它们是为了让我能够在不每次重启 MC 的情况下调整数值
/orbital setting triggerstyle <instant|cast|reel>
/orbital setting nukemk4 OFFSET_HEIGHT <value>
/orbital setting nukemk4 INNER_RING_MULTIPLIER <value>
/orbital setting nukemk4 OUTER_RING_MULTIPLIER <value>
/orbital setting nukemk4 IMPERFECTION_PERCENT <value>
/orbital setting nukemk4 TNT_FUSE <value>
/orbital setting nukemk2 RING_BASE_SPEED <value>
/orbital setting nukemk2 TNT_FUSE <value>
/orbital setting nukemk6 OFFSET_HEIGHT <value>
/orbital setting nukemk6 TNT_FUSE <value>
/orbital setting stab DEPTH <value>
/orbital setting stab OFFSET <value>
/orbital setting stab AMOUNT_PER_PIECE <value>
/orbital setting accuratestab PIERCER_COUNT <value>
/orbital setting accuratestab ACCELERATOR_COUNT <value>
/orbital setting accuratestab PIERCER_FUSE <value>
/orbital setting accuratestab ACCELERATOR_FUSE <value>
/orbital setting accuratestab DOWN_VELOCITY <value>
游戏规则 (Gamerules)
/orbital setting gamerule OrbitalChatAnnouncement <true|false>
切换所有指令反馈消息。错误信息始终显示。
/orbital setting gamerule AdvancedRodNames <true|false>
False: 杆显示为 "nuke shot" 或 "stab shot"。True: 显示完整详情,如 "nukemk2 40 16"。
立即更新所有现有杆的名称。
/orbital setting gamerule FancyRods <true|false>
使所有杆变为粗体金色并带有附魔光效。没有实际的附魔,仅为装饰。立即更新现有杆的外观。
/orbital setting gamerule MissFailsafe <true|false>
当为 true 时,如果射线检测失败,杆不会断裂。给你另一次机会。
/orbital setting gamerule OneUseCreative <true|false>
当为 true 时,杆在创造模式下也会像生存模式一样断裂。False 允许你在创造模式下无限发射。
/orbital setting gamerule Mk2NukeCloudOnly <true|false>
禁用 MK2 核弹的第二批 TNT,仅保留锥形和云层。
备注
- 所有杆均通过 UUID 锁定。如果其他人捡起你的杆,它将毫无作用。
- 大小参数控制核弹的缩放比例(推荐 12 或 16),对于基本的穿刺射击无效。
- 设置当前不会在重启间保存。
- 仅限服务端,无需客户端模组。
源代码与问题反馈
本模组开源。如果出现故障、崩溃或有建议:
GitHub: https://github.com/FoxyWoxy12000/Orbital-Strike-Mod
基于 Fabric 构建,适用于 Minecraft 1.21.10/11。需要 Fabric API。
How It Works
Orbital rods are vanilla fishing rods tagged with NBT data. They're UUID-locked to whoever they were given to, so nobody else can fire them. When you use the rod (depending on trigger style), it calls down the strike you configured.
Getting a rod is done through commands — there's no crafting (yet). Rods can be configured with a shot type, delay in ticks before the strike fires, size, and optionally a fixed target coordinate that ignores where you're looking.
Trigger Styles
There are three ways rods can fire, set globally with
/orbital setting triggerstyle:
Instant — Right click, rod breaks, strike fires after delay. Simple.
Cast — Right click to throw the bobber, it sits for a second, then fires and breaks. Looks clean.
Reel — First click casts the bobber, second click reels it in and fires. This is the preferred style and what most setups use.
If your raycast misses (looking at sky/void), the MissFailsafe gamerule controls whether the rod breaks or gives you another chance.
Shot Types
- Stab — A vertical TNT column from Y=319 to Y=-64. Three TNT every three blocks with a slight random offset. The classic.
- Straight Stab — Same as stab but one clean TNT per block, no offset, perfectly vertical.
- Accurate Stab — Based on CubicMeter's orbital cannon design. Hundreds of accelerator TNT chain-detonate at Y=319 driving piercer TNT deep underground before they go off. Actually drills through terrain.
- Nuke MK4 — A Saturn-ring formation. TNT spawns as a tight cluster above the target then expands outward into concentric rings as it falls. Classic orbital nuke look.
- Nuke MK2 — The big one. Fires two separate batches. The first creates a cone and mushroom cloud shape that scales height based on size. The second batch spawns as a compact cluster at a fixed height, freefalls for 50 ticks, then explodes outward into a massive ring. The height of the cone scales proportionally with size so it always looks right.
- Nuke MK6 — Fast and aggressive. All TNT spawns at the center and immediately blasts outward with strong downward velocity using eased acceleration across rings. Quick and devastating.
- Accurate Nuke - A fully accuratlly simulated nuke shot exactly how cubic metre does it
Commands
/orbital give <shot> <delay> <amount>
/orbital give <shot> <delay> <size> <amount>
/orbital strike <shot> <delay> <pos>
/orbital strike crosshair <shot> <delay>
/orbital strike crosshair <shot> <delay> <size>
/orbital strike give <shot> <delay> <pos>
Strike give creates a fixed-target rod that always hits the specified coordinates regardless of where the user is looking.
Settings
You probably dont wanna mess with these i added these so that i could tweak values without restarting mc every single time
/orbital setting triggerstyle <instant|cast|reel>
/orbital setting nukemk4 OFFSET_HEIGHT <value>
/orbital setting nukemk4 INNER_RING_MULTIPLIER <value>
/orbital setting nukemk4 OUTER_RING_MULTIPLIER <value>
/orbital setting nukemk4 IMPERFECTION_PERCENT <value>
/orbital setting nukemk4 TNT_FUSE <value>
/orbital setting nukemk2 RING_BASE_SPEED <value>
/orbital setting nukemk2 TNT_FUSE <value>
/orbital setting nukemk6 OFFSET_HEIGHT <value>
/orbital setting nukemk6 TNT_FUSE <value>
/orbital setting stab DEPTH <value>
/orbital setting stab OFFSET <value>
/orbital setting stab AMOUNT_PER_PIECE <value>
/orbital setting accuratestab PIERCER_COUNT <value>
/orbital setting accuratestab ACCELERATOR_COUNT <value>
/orbital setting accuratestab PIERCER_FUSE <value>
/orbital setting accuratestab ACCELERATOR_FUSE <value>
/orbital setting accuratestab DOWN_VELOCITY <value>
Gamerules
/orbital setting gamerule OrbitalChatAnnouncement <true|false>
Toggles all command feedback messages. Errors always show regardless.
/orbital setting gamerule AdvancedRodNames <true|false>
False: rods show as "nuke shot" or "stab shot". True: shows full details like "nukemk2 40 16".
Updates all existing rods instantly.
/orbital setting gamerule FancyRods <true|false>
Makes all rods bold gold with an enchantment glint. No actual enchantment, just cosmetic. Updates existing rods instantly.
/orbital setting gamerule MissFailsafe <true|false>
When true, rods don't break if the raycast misses. Gives you another chance.
/orbital setting gamerule OneUseCreative <true|false>
When true, rods break in creative mode same as survival. False lets you fire infinitely in creative.
/orbital setting gamerule Mk2NukeCloudOnly <true|false>
Disables the second batch on the MK2 nuke, leaving only the cone and cloud.
Notes
- All rods are UUID-locked. If someone else picks up your rod it does nothing
- Size parameter controls scale for nukes (recommended 12 or 16) and is ignored for basic stab shots
- Settings are not currently saved across restarts
- Server-side only, no client mod required
Source Code & Issues
This mod is open source. If something breaks, crashes, or you want to suggest something:
GitHub: https://github.com/FoxyWoxy12000/Orbital-Strike-Mod
Built on Fabric for Minecraft 1.21.10/11. Requires Fabric API.
评论 0
登录后参与评分
还没有评论,来抢沙发吧