fix bin files being commited, continue working on porting..

This commit is contained in:
Soph :3 2024-12-01 16:46:39 +02:00
parent 2f5a4bc647
commit 93e55984a5
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
41 changed files with 280 additions and 68 deletions

View file

@ -1,13 +0,0 @@
{
"required": true,
"package": "ovh.sad.animalrp.fabric.mixin",
"compatibilityLevel": "JAVA_21",
"server": [
"DecoratedMessage",
"FoodEating",
"Sneaking"
],
"injectors": {
"defaultRequire": 1
}
}

View file

@ -1,32 +0,0 @@
{
"schemaVersion": 1,
"id": "animalrp",
"version": "${version}",
"name": "AnimalRP",
"description": "AnimalRP, an plugin for furry minecraft servers that mangles your text, adds specific types of animals that have different improvements and more!",
"authors": [
"@fucksophie"
],
"contact": {
"homepage": "https://sad.ovh",
"sources": "https://git.sad.ovh/sophie/animalrp2"
},
"license": "CC0-1.0",
"icon": "assets/animal-rp/icon.png",
"environment": "*",
"entrypoints": {
"server": [
"ovh.sad.animalrp.fabric.AnimalRPFabric"
]
},
"mixins": [
"animal-rp.mixins.json"
],
"depends": {
"fabricloader": ">=0.16.4",
"minecraft": "~1.21.1",
"java": ">=21",
"fabric-api": "*",
"placeholder-api": "*"
}
}

View file

@ -13,15 +13,21 @@ import eu.pb4.placeholders.api.PlaceholderHandler;
import eu.pb4.placeholders.api.PlaceholderResult;
import eu.pb4.placeholders.api.Placeholders;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.util.Identifier;
import ovh.sad.animalrp.common.AnimalRP;
import ovh.sad.animalrp.common.util.Animal;
import ovh.sad.animalrp.common.util.HashmapStore;
import ovh.sad.animalrp.common.util.Messages;
import ovh.sad.animalrp.common.util.Mood;
import ovh.sad.animalrp.fabric.animals.Bee;
import ovh.sad.animalrp.fabric.animals.Cat;
import ovh.sad.animalrp.fabric.animals.Dog;
import ovh.sad.animalrp.fabric.animals.Fox;
import ovh.sad.animalrp.fabric.commands.InteractionCommand;
import ovh.sad.animalrp.fabric.commands.NoChatCommand;
import ovh.sad.animalrp.fabric.commands.TfCommand;
public class AnimalRPFabric implements ModInitializer, AnimalRP {
public static ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
@ -60,5 +66,50 @@ public class AnimalRPFabric implements ModInitializer, AnimalRP {
return PlaceholderResult.value(animal.color);
}
});
CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> {
(new TfCommand()).Command(dispatcher, registryAccess, environment);
(new NoChatCommand()).Command(dispatcher, registryAccess, environment);
new InteractionCommand(
"headpats",
Mood.HAPPY,
Messages.get("headpats_to_target"),
Messages.get("headpats_to_self")
).Command(dispatcher, registryAccess, environment);
new InteractionCommand(
"kiss",
Mood.CUTE,
Messages.get("kiss_to_target"),
Messages.get("kiss_to_self")
).Command(dispatcher, registryAccess, environment);
new InteractionCommand(
"bite",
Mood.ANGRY,
Messages.get("bite_to_target"),
Messages.get("bite_to_self")
).Command(dispatcher, registryAccess, environment);
new InteractionCommand(
"scratch",
Mood.ANGRY,
Messages.get("scratch_to_target"),
Messages.get("scratch_to_self")
).Command(dispatcher, registryAccess, environment);
new InteractionCommand(
"hug",
Mood.HAPPY,
Messages.get("hug_to_target"),
Messages.get("hug_to_self")
).Command(dispatcher, registryAccess, environment);
new InteractionCommand(
"cuddle",
Mood.CUTE,
Messages.get("cuddle_to_target"),
Messages.get("cuddle_to_self")
).Command(dispatcher, registryAccess, environment);
});
}
}