Retro Commands for b1.7.3
- it works on servers
- it has an extensible API.
- No dependencies required
Optional Dependencies
- To access /tp with dimensions, install STAPI
- To access /gamemode, install BHCreative
Help
- Use
/helpin-game
API
Note: Please make Retro Commands optional!!
build.gradle
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
def retroCommandsJar = configurations.detachedConfiguration(
dependencies.create("maven.modrinth:retrocommands:${project.properties['retrocommands_version']}")
)
retroCommandsJar.transitive = false
modLocalRuntime files(zipTree(retroCommandsJar.singleFile).matching { include 'META-INF/jars/*.jar' }.files)
}
or build.gradle.kts if that's your tempo
repositories {
exclusiveContent {
forRepository {
maven("https://api.modrinth.com/maven")
}
filter {
includeGroup("maven.modrinth")
}
}
}
dependencies {
val retroCommandsJar = configurations.detachedConfiguration(
dependencies.create("maven.modrinth:retrocommands:${project.properties["retrocommands_version"]}")
).apply { isTransitive = false }
modLocalRuntime(files(zipTree(retroCommandsJar.singleFile).matching { include("META-INF/jars/*.jar") }.files))
}
}
fabric.mod.json
"suggests": {
"retrocommands": "*"
},
in your mods initialization
public static void init_of_some_sort()
{
if (FabricLoader.getInstance().isModLoaded("retrocommands")){
MyModsCommands.add();
}
}
implement api.com.periut.retrocommands.Command
register with api.com.periut.retrocommands.CommandRegistry
CommandRegistry.add(new Command())
new Command() replaced with your custom command.
Add your own summon command for your entities
Use api.com.periut.retrocommands.SummonRegistry
SummonRegistry.add(...)
Examples from util.com.periut.retrocommands.VanillaMobs
SummonRegistry.add(Creeper.class, (world, pos, param) -> {
Creeper creeper = new Creeper(world);
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)}");
SummonRegistry.add(Sheep.class, (world, 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(world);
sheep.setSheared(has_wool == 0);
sheep.setColour(color);
return sheep;
}, "{wool color meta} {has wool (0/1)} ");
Configuration
Cryonic Config is required for this feature.
This file generates when using a command for the first time
To disable commands go to {mc_dir}/config/retrocommands.json and in the json under "disabledCommands", set the value to commands you want to disable separated by commas
Examples:
{
"disabledCommands": "help,give,hat"
}
{
"disabledCommands": "hat"
} All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
|
R
0.5.10
|
last yr. | 1 | |||
|
R
0.5.9
|
last yr. | 1 | |||
|
R
0.5.8
|
last yr. | 1 | |||
|
R
0.5.7
|
last yr. | 1 | |||
|
R
0.5.6
|
last yr. | 1 | |||
|
R
0.5.5
|
last yr. | 1 | |||
|
R
0.5.4
|
last yr. | 1 | |||
|
R
0.5.3
|
last yr. | 1 | |||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
OSL is now embedded in both jars, so retrocommands runs standalone on either loader without installing OSL separately.
Internally, retrocommands no longer exports any of its dependencies to mods that depend on it — previously all of OSL, cryonicconfig, starac and retroapi leaked through transitively. Dependency mods are reached by reflection instead.
- Full Changelog**: https://github.com/matthewperiut/retrocommands/compare/0.7.4...0.7.5
OSL is now embedded in both jars, so retrocommands runs standalone on either loader without installing OSL separately.
Internally, retrocommands no longer exports any of its dependencies to mods that depend on it — previously all of OSL, cryonicconfig, starac and retroapi leaked through transitively. Dependency mods are reached by reflection instead.
- Full Changelog**: https://github.com/matthewperiut/retrocommands/compare/0.7.4...0.7.5
Lots of things... that i can't be bothered to name. look at github.
Lots of things... that i can't be bothered to name. look at github.
## What's Changed
### Other
- Fix spawn radius for summon command by @telvarost in https://github.com/matthewperiut/retrocommands/pull/9
- Full Changelog**: https://github.com/matthewperiut/retrocommands/compare/0.5.9...0.5.10
<!-- Release notes generated using configuration in .github/release.yaml at master -->
## What's Changed
### Other
- Fix cursor position by using MojangFixStationAPI v2.3.0 by @telvarost in https://github.com/matthewperiut/retrocommands/pull/3
- Full Changelog**: https://github.com/matthewperiut/retrocommands/compare/0.5.4...0.5.5
Improve commands
- Full Changelog**: https://github.com/matthewperiut/retrocommands/compare/0.5.2...0.5.3
Improve appearance of commands
Should work together flawlessly
refer to using [MojangFixStationAPI]([https://modrinth.com/mod/mojangfix-stationapi-edition](https://modrinth.com/mod/mojangfix-stationapi-edition)) for mojang fix