make this mod for me # Build a Minecraft TNT Spawner & Prime Momentum Controller
Create a fully functional Minecraft TNT control tool that lets me spawn TNT entities wherever I want, customize their fuse times, control their Prime Momentum, and spawn large batches of TNT.
1. Spawn Location
I need complete control over where TNT spawns.
- Allow me to choose the X, Y, and Z coordinates.
- Allow me to use my current player position as the spawn location.
- Allow me to adjust the spawn location before spawning.
- Make it possible to spawn TNT at different locations.
2. TNT Settings
Give me two main TNT configurations:
Mode A: Prime Momentum ON
- Enable Minecraft-style TNT Prime Momentum.
- Give newly primed TNT its initial random horizontal velocity.
- Use approximately 0.2 blocks per tick.
- Allow me to customize the fuse time.
- Allow me to choose how many TNT entities to spawn.
Mode B: Prime Momentum OFF
- Completely cancel the initial Prime Momentum.
- Set the initial horizontal velocity to zero.
- Allow me to customize the fuse time.
- Allow me to choose how many TNT entities to spawn.
- TNT should remain at its spawn location unless affected by other forces.
3. Fuse Controller
Create a customizable fuse setting.
- Let me enter the fuse duration in ticks or seconds.
- Default Minecraft TNT fuse: 80 ticks (4 seconds).
- Allow short fuses and long fuses.
- Make sure the selected fuse applies to every TNT spawned in that batch.
- Display the fuse time clearly.
4. Batch Spawning System
I need to control exactly how many TNT entities spawn.
- Add a numerical input for TNT count.
- Include + and - buttons.
- Allow large batch counts.
- Add a SPAWN TNT button.
- Spawn the exact number of TNT entities specified.
- Apply the currently selected settings to every entity in the batch.
5. Lock Settings System
This is extremely important.
I want to be able to configure my TNT settings and LOCK them.
When settings are locked:
- Prime Momentum mode cannot accidentally change.
- Fuse duration cannot accidentally change.
- Spawn configuration stays selected.
- I can still change the TNT spawn count.
- I can spawn additional batches without changing my locked settings.
For example:
Configuration 1:
- Prime Momentum: ON
- Fuse: Short
- Count: 100
Lock the configuration and spawn 100 TNT.
Then change only the count to 250 and spawn another 250 TNT with exactly the same settings.
Configuration 2:
- Prime Momentum: OFF
- Fuse: Long
- Count: 500
Lock the configuration and spawn 500 TNT without Prime Momentum.
6. User Interface
Create a clean, modern control panel.
Include:
- Spawn coordinates (X, Y, Z)
- Use Player Position button
- Prime Momentum ON/OFF toggle
- Fuse duration input
- Fuse preset buttons (Short, Medium, Long)
- TNT count input
- Increment and decrement buttons
- Lock/Unlock Settings toggle
- Spawn TNT button
- Current configuration display
- Total TNT spawned counter
7. Important Physics Rules
- Prime Momentum must only be applied once when TNT is primed.
- Disabling Prime Momentum must mean zero initial horizontal velocity.
- Gravity must still work normally.
- Explosion knockback must still work normally.
- Custom fuse durations must work independently of momentum.
- Every TNT entity must receive the correct settings when spawned.
- Do not confuse explosion knockback with initial Prime Momentum.
8. Technical Requirements
- Build this as a working Minecraft integration, not just a visual simulator.
- Target Minecraft Java Edition.
- Use the appropriate Minecraft mod/plugin API for the selected version.
- Keep TNT spawning, fuse control, and physics modifications synchronized with the game.
- Make the interface responsive and easy to use.
If a Minecraft mod or server integration is required, implement the appropriate integration rather than pretending a standalone webpage can control Minecraft.
Final Goal
I want a TNT control panel where I can:
- Choose exactly where TNT spawns.
- Choose whether Prime Momentum is ON or OFF.
- Set any fuse duration.
- Choose exactly how many TNT entities to spawn.
- Lock my configuration.
- Spawn as many separate batches as I want while keeping the locked settings.
The most important feature is being able to switch between short-fuse TNT with Prime Momentum and long-fuse TNT without Prime Momentum, while freely changing the batch count without having to reconfigure everything. also add ~ ~ ~ so its easy to spawn them as well
I’ve started building the Fabric mod, including ~ relative coordinates and the lockable TNT control panel.
…1. Add shared server-authoritative payload handling, operator checks, coordinate/fuse validation, and bounded TNT batches. 2. Add the client O-key control panel with relative coordinates, presets, locking, count controls, and server feedback. 3. Add Fabric 26.3 build metadata and a README covering installation, permissions, behavior, and limits.Built the Fabric 26.3 mod with an O-key owo-ui control panel, server-authoritative TNT spawning, operator-only permission checks, relative coordinates, fuse controls, presets, locking, batch counts, and server feedback. Batches above 4,096 are rejected rather than reduced.
Installation, controls, limits, permissions, and behavior are documented in README.md. No items are added; operators use the controller directly in-game.
The mod is built, and compilation succeeded.
Press O in-game to open the TNT control panel. It supports ~ relative coordinates, fuse and momentum settings, and locking settings while changing the batch count.
Spawning requires operator permission; batches are limited to 4,096 TNT. See the included README for installation and controls.
No files in this session