

RetroCommands for Minecraft b1.7.3
Command line system for the legendary Beta 1.7.3
The RetroCommands modification restores the familiar command system in classic Minecraft beta 1.7.3, with full support for server operation. The mod features an expandable API for developers of other modifications.
Main Features
- Fully compatible multiplayer operation
- Expandable API architecture for creating custom commands
- No additional dependencies required
Compatibility with Other Mods
For access to extended functionality of /tp commands with dimension support, installation of STAPI is required. The /gamemode command becomes available after adding BHCreative.
In-Game Usage
Get help for all available commands directly in the game by using the /help command.
Developer Integration
IMPORTANT: Make RetroCommands an optional dependency in your mod!
build.gradle Setup
repositories {
maven {
name = "Jitpack"
url "https://jitpack.io/"
}
}
dependencies {
modImplementation('com.github.matthewperiut:retrocommands:0.5.2') {
transitive false
}
}
fabric.mod.json Configuration
"suggests": {
"retrocommands": "*"
},
Command Initialization
public static void init_of_some_sort()
{
if (FabricLoader.getInstance().isModLoaded("retrocommands")){
MyModsCommands.add();
}
}
Creating Custom Commands
Create custom commands by implementing the com.matthewperiut.retrocommands.api.Command
interface and registering them through com.matthewperiut.retrocommands.api.CommandRegistry
:
CommandRegistry.add(new Command())
Replace new Command()
with your custom command.
Mob Summoning System
The SummonRegistry system allows you to add summon commands for your custom creatures. Examples from standard functionality:
Creeper
SummonRegistry.add(Creeper.class, (level, pos, param) -> {
Creeper creeper = new Creeper(level);
if (param.length > 5)
if (!param[5].isEmpty())
if (param[5].charAt(0) != '0')
((EntityAccessor) creeper).getDataTracker().setInt(17, (byte) 1);
return creeper;
}, "{charged (0 or 1)}");
Sheep
SummonRegistry.add(Sheep.class, (level, pos, param) -> {
int color = Integer.parseInt(param[5]);
int has_wool = 1;
if (param.length > 6)
has_wool = Integer.parseInt(param[6]);
Sheep sheep = new Sheep(level);
sheep.setSheared(has_wool == 0);
sheep.setColour(color);
return sheep;
}, "{wool color meta} {has wool (0/1)}");