This commit is contained in:
parent
d12c3e5769
commit
4c09e501b4
|
@ -42,6 +42,16 @@ public class AnimalRP implements ModInitializer {
|
|||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
|
||||
String catAscii = """
|
||||
|\\ _,,,---,,_
|
||||
ZZZzz /,`.-'`' -. ;-;;,_
|
||||
|,4- ) )-,_. ,\\ ( `'-'
|
||||
'---''(_/--' `-'\\_)
|
||||
""";
|
||||
LOGGER.info(catAscii);
|
||||
LOGGER.info("furry animal mod for fabric");
|
||||
LOGGER.info("by @fucksophie - est. Sept 2024");
|
||||
animals.put("cat", new Cat());
|
||||
animals.put("dog", new Dog());
|
||||
animals.put("fox", new Fox());
|
||||
|
|
|
@ -24,8 +24,6 @@ public class TfCommand {
|
|||
.executes(context -> {
|
||||
final Entity entity = context.getSource().getEntity();
|
||||
final String animalString = StringArgumentType.getString(context, "animal");
|
||||
System.out.println(animalString);
|
||||
System.out.println(animalString.length());
|
||||
|
||||
Animal animal = AnimalRP.animals.get(animalString);
|
||||
|
||||
|
|
|
@ -97,11 +97,8 @@ public class Emote {
|
|||
List<Vec3d> locs = getEmoteLocs(player.getPos().subtract(0, player.isSneaking() ? .5 : 0, 0),
|
||||
emotes.get(emote), player.getRotationVector());
|
||||
for (Vec3d loc : locs) {
|
||||
for (int i = 0; i < 15; i++) {
|
||||
player.getWorld().addParticle(new DustParticleEffect(Vec3d.unpackRgb(16777215).toVector3f(), 0.5f),
|
||||
loc.x,
|
||||
loc.y, loc.z, 0, 0, 0);
|
||||
}
|
||||
player.getServerWorld().spawnParticles(new DustParticleEffect(Vec3d.unpackRgb(16777215).toVector3f(), 0.5f),
|
||||
loc.x, loc.y, loc.z, 15, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,7 +113,7 @@ public class Emote {
|
|||
float y2 = (float) y / ((float) distance / 2);
|
||||
float side = (((float) emoteTextLine.get(x) / distance) - ((float) ttEmote[0].length()) / 2 / distance);
|
||||
Vec3d idfk = rotationLoc.normalize();
|
||||
Vec3d rotation = new Vec3d(idfk.x, 0, idfk.y);
|
||||
Vec3d rotation = new Vec3d(idfk.x, 0, idfk.z);
|
||||
Vec3d rot = rotation.crossProduct(new Vec3d(0, side, 0));
|
||||
Vec3d addLoc = loc.add(rot);
|
||||
Vec3d newAloc = new Vec3d(addLoc.x, loc.getY() + ((float) ttEmote.length / distance - y2 + 2.25),
|
||||
|
|
Loading…
Reference in a new issue