๐
1 file
3,967 chars
๐
pasted-code-1780905832584.txt
txt
158 lines
โถ
pasted-code-1780905832584.txt
txt
158 lines
# Survival Command Magic Mod
Create a Minecraft mod focused on survival-friendly command magic.
Target modern Minecraft versions (preferably 1.20.1+ or newer).
The mod should add exactly three primary items:
## 1. Wand
The Wand is used to cast a single command.
### Wand Behavior
* Right-clicking the Wand opens a magical command editor INVENTORY GUI.
* The INVENTORY GUI should feel magical and arcane, not like a normal command block screen.
* Players can type a single Minecraft command into the INVENTORY GUI.
* Pressing Enter executes the command.
* Pressing Escape closes the INVENTORY GUI without casting the spell.
* If the player closes the INVENTORY GUI without casting, the unfinished command should be saved and restored the next time the Wand is opened.
* The Wand may only store and execute one command at a time.
### Command Assistance
The editor should support:
* Command autocomplete.
* Command suggestions.
* Syntax validation.
* Helpful error messages.
Example:
If the player types:
sumon minecraft:wolf
The INVENTORY GUI should display:
Unknown command: sumon
Did you mean: summon
The editor should behave similarly to Minecraft's built-in command system.
---
## 2. Spell Book
The Spell Book stores reusable spells.
### Spell Book Behavior
* A Spell Book can contain multiple named spells.
* Each spell may contain multiple commands, functioning similarly to a Minecraft function file.
* Players can create, edit, rename, and delete spells.
* The Spell Book is intended for reusable spell scripts.
### Casting
* A Spell Book cannot cast spells by itself.
* The player must hold a Wand in their main hand.
* The Spell Book should be held in the offhand.
* When the player uses the Wand while holding a Spell Book in the offhand, the currently selected spell is cast.
### Spell Selection
* Sneak + mouse wheel cycles between stored spells.
* The selected spell name should appear on screen when changed.
* Sneak + right-click opens the Spell Book editor even while the book is in the offhand.
---
## 3. Spell Slab
The Spell Slab is a survival-friendly magical equivalent of a command block.
### General Behavior
* Placeable block.
* Directional.
* Displays an arrow showing its output direction.
* Can store commands or Spell Book style functions.
### Editing
* Right-click activates the Spell Slab.
* Sneak + right-click opens its editor INVENTORY GUI.
### Modes
The Spell Slab should support:
#### Impulse Mode
* Executes once when activated.
* Can be activated by player interaction.
* Can be activated by a redstone pulse.
#### Repeat Mode
* Activates continuously after being started.
* Right-click toggles it on and off.
* Redstone pulse may also toggle it.
### Chaining
* Spell Slabs should be able to activate the next Spell Slab in the direction they face.
* This allows players to create spell networks and automation systems.
---
## Command System
This mod is intended for survival mode.
Players should be able to use command magic even when cheats are disabled.
However, dangerous administrative commands should be blocked.
Allowed examples:
* summon
* tp
* effect
* particle
* setblock
* fill
* clone
* time
Blocked examples:
* op
* stop
* ban
* whitelist
* permission-related commands
* gamemode creative
The goal is to allow players to manipulate the world through magic while preventing server administration commands.
---
## Design Philosophy
This mod should feel like magical programming.
Players should feel like they are writing spells that alter reality.
The Wand represents a single command.
The Spell Book represents a function.
The Spell Slab represents automation.
The experience should feel similar to command blocks, datapack functions, and magic systems combined into a survival-friendly magical toolset.
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code