WIP: killall
This commit is contained in:
parent
1012b9d335
commit
6fa459896b
1 changed files with 22 additions and 0 deletions
|
@ -22,11 +22,33 @@ public class Mcsm implements ModInitializer {
|
|||
// However, some things (like resources) may still be uninitialized.
|
||||
// Proceed with mild caution.
|
||||
|
||||
// Glow command
|
||||
CommandRegistrationCallback.EVENT.register(
|
||||
(dispatcher, registryAccess, environnement) -> dispatcher.register(literal("glow").executes(context -> {
|
||||
dispatcher.execute("effect give @a minecraft:glowing 10000 1 true", context.getSource());
|
||||
|
||||
return 1;
|
||||
})));
|
||||
|
||||
// Clean mobs command
|
||||
// TODO: Ignore named entities
|
||||
/*
|
||||
* List<String> saved_entities = List.of("minecraft:player",
|
||||
* "minecraft:armor_stand", "#minecraft:arrows",
|
||||
* "minecraft:painting", "minecraft:item_frame", "minecraft:boat",
|
||||
* "minecraft:chest_boat",
|
||||
* "minecraft:villager");
|
||||
* String command = "say kill @e[type=!" + String.join(",type=!",
|
||||
* saved_entities) + "]";
|
||||
*
|
||||
* CommandRegistrationCallback.EVENT.register(
|
||||
* (dispatcher, registryAccess, environnement) -> dispatcher
|
||||
* .register(literal("nettoyage").executes(context -> {
|
||||
* dispatcher.execute(command,
|
||||
* context.getSource());
|
||||
*
|
||||
* return 1;
|
||||
* })));
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue