From 2f5a4bc6475c89fb8f92c5bb92594051f285e300 Mon Sep 17 00:00:00 2001 From: sophie Date: Sun, 13 Oct 2024 15:19:27 +0300 Subject: [PATCH] first commit --- .gitattributes | 12 + .gitignore | 5 + .vscode/settings.json | 4 + README.md | 1 + animalrp-common/bin/main/messages.json | 14 + .../ovh/sad/animalrp/common/AnimalRP.class | Bin 0 -> 1005 bytes .../ovh/sad/animalrp/common/util/Animal.class | Bin 0 -> 1187 bytes .../sad/animalrp/common/util/Cooldown.class | Bin 0 -> 1637 bytes .../animalrp/common/util/HashmapStore.class | Bin 0 -> 3479 bytes .../sad/animalrp/common/util/Messages.class | Bin 0 -> 1395 bytes .../ovh/sad/animalrp/common/util/Mood.class | Bin 0 -> 1178 bytes .../animalrp/common/util/TextDestroyer.class | Bin 0 -> 1872 bytes animalrp-common/build.gradle | 5 + .../ovh/sad/animalrp/common/AnimalRP.java | 30 +++ .../ovh/sad/animalrp/common/util/Animal.java | 24 ++ .../sad/animalrp/common/util/Cooldown.java | 35 +++ .../animalrp/common/util/HashmapStore.java | 66 +++++ .../sad/animalrp/common/util/Messages.java | 34 +++ .../ovh/sad/animalrp/common/util/Mood.java | 5 + .../animalrp/common/util/TextDestroyer.java | 44 +++ .../src/main/resources/messages.json | 14 + animalrp-fabric/bin/main/animalrp.mixins.json | 13 + animalrp-fabric/bin/main/fabric.mod.json | 32 +++ .../animalrp/fabric/AnimalRPFabric$1.class | Bin 0 -> 1953 bytes .../sad/animalrp/fabric/AnimalRPFabric.class | Bin 0 -> 3912 bytes .../sad/animalrp/fabric/animals/Bee$1.class | Bin 0 -> 1132 bytes .../sad/animalrp/fabric/animals/Bee$Row.class | Bin 0 -> 598 bytes .../ovh/sad/animalrp/fabric/animals/Bee.class | Bin 0 -> 10345 bytes .../ovh/sad/animalrp/fabric/animals/Cat.class | Bin 0 -> 4576 bytes .../ovh/sad/animalrp/fabric/animals/Dog.class | Bin 0 -> 4314 bytes .../ovh/sad/animalrp/fabric/animals/Fox.class | Bin 0 -> 4472 bytes .../fabric/commands/InteractionCommand.class | Bin 0 -> 7601 bytes .../fabric/commands/NoChatCommand.class | Bin 0 -> 4565 bytes .../animalrp/fabric/commands/TfCommand.class | Bin 0 -> 7793 bytes .../fabric/mixin/DecoratedMessage.class | Bin 0 -> 3183 bytes .../animalrp/fabric/mixin/FoodEating.class | Bin 0 -> 3711 bytes .../sad/animalrp/fabric/mixin/Sneaking.class | Bin 0 -> 1541 bytes animalrp-fabric/build.gradle | 61 +++++ .../sad/animalrp/fabric/AnimalRPFabric.java | 64 +++++ .../ovh/sad/animalrp/fabric/animals/Bee.java | 194 ++++++++++++++ .../ovh/sad/animalrp/fabric/animals/Cat.java | 64 +++++ .../ovh/sad/animalrp/fabric/animals/Dog.java | 53 ++++ .../ovh/sad/animalrp/fabric/animals/Fox.java | 64 +++++ .../fabric/commands/InteractionCommand.java | 95 +++++++ .../fabric/commands/NoChatCommand.java | 40 +++ .../animalrp/fabric/commands/TfCommand.java | 72 +++++ .../fabric/mixin/DecoratedMessage.java | 46 ++++ .../sad/animalrp/fabric/mixin/FoodEating.java | 49 ++++ .../sad/animalrp/fabric/mixin/Sneaking.java | 24 ++ .../src/main/resources/animalrp.mixins.json | 13 + .../src/main/resources/fabric.mod.json | 32 +++ .../sad/animalrp/paper/AnimalRPPaper.class | Bin 0 -> 2818 bytes .../sad/animalrp/paper/animals/Bee$1.class | Bin 0 -> 1057 bytes .../sad/animalrp/paper/animals/Bee$Row.class | Bin 0 -> 589 bytes .../ovh/sad/animalrp/paper/animals/Bee.class | Bin 0 -> 8755 bytes .../ovh/sad/animalrp/paper/animals/Cat.class | Bin 0 -> 3620 bytes .../ovh/sad/animalrp/paper/animals/Dog.class | Bin 0 -> 3177 bytes .../ovh/sad/animalrp/paper/animals/Fox.class | Bin 0 -> 3733 bytes .../animalrp/paper/listeners/PlayerChat.class | Bin 0 -> 998 bytes animalrp-paper/build.gradle | 18 ++ .../ovh/sad/animalrp/paper/AnimalRPPaper.java | 34 +++ .../ovh/sad/animalrp/paper/animals/Bee.java | 201 ++++++++++++++ .../ovh/sad/animalrp/paper/animals/Cat.java | 62 +++++ .../ovh/sad/animalrp/paper/animals/Dog.java | 54 ++++ .../ovh/sad/animalrp/paper/animals/Fox.java | 67 +++++ .../animalrp/paper/listeners/PlayerChat.java | 40 +++ build.gradle | 42 +++ gradle.properties | 19 ++ gradle/libs.versions.toml | 7 + gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 43583 bytes gradle/wrapper/gradle-wrapper.properties | 7 + gradlew | 252 ++++++++++++++++++ gradlew.bat | 94 +++++++ settings.gradle | 20 ++ 74 files changed, 2126 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 README.md create mode 100644 animalrp-common/bin/main/messages.json create mode 100644 animalrp-common/bin/main/ovh/sad/animalrp/common/AnimalRP.class create mode 100644 animalrp-common/bin/main/ovh/sad/animalrp/common/util/Animal.class create mode 100644 animalrp-common/bin/main/ovh/sad/animalrp/common/util/Cooldown.class create mode 100644 animalrp-common/bin/main/ovh/sad/animalrp/common/util/HashmapStore.class create mode 100644 animalrp-common/bin/main/ovh/sad/animalrp/common/util/Messages.class create mode 100644 animalrp-common/bin/main/ovh/sad/animalrp/common/util/Mood.class create mode 100644 animalrp-common/bin/main/ovh/sad/animalrp/common/util/TextDestroyer.class create mode 100644 animalrp-common/build.gradle create mode 100644 animalrp-common/src/main/java/ovh/sad/animalrp/common/AnimalRP.java create mode 100644 animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Animal.java create mode 100644 animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Cooldown.java create mode 100644 animalrp-common/src/main/java/ovh/sad/animalrp/common/util/HashmapStore.java create mode 100644 animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Messages.java create mode 100644 animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Mood.java create mode 100644 animalrp-common/src/main/java/ovh/sad/animalrp/common/util/TextDestroyer.java create mode 100644 animalrp-common/src/main/resources/messages.json create mode 100644 animalrp-fabric/bin/main/animalrp.mixins.json create mode 100644 animalrp-fabric/bin/main/fabric.mod.json create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/AnimalRPFabric$1.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/AnimalRPFabric.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Bee$1.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Bee$Row.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Bee.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Cat.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Dog.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Fox.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/commands/InteractionCommand.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/commands/NoChatCommand.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/commands/TfCommand.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/mixin/DecoratedMessage.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/mixin/FoodEating.class create mode 100644 animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/mixin/Sneaking.class create mode 100644 animalrp-fabric/build.gradle create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/AnimalRPFabric.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Bee.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Cat.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Dog.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Fox.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/InteractionCommand.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/NoChatCommand.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/TfCommand.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/DecoratedMessage.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/FoodEating.java create mode 100644 animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/Sneaking.java create mode 100644 animalrp-fabric/src/main/resources/animalrp.mixins.json create mode 100644 animalrp-fabric/src/main/resources/fabric.mod.json create mode 100644 animalrp-paper/bin/main/ovh/sad/animalrp/paper/AnimalRPPaper.class create mode 100644 animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Bee$1.class create mode 100644 animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Bee$Row.class create mode 100644 animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Bee.class create mode 100644 animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Cat.class create mode 100644 animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Dog.class create mode 100644 animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Fox.class create mode 100644 animalrp-paper/bin/main/ovh/sad/animalrp/paper/listeners/PlayerChat.class create mode 100644 animalrp-paper/build.gradle create mode 100644 animalrp-paper/src/main/java/ovh/sad/animalrp/paper/AnimalRPPaper.java create mode 100644 animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Bee.java create mode 100644 animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Cat.java create mode 100644 animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Dog.java create mode 100644 animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Fox.java create mode 100644 animalrp-paper/src/main/java/ovh/sad/animalrp/paper/listeners/PlayerChat.java create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100644 gradle/libs.versions.toml create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100755 gradlew create mode 100644 gradlew.bat create mode 100644 settings.gradle diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f91f646 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# Linux start script should use lf +/gradlew text eol=lf + +# These are Windows script files and should use crlf +*.bat text eol=crlf + +# Binary files should be left untouched +*.jar binary + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b6985c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0153b31 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive", + "java.compile.nullAnalysis.mode": "disabled" +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..226c5de --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +this is unfinished \ No newline at end of file diff --git a/animalrp-common/bin/main/messages.json b/animalrp-common/bin/main/messages.json new file mode 100644 index 0000000..94d455b --- /dev/null +++ b/animalrp-common/bin/main/messages.json @@ -0,0 +1,14 @@ +{ + "no_chat_command_enabled": "AnimalRP's chat modifications are now enabled for you.", + "no_chat_command_disabled": "AnimalRP's chat modifications are now disabled for you.", + "animal_not_set": "You do not have a animal set.", + "animal_removed": "You no longer have a animal set.", + "animal_set": "You are now an %s! ", + "your_options": "Your options are: ", + "invalid_animal": "Invalid animal!", + "tf_off": "Use /tf off to disable the changes.", + "only_animals": "Only animals can interact with other animals :(", + "no_console": "I'm sorry console.", + "no_self_argument": "You can't %1 yourself.", + "not_animal": "%1 is not an animal :(" +} \ No newline at end of file diff --git a/animalrp-common/bin/main/ovh/sad/animalrp/common/AnimalRP.class b/animalrp-common/bin/main/ovh/sad/animalrp/common/AnimalRP.class new file mode 100644 index 0000000000000000000000000000000000000000..064246de02b729376fb175c1e03335f4ddcfdc8b GIT binary patch literal 1005 zcmb7DTT2^36h7l6mo@Pct<_$1dUK8JW?xz;BnUR4R2q$F6&eD`WHU+DZf3&luA=y- zN*@X>^au30zo+!Jl^1=>V;zeLXTV%F zv}`#TNMY?o`1mLZGXxgT*#)y)CVEz_ea>y4K;ocQY3^4DiRRTKkH2 z1N)07hkb`@ieDikDc5($YX+BLf=Dg%-`gd~7|>z#_~MSg1OJ z9|i-g`H8h%d``Klw3&OxloR67rgkC&W%Kt=7?F+N%kfbmJVAmW@ihJ~v#^d|0#Opt z6r>PiUBsCPXAxudFF6uiJW2QxT_;ZSXVmn$pmHIDy z1V}`cK;i@VD8yMiw5b|Zec72EpP4;#X4ilI{`?J~f!8JE1lFUojuXqaBSSxsUDb2k zCIX-jYRRK+Do^Cf?x9q^-VcLD((%b^^Y(5s`N?vzd9B8I?|+@$yA-HX zkYPu~x*z(Q)x#3j1ZLAKFgi*Tt60{`Y*?6tS;7`4 zeucW6fr-rwSG8~t(>i0@LJ39f?OK@7s+Qf3Oj=5Y@o}UAnfOsi^|r?JFm_5Nubgtd z_r9LTRHo{l<|0t9x89EQon7r(V@z!SCd^nP$2?zCftKT^Cp7icl6Y#_JflK z$;A9@0L#7Fps>a57K0>T+M1 zZ_wKI1)kc!u=?c!&jwhhyGi%?02O9E$YnAFZkp@&Et; literal 0 HcmV?d00001 diff --git a/animalrp-common/bin/main/ovh/sad/animalrp/common/util/Cooldown.class b/animalrp-common/bin/main/ovh/sad/animalrp/common/util/Cooldown.class new file mode 100644 index 0000000000000000000000000000000000000000..2d63c8d85c06666d2e7ef50a0004c867d4e6be42 GIT binary patch literal 1637 zcma)6>r&G|6#kZ$rY)(}BJ~E|kzSB^!E5n?h)OM@7OSFvLc4}wn(d@1$^-ZY{`C!X zMrWilI^zTQP>yGl2yw*ApX~10bH4MP^PSDN@1MT{n8Z^BJq*KQWl3x64NbSrrfxYc ztuC5PVQU@Nw6rN9tcG}DD~K{|U)EQ2&C+c{n_FDwb(f*fHJg0O;kwHk46Mu$v$$=z zOAP&$P4^kw`wn2BX3DY*+%M6iRzDBN7qQR4hAg!VgDnq(r z+WbzZxyYS)ebMq@L|wOPx?{?7V2rv;W}9K8@?VuvUd7<+Uc~iw81{ikKJC4I`FM8IrEVC`6_p4A4PvRgBD>y`6zcoU|5gcWRo3>li zt&X30h9P0Lr(d>AM>dn1u#hCQoQjb zAfqO4e2q#9jx+52vqKW2NXOBe#7Uf1aEf8uCf|y%4He@!LtR>tOy{1Fvbl0Tq@VOD zNtAOc&f@|Nh2Ch~bwrCh?kee!3;70Ghb+FHrF<<8C60vb-z60ZBqib%iFoy&7y+sr znuu6jW*GciL#Xf19MSZfH=X;NYyLlHNa~c9gm0?21rjnsBgJrXi_*8&YTDvWnj>oC zZOkgDFznk(vA|8m9XSyRN;27&?U!M9RowH2%CpjolLJ_l;>|N;b2DMde!fQ;S5xs2 zk4QBy&Tl2dP8zDsG1z#b(Yn>3kxN!Z$EouhrhJ5{pFfE)8Gu97iwON-BDB&Yq8-f+ z;@(QK(%MTFdeHPu(Mh9~No(N~wtb*Y54O`c<{Pnt_R>{`WzbJ6k;4FeW$;AcmnnQi zb{)HE8S3J|E6(51Z5XL9gp}Dp8pg2z=_;aLmQLDd!dWU6RBGHS zbN~mCMIO7o+*uzs$Q`Hu$Rw^&(gdb(JxKnNILqYYU%)8&bfs9xXkFasqP&JI9WHu@ zxpmxM!w{WI-ub~ACVpcvNGyh^-TN_2JWi3iQV^fTxR)E`F^b2;SL(RnRq^BpE4*bn literal 0 HcmV?d00001 diff --git a/animalrp-common/bin/main/ovh/sad/animalrp/common/util/HashmapStore.class b/animalrp-common/bin/main/ovh/sad/animalrp/common/util/HashmapStore.class new file mode 100644 index 0000000000000000000000000000000000000000..c186cb3ee3e738651ca41f689a322952930540cc GIT binary patch literal 3479 zcma)8X;Tze6g_VkXc!tnL=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.class b/animalrp-common/bin/main/ovh/sad/animalrp/common/util/Mood.class new file mode 100644 index 0000000000000000000000000000000000000000..aafac6ff4c85d2657e1556bb26a13b4c0e97a0ef GIT binary patch literal 1178 zcma)4T~E_s6nqgmcH5iibN;^9i!%XGB0tE)iEWKt>&Ar{SX_m=N zmbTvR5(>h#*=mY%M|311t57%?)1h#naxkew(Yf zR!2W{hQW&KJ6o;BffMf82cAPURDzoARqfE_SOhglNK>WJk=vx=PHnH{kTaLb_R_P4 z1uQCf%rF$|<*XSw4IKuaFr@4-w9jh6$r(c~-tqRqu~Ul*8?hn$3DFc76j93dM~0O+ ztuv@>4-4U~J=c-P62nqlW8Jfx%|h(qzoOkH_)*cFXlBp~Yt9>&k1xfqZ;|JaZ@P8g zj#?qbmtsYD?KD#;O04o1-O$CU{rwdqyQ5F+?55G65zffz_j|E6r?tWO)JsHsA(nJ zm@qB5jVaSo+L$)aG4q9<>cd0&*U0i>O4P=ji1IIV<(oTs@=w?NPYvl2?qmiQ= Z{+5S}r?N z@4b{xZ#vG%tGIVrF70N7HunCam_+{!MN{E8D-b8w+%;uEaA+Seos#qbZaAh zbA8Lmxe}tr{gPvp%cgCWCA6+)k4)xW$Fw#^B!nEJRM2w<4cb;4S_DT;%XG(xsIP&( zkxz0_f;?&GjR^dRsR*MxQ$SuNMqzvUW}{ zEb5La&Idx--86}EAp7dX@P10Z&XR;neW&lAJS__0tOTh$f=+ZPICp~BI%_K4K(~ZI zxl}O8a&M!!4VY4Jfkp62;FWN~arEu1S#~2hkC=jsFH?Ei+q#vvixKo77D68ptqMdb z75x~H5GlL5?|t{C~pNTWch_B9M)!7{!O|GmG7L&9)1MZh3{Kwi8!XjAMcoIOs45Q^$c$ zZtBjw@m0mJa>mH9GMtb%sEoQUajum`um%%ePK1D;s!n@ z0AV#_u~c&3OmaqGn^iG~n-px>CLxc%3a}a1a6~(fGyugUMGl(2;WclAF$;WcJ9&1m z->wkHnfiUbLJPjxr_#1)`=c_{>raI&JSBwdEOKZiw4WT0?b6E;={Xia#2r1x>%qj2 zF=TAs)pK9Y>LqWo6a>97jLh2=CudBX-UOa_U@i+>>{8!mc^>3~H+XDK`U8(ejgL*vd5ynQN4*cpGA9;;)U8?z$TiXy=Imyfl)x6NyBc z*U(W<<4e##M%|14xVDGaXP@Kz@-w_S_Z&U^UdqS=%b8GhSn&@BckzQ3N(6^80WA>k z-9vH*G42NUkbdOthCEsGpceQA@A|N`3rCapklDd;*;?vnv@B=T>TuLQ9N9&urY0go znXnen!u}yGEHlhlCh#yKB_fIFliFX0@kFp|ZJ7S!)_VXIfVFO**Vv!!;0>0(< z5ia6;^x`+#|A~~x@O4HZV}}gCz$dsxJ{4NrW=Va_@H?X}uo4}p;!{SKnQaG4vP3Zq@Yv59R*huj-tfl9iWD@r*yPC(1xR}HOAvp bc*6P6K$zVHI%<5){x5@Qku?JG;q!k1p7^D$ literal 0 HcmV?d00001 diff --git a/animalrp-common/build.gradle b/animalrp-common/build.gradle new file mode 100644 index 0000000..5f42ea9 --- /dev/null +++ b/animalrp-common/build.gradle @@ -0,0 +1,5 @@ +apply plugin: 'java-library' + +dependencies { + implementation 'com.google.code.gson:gson:2.11.0' +} \ No newline at end of file diff --git a/animalrp-common/src/main/java/ovh/sad/animalrp/common/AnimalRP.java b/animalrp-common/src/main/java/ovh/sad/animalrp/common/AnimalRP.java new file mode 100644 index 0000000..9eba700 --- /dev/null +++ b/animalrp-common/src/main/java/ovh/sad/animalrp/common/AnimalRP.java @@ -0,0 +1,30 @@ +package ovh.sad.animalrp.common; + +import java.util.HashMap; +import java.util.UUID; + +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.HashmapStore; + +public interface AnimalRP { + public static final String MOD_ID = "animal-rp"; + + public static HashMap> users = new HashMap<>(); + public static HashMap noChat = new HashMap<>(); + public static HashMap> animals = new HashMap<>(); + + public static String welcomeMessage = """ + + |\\ _,,,---,,_ + ZZZzz /,`.-'`' -. ;-;;,_ + |,4- ) )-,_. ,\\ ( `'-' + '---''(_/--' `-'\\_) + + furry animal mod + by fucksophie + rewritten for paper & fabric on October 5th + + + """; + +} diff --git a/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Animal.java b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Animal.java new file mode 100644 index 0000000..318e0ed --- /dev/null +++ b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Animal.java @@ -0,0 +1,24 @@ +package ovh.sad.animalrp.common.util; + +import java.util.ArrayList; +import java.util.HashMap; + +public abstract class Animal { + public String name; + public String catchphrase; + public String color; + public HashMap moodSounds = new HashMap(); + public ArrayList superfoods = new ArrayList(); + + public String toString() { + return this.name; + } + + public Animal(String name, String catchphrase, String color) { + this.name = name; + this.catchphrase = catchphrase; + this.color = color; + } + + public abstract String chatTransformations(String message); +} \ No newline at end of file diff --git a/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Cooldown.java b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Cooldown.java new file mode 100644 index 0000000..0d4bf1f --- /dev/null +++ b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Cooldown.java @@ -0,0 +1,35 @@ +package ovh.sad.animalrp.common.util; + +import com.google.gson.JsonObject; + +public class Cooldown { + public long timeCreated; + public Integer length; + public String type; + + public long getTime() { + return this.timeCreated - (System.currentTimeMillis() - this.length); + } + + public boolean isExpired() { + return this.getTime() <= 0; + } + + public JsonObject toJson() { + JsonObject obj = new JsonObject(); + obj.addProperty("timeCreated", this.timeCreated); + obj.addProperty("length", this.length); + obj.addProperty("type", this.type); + + return obj; + } + + public static Cooldown fromJson(JsonObject obj) { + Cooldown cldn = new Cooldown(); + cldn.timeCreated = obj.get("timeCreated").getAsLong(); + cldn.length = obj.get("length").getAsInt(); + cldn.type = obj.get("type").getAsString(); + + return cldn; + } +} diff --git a/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/HashmapStore.java b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/HashmapStore.java new file mode 100644 index 0000000..7087553 --- /dev/null +++ b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/HashmapStore.java @@ -0,0 +1,66 @@ +package ovh.sad.animalrp.common.util; + +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.HashMap; + +import com.google.gson.Gson; +import com.google.gson.JsonIOException; +import com.google.gson.JsonObject; +import com.google.gson.JsonSyntaxException; + +public class HashmapStore { + public Gson gson = new Gson(); + public Path folder; + + public HashmapStore(Path folder) { + this.folder = folder; + } + + @SuppressWarnings("unchecked") + public HashMap get(String name) { + Path filePath = folder.resolve(name); + if (!Files.exists(filePath)) { + return new HashMap(); + } + try { + return gson.fromJson(new FileReader(filePath.toString()), HashMap.class); + } catch (JsonSyntaxException | JsonIOException | FileNotFoundException e) { + e.printStackTrace(); + return new HashMap(); + } + + } + + @SuppressWarnings("unchecked") + public void save(String name, @SuppressWarnings("rawtypes") HashMap hashmap) { + if (!Files.exists(folder)) { + try { + Files.createDirectory(folder); + } catch (IOException e) { + e.printStackTrace(); + } + } + Path filePath = folder.resolve(name); + if (!Files.exists(filePath)) + try { + Files.createFile(filePath); + } catch (IOException e) { + e.printStackTrace(); + } + + JsonObject jsobj = new JsonObject(); + hashmap.forEach((a, b) -> { + jsobj.addProperty(a.toString(), b.toString()); + }); + + try { + Files.write(filePath, gson.toJson(jsobj).getBytes()); + } catch (IOException e) { + e.printStackTrace(); + } + } +} diff --git a/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Messages.java b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Messages.java new file mode 100644 index 0000000..648d277 --- /dev/null +++ b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Messages.java @@ -0,0 +1,34 @@ +package ovh.sad.animalrp.common.util; + +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; + +public class Messages { + public Gson gson = new Gson(); + + public static JsonObject json; + + static { + String result = ""; + try { + result = new String(Messages.class.getResourceAsStream("/messages.json").readAllBytes()); + } catch (IOException e) { + e.printStackTrace(); + } + json = JsonParser.parseString(result).getAsJsonObject(); + } + /** + * All available members: + * + * + * no_chat_command_enabled + * no_chat_command_disabled + * + */ + public static String get(String memberName) { + return Messages.json.get(memberName).getAsString(); + } +} diff --git a/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Mood.java b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Mood.java new file mode 100644 index 0000000..a28ca5b --- /dev/null +++ b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/Mood.java @@ -0,0 +1,5 @@ +package ovh.sad.animalrp.common.util; + +public enum Mood { + HAPPY,SAD,STRESSED,ANGRY,CUTE +} diff --git a/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/TextDestroyer.java b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/TextDestroyer.java new file mode 100644 index 0000000..2a43181 --- /dev/null +++ b/animalrp-common/src/main/java/ovh/sad/animalrp/common/util/TextDestroyer.java @@ -0,0 +1,44 @@ +package ovh.sad.animalrp.common.util; + +import java.util.ArrayList; +import java.util.List; +import java.util.Random; + +public class TextDestroyer { + String[] expressions; + String[][] replaces; + + public TextDestroyer(String[] expressions, String[][] replaces) { + this.expressions = expressions; + this.replaces = replaces; + } + + public String destroy(String message) { + final String[] words = message.split(" "); + final List out = new ArrayList<>(); + + Random y = new Random(); + + for (String word : words) { + if((word.startsWith("[") && word.endsWith("]")) || word.startsWith("@")) { + out.add(word); + continue; + } + + if(y.nextBoolean()){ + out.add(word); + continue; + }; + + for(String[] replacing: this.replaces) { + word = word.replace(replacing[0], replacing[1]); + } + + out.add(word); + + if(y.nextDouble() < 0.12) out.add(this.expressions[y.nextInt(this.expressions.length)]); + } + + return String.join(" ", out); + } +} \ No newline at end of file diff --git a/animalrp-common/src/main/resources/messages.json b/animalrp-common/src/main/resources/messages.json new file mode 100644 index 0000000..94d455b --- /dev/null +++ b/animalrp-common/src/main/resources/messages.json @@ -0,0 +1,14 @@ +{ + "no_chat_command_enabled": "AnimalRP's chat modifications are now enabled for you.", + "no_chat_command_disabled": "AnimalRP's chat modifications are now disabled for you.", + "animal_not_set": "You do not have a animal set.", + "animal_removed": "You no longer have a animal set.", + "animal_set": "You are now an %s! ", + "your_options": "Your options are: ", + "invalid_animal": "Invalid animal!", + "tf_off": "Use /tf off to disable the changes.", + "only_animals": "Only animals can interact with other animals :(", + "no_console": "I'm sorry console.", + "no_self_argument": "You can't %1 yourself.", + "not_animal": "%1 is not an animal :(" +} \ No newline at end of file diff --git a/animalrp-fabric/bin/main/animalrp.mixins.json b/animalrp-fabric/bin/main/animalrp.mixins.json new file mode 100644 index 0000000..a69c5d3 --- /dev/null +++ b/animalrp-fabric/bin/main/animalrp.mixins.json @@ -0,0 +1,13 @@ +{ + "required": true, + "package": "ovh.sad.animalrp.fabric.mixin", + "compatibilityLevel": "JAVA_21", + "server": [ + "DecoratedMessage", + "FoodEating", + "Sneaking" + ], + "injectors": { + "defaultRequire": 1 + } +} \ No newline at end of file diff --git a/animalrp-fabric/bin/main/fabric.mod.json b/animalrp-fabric/bin/main/fabric.mod.json new file mode 100644 index 0000000..7c2e952 --- /dev/null +++ b/animalrp-fabric/bin/main/fabric.mod.json @@ -0,0 +1,32 @@ +{ + "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": "*" + } +} \ No newline at end of file diff --git a/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/AnimalRPFabric$1.class b/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/AnimalRPFabric$1.class new file mode 100644 index 0000000000000000000000000000000000000000..a4f4fe949896c37b8da73fbdee20fca752f9fcd5 GIT binary patch literal 1953 zcmbtVZ&MpZ82>EN-KXi=+DO4FKz(i2Nt+W-|QNNPwi0o3|xbJ->bm)&@`7mFXo zPoa)t#}|&TbjI-`IgZa>!UW{aIc8=z`#ihPzu)uc{`mXnUjVG(3kyRGIn`}BA#XTb zdTs6p9p^c(2cGM!#dLLNGbXc(7E%lo2fWK2pUbB6w0-_Fb}EPG-7DGRvOy^eV%AVxjy#Luy?$L>dg^HY|)~ zFpLW}(wJZv&Y1@n%AORJs9hJqF0cE7VX~}T?(g%!GjyMsGA>h?2_4QZlFOHrJQaOa zd>M&QGaTm13BX!cQi~V5SRTM#(}5?O#e5R+st6-rlM~r$B(>KTCE4{tj{@4^0dET} zf;B0X=Gs$|0?U?F&~y%jt_R$cl)AyCQ;B@vKvB%#3f{8tX0mkmBe3x{W*E{f9ugWy zCjW%|voXvvWGZTwDu$TXGMGcw!gYpx0(5%e*|>q543;Om-1iy`k8=MHt~7EeSjaQn zOjejS=5dQ*BnqkC8K!#XBklRl77tt7yc2_V+lB+G_t9Rk40m$*vJ~2BQ}MY0f36); z&=rA0%&$~%=+t7e2iOKBP#=+^_poH)4ug61Uqo%(#XZ8QDfC`saGE6Zab3lp?(LNx zllJ%V(82?Ti-Vhf3^s~brnHefA#)nz-UOhM98_taWr2G2`Z*L`)ov^4#CCh*WeguM zz@+~}8|x;YBb3dEnl^_G8=D5-QK{BjT&J;uEgK~~p+~Or71h$@DbxK1Ax~ZXg5g$@ zMmgy-65>IVO!bB!!;SN;e%^U%u<5ho;;3^nGV)0jEEfu^q-4CNxqC?E(jPZh|J}8_ zr1wn2W@;)5T(Rkyku`O8Qr|Y&pwYG=U0;PXGq#0psfLZu%-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5T-w)4TqBFVB_3& z5d9sbd#jFTLJp7-x=zKW40` zB}Z0pwhfCIPo7`J)WtiPUcz(FN&5L!%o1&`(S=nMi7u_tQW_iC={9eaSE!9p52T1+>vE`ks|0{!q;EIx1@g?*3^(IgMG+` z8oMJYdh530k6URq2nAs8KrN9v6#k~I-BK2)1-#(}rO*q=QWY=3m>^;#DQK)<za%BezhRiPSa4+Dh;k~Wx3g0+LGGzZ{-?x?GwLmZ=O;bj>1%j{ifxpC% z?(iVDAMgXA8OjwUjMtJ%_?qt+FA};Vv`5L$q2BYV-SAzvcvTr`4hSImTq4!OD61~81nt}oGa6J#&uf_U;?)s++>*QW4bPG;|@bAQiAUZO>E|Oe2#eHqsH%1}42y*et76;UwY#R2&?^CtB0;UEHbi9Jgpt7{ z2_#PI5@MN*RSb~HTD{N@7^5`^mrjSsdq#1b>_}<$7{jHxV`NG{kUi`cj??l2V@hZ#fNxIUYeLKw|$<_iecg}^)(*# literal 0 HcmV?d00001 diff --git a/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Bee$Row.class b/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Bee$Row.class new file mode 100644 index 0000000000000000000000000000000000000000..f28dd74eb405c0d42dff0ef10a877db21ac414c7 GIT binary patch literal 598 zcma)3TT4Pg5dPNVT}#t$+Jzz`HE4V2tq4kpgo8mv@9S~Zm2-)+tNpGXBIuzX(2t5{ zMd($Q`R1}Sv)|1A{C<4{xWRq~35JtsHs)FkxCm7s{P>j*ML$;F!q@y(%En{#mO+xC zJP|X&eG!iMLw_PY!{7vhu;zx+@IZyqi^b4zWn{p+1eXjcqXMZJs_uVvH#Bl2W4cY7 zvC@rmhGTaLCbr;8h00trG@DCRv|bpJooFC)U?>%lLp~1&Yef`LA^uI9P;!ZSZyNMv z{4DyuWT?22C;S%?E9)UZE!$SIrN`aQb-d58DxQS*^WvcBPpOrdWEbDB7qxJ4#bzTaE>aZ6w)74#BMDwJjn`j*bKe zC~di~0_8{prR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H?2mEQz&6yEU;%<8y|S=~;?T}kR)n&Rmx zp8XV8w>3OZ^TxT_Zyn&wv@9VJEjh9^r;FNUHpZ8YHf+omp!`7~?hEnpV%Xhyms3GoEBuMjccp)M4BO zRNAb2*s}w_(dNbf-6>v|;`35Gu+n(+HoCILnB>q7xO`d&or?SNtj&7+;L_Xl9(4^j&~L_T_$&Z9?gS-%_M z@DbWXdtk?Vp`H}fGX}_0bUW?C2#@1yA3Z_e)PO%xhbjyFcoz6^-of_)_!;yF@8tUd z{0dw^KfoLDmsbx$KH&{|+e2xkRFUx`nk`Y;w2#Oy@xvd|=}^o!_)%Rk`12D3{vkvI zpBJ$D$3)Q8BfK7TpVCCC);ncIGV^Xei@4Gtl6G3hZ$ZZ*CmhgqoDu+1*-GQmh7>=( zvb?7Jc{10O@8kWC!AEP#b55G3ijcpuqQ>|<$sz@;tk_9&YK&RqFzdvciWEPyjTVZL zp4Wa>)gb$AO!0TS_0e-ry*)krIKSv0yN=M_j8(!B2|LedX@tlRk??tflA+U7=P(L*y6SmSiguin@ zS&x4Tslagrd2kfJE`c9jPUph|H^2zObSHdr7h3nwMwmgAo}?H(4f-?qi;I_Ov!(%$ zj%`*02VfMx0rJ3`f6Kqq^mBlJ&wqg8XVP<;c^Dz#lbWxVL$0m-NB$Gal4ocZ|C#?n zQr2Yj{(r>^g&$Xw^fAqc$w)LXM>C#_X3a0Jq;mcnS`GYn=vln~!5`oaljBct%KjgN u!BA!pA$S294dn*OV8&mFy=br)WHR%`pyNLTcQ#B1^9+1cV2q2o`u_lE6wa~$ literal 0 HcmV?d00001 diff --git a/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Cat.class b/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Cat.class new file mode 100644 index 0000000000000000000000000000000000000000..0b6da5123718d844190ab6ed6f798ad84254a5c9 GIT binary patch literal 4576 zcma)A33wCN5&oZLYu93p&2l;f!kI{hph8ZNLlKsRUF0KL*+kHytmU;Wti$ZC4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1 O;_%WSvw3U*>i-Y)y9`hO literal 0 HcmV?d00001 diff --git a/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Dog.class b/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Dog.class new file mode 100644 index 0000000000000000000000000000000000000000..4053d740f8d1f678c0de24f62cef1fc8c9a159e3 GIT binary patch literal 4314 zcmb7HX?q)26@JIEJ+eBjZDk>DnkH_RT6WrTNegL|24q`~MdSs`3wD5HERF1mr5Q6b za%+~B0$o_kPFYIX3bYhRMe0C8O4(W{W#8d%@R5gy_s&dgSrV@KpsTrO&N=s-_bm6! zOaHm_9DoG=DWgHcertI_b+nwSnMP47*h^|&o3o8nL~)UP~L3BNM5KnKRR)>A^FJ;l332685DxmySnpC*m@WNoe=t zROzFFsDq>K#5g^B_Ii)UZ>#o0)fW<$%&+JtxrL}u)3|% z>dZuPOmHU^3<~a0CNUtGhZLj)b9*K8^iXPqs&2t41!=(@&PayjjAojmR6WUQ|DoAUrjE;t^j5&sPJvwWL zDab)5Oj<5SbLzw=HY?1TSFj)sZ0t)W2L<7rf<-|HkByF>>K_^<=tWpEO!fw0wBOi@ z*|iS0WT?8xHFc?=v16$T*VVF%Nz*mlm42;InBz{t65d8glT%*e9rS$q-%z@$+?r;kj+BaXx;>%I6&Rjq+RAE$Da|&-J|H%_3kGxO;FkPk^s@_^J7H_4leg@m z<{Fks=|hzv4;p!80R|+|7vHPkeYl@V7hF4hD(a4-&3gt`cW7QR;euA2%V`ICCA`p8 zm7mN62L5U?jCncXCqul7^KQ#7s{eY(aL0A0RB(e_ zSZ|XaVuv!w!%iO~*DAqK@Ns;CK+o&$WXWKOM!SOOc*admrUtzB`zZyV#%EZ^WULD6W?l8O_`HnI z)!Yv?jw|>A9%J>7B{CUaR#g$IVP^*m;c*3D!h;ktwW2OM;Nva$DxQ$>HQtbQ{nzt( z-Uu8gG`Hj=y$uWd>-Yu%%#0A0Gi)gyQs-xV{(c?q}wUnizgv$M0Y zDd9(1!S`^1y@8E-qZ4;jt9)gP;;~tdfPT7h&Z)vQkgt=Ctm!7N93||o5~{3H#(Y6D znXJ{9l9wn$d?hAO{}>5-sx$@1C%pzi#uk>UUw*8cDqc@vy;7!rf5xucA1fzgzg~IH z&W$~GW$9|4jny{TS_Q|uyH8NbwTw-6k+WUUqaz%$?5sX$h%O%Hcz>(tlXNO$%$rPe zo8+@w(qH9y^$1tp8rScCVOCq8Wx4!T(3XaEcY&iv1TW!b8NZTn(|Y4J%w=m)SJPhC zCZm?;O={UI3Vw~>NVulBPLl9)<;4+5`pQLs3%YY4ZCQ(@rOE-X_CsNV-~=(RWZ(Kr z|H#c{D{r+xvzR+FL@M6ej9<3l;Rw6b9~3-$~1Mmzo0pe?#TEn^Qi`~ zdTz`3yM!AzXJwN57@?B~hd9Sb{P81#YlzP>!dzQOZsW6f_f&T@5>=wtT|`^=Wo(-X zU%`%w^F8_F17-;I@#33gLu%&y|BP{GIi`lBHp%P4eTf(@)<`59Wgd1#uID7Z8)tC?Ozfe|UPfRaFTPGZhW&UFD&9p6ijM&9 z#eLjKcsK6%(ZO9jse!Z>nsumW74JFEjemHvCv?P9u+wJ>6p$Sc;6Y;BAOaq!`WLA( zrBh|RpPD|hicda|(6Q!@<`*HC@#y)E<_q{D&-wBb{=TP-udL#m(><5*^bDWdwl_64 zHeSScR`Co0c~qFv=;6>!1b_o*#UXlsGZE?HF2=Q+SoGjFqLSc$lHVi3-yz?SHFHyV zmcWWENZ}&B?>Upg4{*uLoD?qOhdfEVy@KbMMXfl7AK`gs(~n6N==qeNkn&SfTF~%s r?2-{`rP$9%Xu!|$g7^O-ei4ZLmdbyJKjKgLGby4z{(`^ZAL#fmST^q) literal 0 HcmV?d00001 diff --git a/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Fox.class b/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/animals/Fox.class new file mode 100644 index 0000000000000000000000000000000000000000..213d7a68ac953c736380a54999ae6e30dc4aa5fd GIT binary pat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-*<4Cs#0Q5xb6h(~>6LA=QWMJqpIkWrE-W7N#MW=X=z`gwyr!!Uma zirn^Tp8t36h-qZCtYwWeoA03F|T!>|3`nyxnpZjq#*M?y;#(URB~Y$ziz?3QEJkk z6}$`gE|l>n8o0~5%4NgeSJWNHaAZ79KFt8E-m+!2Y*V1PPT6xF53jOpL z!PU3}D{&WN?#5c4cI)r}*7FeAfNx+Uo@U{mz@QVw3LA$*KOMRyx0p0OV+ykklK@iMOC9OnAG#LGxCve|I zoVp*O)0-~h1NVt%dstX6;8eRjjt{lU6ZrT9K79d=?UB~VV~Djz&fr1T@VN<`5rM7Y z*6;+*3di%yLa{F&pTJj+2;f21J-GoLge-@hUhTK| zRb8&VA73X>f}Z_&9N+X-){iIfEswVS_%`1{-q-KoyQJ_^X8az$Pb#k>oIk)1NoJMp z`4N6hQa?#g0k3cQ2`xXRWf4LPiPq`~&|&>;C|RdkWA1 literal 0 HcmV?d00001 diff --git a/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/commands/InteractionCommand.class b/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/commands/InteractionCommand.class new file mode 100644 index 0000000000000000000000000000000000000000..7d64ddce8f11bfddd7094661a5c0d7bcf74000a3 GIT binary patch literal 7601 zcmcIp33yyp75;CwmrNgRI;Ab?0$tKHOT!epuuKSTLt+C-2~E;c3e=aGmt>lmdBdAG zX`@)HqA215vWX%n0xqb4bO=$f;DQ1wxPZIjzVEw5{qK8k_L(H~`)I$;+`0FhbI*Rx zJ$>@OQ;!1JD%L6}6WCykkNV=?T6DyB;n03PU88&GI4=~BX;xrVH~l?P z-SS1qUBJ|at(1LJfIIb(P~0*nwgv)vJf066*UfPfm1dz&q;Pt*s5YXT^)9X^U8FNQ z9x{z+M2}j2sm_}I&`4CX5+*hA>}+{$%i}fg`hJ@mSHgZHVFq-6dp^r~yuLj0d9Vug z3RVlW#nXr+HPHszUO7Px+?6`zXr zI8C5Bb&0@%B2pF?GKCZOW%J~pK_xr&D-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AM23gE zro+f!PJt=VQ^|!h(wW!Rt&}R}VbS@FodL)8Nrc64P3ZUxT5XcA$Trx>DR2b#RGzZB zM8zGjXEt)jgzuVmTA+0$J%b!8N*TI+@Kxloz(SE^y_jUX^JX2FAzEyc6`5JmD$mT4 zNJ6@+qJVph0n20!)5+*ed0MY3uY)<3_k$KD*-0C|tKvPpPfUxZpP90~ps%djW~AEn ztGu_|a~d4iOq;d@d%ViWo4QPPjN-*c;OOS*R;)i%Xsc}3h1^QZo_m%JE>yu=8=_Aw z6OoHVu|47I$$55x(tY7zbr+f>u(AfkxMaq;Nn_ZQcaGiFjq!x6(m~DHm_zKjID*rjGe&Nb;PzYsdi<|R954M%n`z7@{o*uW9;vQ#G9Mu}X>dluh2 zIP0gj;Mm;#2u~hbHXd1L_Alcn*6x6L_Bg>hJ=; z<;nXwN)!kAeSq2rZ$NlBgu|EcB1P>Uj^OBZbl{j=C`uYc!%daoG=B-5-4AhM87G%< z?oZV9JXpeoCz8kLi}n5`#gw%!Bif3g?|(o~am8gh6hGhSeTXYdnBXpt@zxTqx7=2j zq4)ImEF=9Zc#~a*_X`%6asL6qgdiE8CO?V3nV4J9&gTfB9%Z}jU<*IShS-Ul9B-iq zw|T+vI7+J=Dq=5L1@Q3!K9q#n&OXA&wEQPrC2d!fd`ih@l<@M~@-NyH^qs}$oHwCH i!k`&jgEyCb!Fdh73{1R>8+^rCJI$KJ*Z5`>9sdJZFQile literal 0 HcmV?d00001 diff --git a/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/mixin/FoodEating.class b/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/mixin/FoodEating.class new file mode 100644 index 0000000000000000000000000000000000000000..e6abfd9bd74d38f91065f8fdfc53440bfef99ffb GIT binary patch literal 3711 zcmdT{TT>KA6#g1v8*uP~LbBo|N-!)cqee}_8siF!u340TV8kRkEVD4OJA*T`Ah{Tg zxnE2oxtSl3Jf>o$)~ci`#gh;DPciv=b_48!K&tW*9;UauPoF;LJ71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agg|3yW5{}2Yz|NVH(;vPg|B}#t{rU)Wa|P>u+RmDNPH;}E`3c4 zI3_W}-lcSVIj%^2Ef8N_tFr=4SR4ACoSQPcE!APKpKsgSRm$emD0XWJdvb|>t$A5| zd(?jdQS1b{&Ho&L3jShm&#&Z6=O{QH_f&j-l&IHzBJymVs z?+R>0J;!Za-Nf1Eix3|78#o?EBUc~u@VL51{D>MT#WQWQ2zOM4tMX{NhaGve+{Mjs z)hr?%p?la94&`wmkHfQwcF3@N05dFq!SnU8AFwVgXVDoB?ad>u78Cr@lSltu#MG&m zW&JC8yc(vKR327G^@iRfHR0+9sB7SmNA@zOq2FL%pg==SCI9Zj%VYAq^13oGuABaV z28Y;TZpIcgVJr4vJN9D-I@mkLv5VET8JExk3%ij;D_kbUHz{?U{n>4fcPOn;OBdWN zqDIH@I^GD7oT2<%L`$t*$J;?zW^e;HX+;R1;T_y!fSNFcckv!q_OOh-j}Hi=#k)Sl zN2un_E%+Fp5Y$hpr?IH*22WQOQ+mM8i_(I~0 e#2tyRC`0)Qd=q@X#djRn(c-%*j*MsuxBdoQTv*Tm literal 0 HcmV?d00001 diff --git a/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/mixin/Sneaking.class b/animalrp-fabric/bin/main/ovh/sad/animalrp/fabric/mixin/Sneaking.class new file mode 100644 index 0000000000000000000000000000000000000000..11492a21869507eff874de86d1dc1435d734cf1d GIT binary patch literal 1541 zcma)6+fExX5IqhF8z9`mt=vk10wFE9w9pFyN`N4c0!0KNl|DJa1ViGDb~mAXN&lel z<$+3lsCe!-RaIv|NQ&)8$cWh13rdPvvkO9vCoB8d6BaU{6M5F zmEn2yRcW5mQXDItHQ;AxIT9tob3$kNr}UA`I1IION-Jl9p(ZlE%iv!&_hmh5P!~b~ zwG7QkrR8QZpO)5+NarL&IB8}?ZdX{!)hkB7bEs^FNU}OKF@^?PI+x%W;*q_iX=S-x zFm+ZI%oAxzD#^}Q%23*ct4z)5?p#`Aj`?zBv#t-!n2Wu8yQm$Nm%GYVgedh{Pt>CeJt6d>kHN@FXXms)vBQz^+e8@yx&g!@wi1Aq--OYT8Q1KPR>s z2CK;Z9HRzC9^hBpn*PkI9`z(^@47Xl+#?{Y;63t$-rys*?rurVB$+s8klC_*V|=Ft0XPgcw$<| zJmsldIdLkj%O{$`+YsL2Jr!tbkF^XlksDonG*4{LrD@Qvj3fiwBbF%QFT;G547;2D z^tNSEG4$U+b&YJq&XIdZ^h%q^uQBD&l+mkICcHjn7Ojk2Rqh|qcsaR~?(-4BE2For zOLq+4@PoB&xc^j)7)ozW{~F+<9sNDD8l-WOjAS7C6Tu(eaXqc>G0=<#T0> zG?Cqh7TWid)=K;E7ciUbZ6p`bPSy?^onHQLbZdZI$D$YL+MGB?_Zj-Xqvs66;qi04 zxWLq`zuP}?fj7P9m~j!*z(vsMg@tKtqx;&?hYpO=FuRDR%PA{}C^pF literal 0 HcmV?d00001 diff --git a/animalrp-fabric/build.gradle b/animalrp-fabric/build.gradle new file mode 100644 index 0000000..7c834e5 --- /dev/null +++ b/animalrp-fabric/build.gradle @@ -0,0 +1,61 @@ +import net.fabricmc.loom.task.RemapJarTask + +plugins { + id 'fabric-loom' version '1.7-SNAPSHOT' + id "com.github.johnrengelman.shadow" version "8.1.1" +} + +archivesBaseName = 'animalrp' + +repositories { + mavenCentral() + + maven { url 'https://maven.fabricmc.net/' } + maven { + url "https://maven.nucleoid.xyz/" + name "Nucleoid" + } +} + +dependencies { + minecraft "com.mojang:minecraft:${project.minecraft_version}" + mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" + modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" + modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" + include(modImplementation("eu.pb4:placeholder-api:2.4.1+1.21")) + + implementation project(':animalrp-common') +} + +processResources { + inputs.property 'version', project.mod_version + filesMatching('**/fabric.mod.json') { + expand 'version': project.mod_version + } +} + +shadowJar { + archiveFileName = "animalrpfabric-${project.mod_version}-dev.jar" + + dependencies { + exclude('net.fabricmc:.*') + include(dependency('ovh.sad:.*')) + include(dependency('ovh.sad.animalrp:.*')) + // We don't want to include the mappings in the jar do we? + exclude '/mappings/*' + } +} + +task remappedShadowJar(type: RemapJarTask) { + dependsOn tasks.shadowJar + input = tasks.shadowJar.archiveFile + addNestedDependencies = true + archiveFileName = "AnimalRP-Fabric-${project.mod_version}.jar" +} + +tasks.assemble.dependsOn tasks.remappedShadowJar + +artifacts { + archives remappedShadowJar + shadow shadowJar +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/AnimalRPFabric.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/AnimalRPFabric.java new file mode 100644 index 0000000..cd60208 --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/AnimalRPFabric.java @@ -0,0 +1,64 @@ +package ovh.sad.animalrp.fabric; + +import java.util.UUID; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; + +import org.jetbrains.annotations.Nullable; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import eu.pb4.placeholders.api.PlaceholderContext; +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.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.fabric.animals.Bee; +import ovh.sad.animalrp.fabric.animals.Cat; +import ovh.sad.animalrp.fabric.animals.Dog; +import ovh.sad.animalrp.fabric.animals.Fox; + +public class AnimalRPFabric implements ModInitializer, AnimalRP { + public static ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); + + public static HashmapStore hashmapStore = new HashmapStore( + FabricLoader.getInstance().getConfigDir().resolve(AnimalRP.MOD_ID).toAbsolutePath()); + + public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID); + + @Override + public void onInitialize() { + LOGGER.info(welcomeMessage); + + animals.put("cat", new Cat()); + animals.put("dog", new Dog()); + animals.put("fox", new Fox()); + animals.put("bee", new Bee()); + + hashmapStore.get("users.json").forEach((k, v) -> { + users.put(UUID.fromString(k), animals.get(v)); + }); + hashmapStore.get("nochat.json").forEach((k, v) -> { + noChat.put(UUID.fromString(k), Boolean.valueOf(v)); + }); + + Placeholders.register(Identifier.of("animalrp", "animalcolor"), new PlaceholderHandler() { + @Override + public PlaceholderResult onPlaceholderRequest(PlaceholderContext ctx, @Nullable String arg) { + if (!ctx.hasPlayer()) + return PlaceholderResult.invalid("No player!"); + Animal animal = users.get(ctx.player().getUuid()); + if (animal == null) + return PlaceholderResult.value(""); + if (noChat.get(ctx.player().getUuid()) != null) + return PlaceholderResult.value(""); + return PlaceholderResult.value(animal.color); + } + }); + } +} diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Bee.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Bee.java new file mode 100644 index 0000000..d7f8696 --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Bee.java @@ -0,0 +1,194 @@ +package ovh.sad.animalrp.fabric.animals; + + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.TimeUnit; + +import net.fabricmc.fabric.api.event.player.UseItemCallback; +import net.minecraft.block.Block; +import net.minecraft.block.Blocks; +import net.minecraft.component.DataComponentTypes; +import net.minecraft.component.type.FoodComponent; +import net.minecraft.entity.effect.StatusEffectInstance; +import net.minecraft.entity.effect.StatusEffects; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.item.Items; +import net.minecraft.server.network.ServerPlayerEntity; +import net.minecraft.sound.SoundCategory; +import net.minecraft.sound.SoundEvent; +import net.minecraft.sound.SoundEvents; +import net.minecraft.util.Identifier; +import net.minecraft.util.TypedActionResult; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.common.util.TextDestroyer; +import ovh.sad.animalrp.fabric.AnimalRPFabric; + +public class Bee extends Animal { + class Row { + Item mat; + Integer times; + } + + private static Item[] _allFlowers = { Items.ALLIUM, Items.AZURE_BLUET, Items.BLUE_ORCHID, + Items.CORNFLOWER, Items.DANDELION, Items.LILY_OF_THE_VALLEY, Items.OXEYE_DAISY, + Items.POPPY, Items.TORCHFLOWER, Items.ORANGE_TULIP, Items.PINK_TULIP, Items.RED_TULIP, + Items.WHITE_TULIP }; + public static List allFlowers = Arrays.asList(_allFlowers); + public static Identifier beeFoodKey = Identifier.of("animalrp", "bee_food"); + public static HashMap inARow = new HashMap(); + TextDestroyer destroyer = new TextDestroyer(new String[] { + ">_<", "*buzz*", + ";3", ":3", "εწз", " ≧◠◡◠≦ ", "*stings you*", "*humms*", + "*i'm a bee*" + }, new String[][] { + { "e", "ee" }, + { "b", "bzz" }, + { "h", "hh" }, + { "ie", "ee" }, + { "be", "bee" }, + { "E", "EE" }, + { "B", "BZZ" }, + { "H", "HH" }, + { "IE", "EE" }, + { "BE", "BEE" } + }); + + ArrayList sneakers = new ArrayList(); + + public static Boolean isItemARP(ItemStack is) { + return (allFlowers.contains(is.getItem()) && is.get(DataComponentTypes.FOOD) != null); + } + + public Bee() { + super("bee", "Buzz...", "#FFFF00"); + this.moodSounds.put(Mood.HAPPY, SoundEvents.ENTITY_BEE_LOOP); + this.moodSounds.put(Mood.CUTE, SoundEvents.ENTITY_BEE_LOOP); + this.moodSounds.put(Mood.SAD, SoundEvents.ENTITY_BEE_HURT); + this.moodSounds.put(Mood.STRESSED, SoundEvents.ENTITY_BEE_STING); + this.moodSounds.put(Mood.ANGRY, SoundEvents.ENTITY_BEE_LOOP_AGGRESSIVE); + UseItemCallback.EVENT.register((player, world, hand) -> { + Animal animal = AnimalRPFabric.users.get(player.getUuid()); + + ItemStack item = player.getStackInHand(hand); + + if (item == null) // air interact + return TypedActionResult.pass(item); + + if (!allFlowers.contains(item.getItem())) { // not a flower + return TypedActionResult.pass(item); + } + + Boolean incorrect = false; + + if (animal == null) { + incorrect = true; + } else { + if (animal.name != this.name) { + incorrect = true; + } + } + + if (incorrect) { + if (Bee.isItemARP(item)) { + item.remove(DataComponentTypes.FOOD); + + return TypedActionResult.pass(item); + } + return TypedActionResult.pass(item); + } + + if (Bee.isItemARP(item)) { // correct animal, but foodkey already set + return TypedActionResult.pass(item); + } + + FoodComponent food = new FoodComponent.Builder() + .statusEffect(new StatusEffectInstance(StatusEffects.SPEED, 20 * 4, 1, true, true, true), 1) + .alwaysEdible() + .nutrition(4) + .saturationModifier(9.4f) + .build(); + + item.set(DataComponentTypes.FOOD, food); + + return TypedActionResult.pass(item); + }); + } + + // Called from the FoodEating mixin. + // Called only if the player is a animal and a bee. + public void onEat(ServerPlayerEntity player, ItemStack item) { + if (!allFlowers.contains(item.getItem())) { // not a flower + return; + } + + Row row = inARow.get(player.getUuid()); // make a new row + if (row == null) { // none yet + row = new Row(); + row.mat = item.getItem(); + row.times = 1; + } else { + if (row.mat.equals(item.getItem())) { // mat is same as in row, increase time + row.times += 1; + } else { + row.mat = item.getItem(); // mat not same, change mat, reset time + row.times = 1; + } + } + + if (row.times > 20) { + player.addStatusEffect(new StatusEffectInstance(StatusEffects.NAUSEA, 20 * 10, 1, true, true)); + } + if (row.times > 30) { + if (row.times > 40) { + player.addStatusEffect(new StatusEffectInstance(StatusEffects.WEAKNESS, 20 * 10, 3, true, true)); + } else { + player.addStatusEffect(new StatusEffectInstance(StatusEffects.WEAKNESS, 20 * 5, 2, true, true)); + } + } + + inARow.put(player.getUuid(), row); + } + + // Called from the 'Sneaking' mixin. + public void onSneak(ServerPlayerEntity player, boolean status) { + @SuppressWarnings("unchecked") + Animal animal = (Animal) AnimalRPFabric.users.get(player.getUuid()); + if (animal == null) + return; + if (animal.name != this.name) + return; + + Block type = player.getWorld().getBlockState(player.getBlockPos().down()).getBlock(); + + if (status + && type != Blocks.AIR && type != Blocks.WATER) { + if (!sneakers.contains(player.getUuid())) { + sneakers.add(player.getUuid()); + AnimalRPFabric.executor.schedule(new Runnable() { + @Override + public void run() { + if (sneakers.contains(player.getUuid())) + sneakers.remove(player.getUuid()); + } + }, 1, TimeUnit.SECONDS); + } else { + sneakers.remove(player.getUuid()); + player.addStatusEffect( + new StatusEffectInstance(StatusEffects.LEVITATION, 20, 5, true, true, true)); + player.getWorld().playSound(player, player.getBlockPos(), + animal.moodSounds.get(Mood.HAPPY), SoundCategory.PLAYERS, 10F, 1); + } + } + } + + @Override + public String chatTransformations(String message) { + return destroyer.destroy(message); + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Cat.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Cat.java new file mode 100644 index 0000000..14522c9 --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Cat.java @@ -0,0 +1,64 @@ +package ovh.sad.animalrp.fabric.animals; + + +import net.fabricmc.fabric.api.entity.event.v1.ServerLivingEntityEvents; +import net.minecraft.entity.damage.DamageTypes; +import net.minecraft.item.Item; +import net.minecraft.item.Items; +import net.minecraft.server.network.ServerPlayerEntity; +import net.minecraft.sound.SoundEvent; +import net.minecraft.sound.SoundEvents; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.common.util.TextDestroyer; +import ovh.sad.animalrp.fabric.AnimalRPFabric; + +public class Cat extends Animal { + TextDestroyer destroyer = new TextDestroyer(new String[]{ + ">_<", ":3", "ʕʘ‿ʘʔ", ":D", "._.", + ";3", "xD", "ㅇㅅㅇ", + ">_>", "ÙωÙ", "UwU", "OwO", ":P", + "(◠‿◠✿)", "^_^", ";_;", + "x3", "(• o •)", "<_<" + }, new String[][]{ + {"l", "w"}, + {"r", "w"}, + {"th", "d"}, + {"L", "W"}, + {"R", "W"}, + {"TH", "D"} + }); + + public Cat() { + super("cat", "Nya~", "#F2BDCD"); + this.moodSounds.put(Mood.HAPPY, SoundEvents.ENTITY_CAT_PURR); + this.moodSounds.put(Mood.CUTE, SoundEvents.ENTITY_CAT_PURREOW); + this.moodSounds.put(Mood.SAD, SoundEvents.ENTITY_CAT_AMBIENT); + this.moodSounds.put(Mood.STRESSED, SoundEvents.ENTITY_CAT_STRAY_AMBIENT); + this.moodSounds.put(Mood.ANGRY, SoundEvents.ENTITY_CAT_HISS); + + this.superfoods.add(Items.COOKED_COD); + this.superfoods.add(Items.COD); + this.superfoods.add(Items.COOKED_SALMON); + this.superfoods.add(Items.SALMON); + + ServerLivingEntityEvents.AFTER_DAMAGE.register((entity, source, baseDmg, dmg, blocked) -> { + if (entity instanceof ServerPlayerEntity player) { + Animal animal = AnimalRPFabric.users.get(player.getUuid()); + + if (animal == null || !animal.name.equals(this.name)) { + return; + } + + if (source.isOf(DamageTypes.FALL)) { + player.setHealth(Math.max(player.getMaxHealth(), player.getHealth() + 5)); + } + } + }); + } + + @Override + public String chatTransformations(String message) { + return destroyer.destroy(message); + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Dog.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Dog.java new file mode 100644 index 0000000..58408b8 --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Dog.java @@ -0,0 +1,53 @@ +package ovh.sad.animalrp.fabric.animals; + +import net.fabricmc.fabric.api.event.player.AttackEntityCallback; +import net.minecraft.entity.effect.StatusEffectInstance; +import net.minecraft.entity.effect.StatusEffects; +import net.minecraft.item.Item; +import net.minecraft.item.Items; +import net.minecraft.sound.SoundEvent; +import net.minecraft.sound.SoundEvents; +import net.minecraft.util.ActionResult; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.common.util.TextDestroyer; +import ovh.sad.animalrp.fabric.AnimalRPFabric; + +public class Dog extends Animal { + TextDestroyer destroyer = new TextDestroyer(new String[] { + "Woof!", "Bark :3", + "Arf", "bark bark bark", "arf~" + }, new String[][] { + }); + + public Dog() { + super("dog", "Arf!", "#ff8c00"); + this.moodSounds.put(Mood.HAPPY, SoundEvents.ENTITY_WOLF_AMBIENT); + this.moodSounds.put(Mood.CUTE, SoundEvents.ENTITY_WOLF_STEP); + this.moodSounds.put(Mood.SAD, SoundEvents.ENTITY_WOLF_WHINE); + this.moodSounds.put(Mood.STRESSED, SoundEvents.ENTITY_WOLF_SHAKE); + this.moodSounds.put(Mood.ANGRY, SoundEvents.ENTITY_WOLF_GROWL); + + this.superfoods.add(Items.CHICKEN); + this.superfoods.add(Items.BEEF); + this.superfoods.add(Items.PORKCHOP); + + AttackEntityCallback.EVENT.register((player, world, hand, entity, hitResult) -> { + Animal animal = AnimalRPFabric.users.get(player.getUuid()); + + if (animal == null) + return ActionResult.PASS; + if (animal.name != this.name) + return ActionResult.PASS; + player.removeStatusEffect(StatusEffects.SPEED); + player.addStatusEffect( + new StatusEffectInstance(StatusEffects.SPEED, 20, 2, true, true, true)); + return ActionResult.PASS; + }); + } + + @Override + public String chatTransformations(String message) { + return destroyer.destroy(message); + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Fox.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Fox.java new file mode 100644 index 0000000..9e3d24e --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/animals/Fox.java @@ -0,0 +1,64 @@ +package ovh.sad.animalrp.fabric.animals; + +import net.fabricmc.fabric.api.entity.event.v1.ServerLivingEntityEvents; +import net.minecraft.entity.Entity; +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.item.Item; +import net.minecraft.item.Items; +import net.minecraft.server.network.ServerPlayerEntity; +import net.minecraft.sound.SoundEvent; +import net.minecraft.sound.SoundEvents; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.common.util.TextDestroyer; +import ovh.sad.animalrp.fabric.AnimalRPFabric; + +public class Fox extends Animal { + TextDestroyer destroyer = new TextDestroyer(new String[] { + "yap", + "*yap yap*", + "*beeps*", + "*barks*", + "*screeches*", + ":3" + }, new String[][] { + { "you", "u" }, + { "o", "yo" }, + { "i", "yi" }, + { "!", " !" }, + { "?", " ?" } + }); + + public Fox() { + super("fox", "Yap!", "#FF8000"); + this.moodSounds.put(Mood.HAPPY, SoundEvents.ENTITY_FOX_SNIFF); + this.moodSounds.put(Mood.CUTE, SoundEvents.ENTITY_FOX_SLEEP); + this.moodSounds.put(Mood.SAD, SoundEvents.ENTITY_FOX_SNIFF); + this.moodSounds.put(Mood.STRESSED, SoundEvents.ENTITY_FOX_AGGRO); + this.moodSounds.put(Mood.ANGRY, SoundEvents.ENTITY_FOX_BITE); + + this.superfoods.add(Items.APPLE); + this.superfoods.add(Items.GLOW_BERRIES); + + ServerLivingEntityEvents.AFTER_DAMAGE.register((entity, source, baseDmg, dmg, blocked) -> { + if(!(source.getSource() instanceof ServerPlayerEntity)) return; + if(entity instanceof PlayerEntity) return; + + Entity victim = entity; + ServerPlayerEntity damager = (ServerPlayerEntity) source.getSource(); + + Animal animal = AnimalRPFabric.users.get(damager.getUuid()); + + if (animal == null || !animal.name.equals(this.name)) { + return; + } + + victim.damage(victim.getDamageSources().playerAttack(damager), dmg * 0.25F); + }); + } + + @Override + public String chatTransformations(String message) { + return this.destroyer.destroy(message); + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/InteractionCommand.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/InteractionCommand.java new file mode 100644 index 0000000..04c423b --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/InteractionCommand.java @@ -0,0 +1,95 @@ +package ovh.sad.animalrp.fabric.commands; + +import com.mojang.brigadier.CommandDispatcher; + +import eu.pb4.placeholders.api.TextParserUtils; +import net.minecraft.command.CommandRegistryAccess; +import net.minecraft.command.argument.EntityArgumentType; +import net.minecraft.entity.Entity; +import net.minecraft.server.command.CommandManager; +import net.minecraft.server.command.ServerCommandSource; +import net.minecraft.server.network.ServerPlayerEntity; +import net.minecraft.sound.SoundCategory; +import net.minecraft.sound.SoundEvent; +import net.minecraft.text.Text; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Messages; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.fabric.AnimalRPFabric; + + +public class InteractionCommand { + String command; + String toThem; + String toYou; + Mood mood; + + public InteractionCommand(String command, Mood mood, String toThem, String toYou) { + this.command = command; + this.toThem = toThem; + this.toYou = toYou; + this.mood = mood; + } + + @SuppressWarnings("deprecation") + public void Command(CommandDispatcher dispatcher, CommandRegistryAccess registryAccess, + CommandManager.RegistrationEnvironment environment) { + dispatcher.register(CommandManager.literal(this.command) + .then(CommandManager.argument("player", EntityArgumentType.player()) + .executes(context -> { + Entity sender = context.getSource().getEntity(); + + if (!(sender instanceof ServerPlayerEntity)) { + context.getSource().sendFeedback( + () -> Text.literal(Messages.get("no_console")).withColor(8421504), false); + return 0; + } + + ServerPlayerEntity player = context.getSource().getPlayer(); + + Animal aplayer = AnimalRPFabric.users.get(player.getUuid()); + + if (aplayer == null) { + context.getSource().sendFeedback( + () -> Text.literal(Messages.get("only_animals")) + .withColor(8421504), + false); + return 0; + } + + ServerPlayerEntity splayer = EntityArgumentType.getPlayer(context, "player"); + + if (splayer.getName() == player.getName()) { + context.getSource().sendFeedback( + () -> Text.literal(String.format(Messages.get("no_self_argument"), this.command)) + .withColor(8421504), + false); + return 0; + } + @SuppressWarnings("unchecked") + Animal asplayer = (Animal) AnimalRPFabric.users.get(splayer.getUuid()); + + if (asplayer == null) { + context.getSource().sendFeedback( + () -> Text.literal(String.format(Messages.get("not_animal"), splayer.getName())) + .withColor(8421504), + false); + return 0; + } + + splayer.sendMessage(TextParserUtils.formatText( + String.format(this.toThem, + "" + player.getName().getString() + "", + "" + aplayer.catchphrase))); + player.sendMessage(TextParserUtils.formatText( + String.format(this.toYou, + "" + splayer.getName().getString() + "", + "" + asplayer.catchphrase))); + player.getWorld().playSound(splayer, splayer.getBlockPos(), + asplayer.moodSounds.get(this.mood), SoundCategory.PLAYERS, 1F, + 1); + return 1; + }))); + } + +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/NoChatCommand.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/NoChatCommand.java new file mode 100644 index 0000000..7d05c1b --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/NoChatCommand.java @@ -0,0 +1,40 @@ +package ovh.sad.animalrp.fabric.commands; + +import java.util.UUID; + +import com.mojang.brigadier.CommandDispatcher; + +import net.minecraft.command.CommandRegistryAccess; +import net.minecraft.server.command.CommandManager; +import net.minecraft.server.command.ServerCommandSource; +import net.minecraft.text.Text; +import ovh.sad.animalrp.common.AnimalRP; +import ovh.sad.animalrp.common.util.Messages; +import ovh.sad.animalrp.fabric.AnimalRPFabric; + +public class NoChatCommand { + public void Command(CommandDispatcher dispatcher, CommandRegistryAccess registryAccess, + CommandManager.RegistrationEnvironment environment) { + dispatcher.register(CommandManager.literal("disableanimalchat").executes(context -> { + UUID userUuid = context.getSource().getEntity().getUuid(); + + Boolean isDisabled = AnimalRP.noChat.get(context.getSource().getEntity().getUuid()); + if (isDisabled == null) + isDisabled = false; + if (isDisabled) { // + context.getSource().sendFeedback( + () -> Text.literal(Messages.get("no_chat_command_enabled")).withColor(65280), + false); + AnimalRPFabric.noChat.remove(userUuid); + } else { + context.getSource().sendFeedback(() -> Text + .literal(Messages.get("no_chat_command_disabled")).withColor(16711680), false); + AnimalRPFabric.noChat.put(userUuid, true); + } + AnimalRPFabric.hashmapStore.save("nochat.json", AnimalRPFabric.noChat); + + return 0; + })); + } + +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/TfCommand.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/TfCommand.java new file mode 100644 index 0000000..630cf1e --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/commands/TfCommand.java @@ -0,0 +1,72 @@ +package ovh.sad.animalrp.fabric.commands; + +import java.util.Map.Entry; + +import com.mojang.brigadier.CommandDispatcher; +import com.mojang.brigadier.arguments.StringArgumentType; + +import net.minecraft.command.CommandRegistryAccess; +import net.minecraft.entity.Entity; +import net.minecraft.server.command.CommandManager; +import net.minecraft.server.command.ServerCommandSource; +import net.minecraft.text.MutableText; +import net.minecraft.text.Text; +import net.minecraft.util.Formatting; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Messages; +import ovh.sad.animalrp.fabric.AnimalRPFabric; + +public class TfCommand { + public void Command(CommandDispatcher dispatcher, CommandRegistryAccess registryAccess, + CommandManager.RegistrationEnvironment environment) { + dispatcher.register(CommandManager.literal("tf") + .then(CommandManager.argument("animal", StringArgumentType.string()) + .executes(context -> { + final Entity entity = context.getSource().getEntity(); + final String animalString = StringArgumentType.getString(context, "animal"); + + Animal animal = AnimalRPFabric.animals.get(animalString); + + if (animalString.equals("off")) { + if (AnimalRPFabric.users.get(entity.getUuid()) == null) { + context.getSource().sendFeedback( + () -> Text.literal(Messages.get("animal_not_set")), false); + return 0; + } + AnimalRPFabric.users.remove(entity.getUuid()); + context.getSource().sendFeedback( + () -> Text.literal(Messages.get("animal_removed")), false); + return 0; + } + + if (animal == null) { + classicError(context.getSource()); + return 0; + } + + AnimalRPFabric.users.put(entity.getUuid(), animal); + context.getSource() + .sendFeedback( + () -> Text.literal(String.format(Messages.get("animal_set"), animalString)) + .append(Text.literal(animal.catchphrase) + .formatted(Formatting.ITALIC).withColor( + Integer.parseInt(animal.color.substring(1), + 16))), + false); + AnimalRPFabric.hashmapStore.save("users.json", AnimalRPFabric.users); + return 1; + }))); + } + + void classicError(ServerCommandSource source) { + MutableText options = Text.literal(Messages.get("your_options")); + for (Entry> entry : AnimalRPFabric.animals.entrySet()) { + options.append(Text.literal(entry.getKey() + " ") + .withColor(Integer.parseInt(entry.getValue().color.substring(1), 16))); + } + source.sendFeedback(() -> Text.literal(Messages.get("invalid_animal")).withColor(16711680), false); + source.sendFeedback(() -> options, false); + source.sendFeedback(() -> Text.literal(Messages.get("tf_off")), false); + + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/DecoratedMessage.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/DecoratedMessage.java new file mode 100644 index 0000000..92212f2 --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/DecoratedMessage.java @@ -0,0 +1,46 @@ +package ovh.sad.animalrp.fabric.mixin; + +import java.util.Random; + +import org.jetbrains.annotations.NotNull; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Shadow; +import org.spongepowered.asm.mixin.Unique; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.ModifyVariable; + +import net.minecraft.network.message.SignedMessage; +import net.minecraft.server.network.ServerPlayNetworkHandler; +import net.minecraft.server.network.ServerPlayerEntity; +import net.minecraft.sound.SoundCategory; +import net.minecraft.sound.SoundEvent; +import net.minecraft.text.Text; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.fabric.AnimalRPFabric; + +@Mixin(value = ServerPlayNetworkHandler.class, priority = 1) // make sure we run FIRST +public abstract class DecoratedMessage { + @Shadow + public ServerPlayerEntity player; + @Unique + Random random = new Random(); + + @ModifyVariable(method = "handleDecoratedMessage", at = @At(value = "HEAD"), argsOnly = true) + public @NotNull SignedMessage modifyChatMessageSentByPlayers(@NotNull SignedMessage original) { + if (AnimalRPFabric.noChat.get(player.getUuid()) != null) + return original; + + @SuppressWarnings("unchecked") + Animal animal = (Animal) AnimalRPFabric.users.get(player.getUuid()); + if (animal == null) + return original; + if (random.nextDouble() < 0.08) { + player.getWorld().playSound(player, player.getBlockPos(), + animal.moodSounds.get(Mood.HAPPY), SoundCategory.PLAYERS, 10F, 1); + } + + return original + .withUnsignedContent(Text.literal(animal.chatTransformations(original.getContent().getString()))); + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/FoodEating.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/FoodEating.java new file mode 100644 index 0000000..4fd0cac --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/FoodEating.java @@ -0,0 +1,49 @@ +package ovh.sad.animalrp.fabric.mixin; + +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; + +import net.minecraft.component.type.FoodComponent; +import net.minecraft.entity.EntityType; +import net.minecraft.entity.LivingEntity; +import net.minecraft.entity.effect.StatusEffectInstance; +import net.minecraft.entity.effect.StatusEffects; +import net.minecraft.item.ItemStack; +import net.minecraft.server.network.ServerPlayerEntity; +import net.minecraft.world.World; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.fabric.AnimalRPFabric; +import ovh.sad.animalrp.fabric.animals.Bee; + +@Mixin(value = LivingEntity.class) +public class FoodEating { + @Inject(method = "eatFood", at = @At("HEAD")) + public void eatFood(World world, ItemStack stack, FoodComponent foodComponent, CallbackInfoReturnable cfr) { + LivingEntity entity = (LivingEntity) (Object) this; + if (entity.getType().equals(EntityType.PLAYER)) { + ServerPlayerEntity player = (ServerPlayerEntity) entity; + + Animal animal = AnimalRPFabric.users.get(player.getUuid()); + + if (animal != null) { + if (animal.name == "bee") { + ((Bee) animal).onEat(player, stack); + } + if (animal.superfoods.contains(stack.getItem())) { + player.getHungerManager().add(4, 9.4f); + + StatusEffectInstance effect = player.getStatusEffect(StatusEffects.SPEED); + int duration = 20 * 4; + + if (effect != null) { + duration += effect.getDuration(); + } + player.addStatusEffect( + new StatusEffectInstance(StatusEffects.SPEED, duration, 1, true, true, true)); + } + } + } + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/Sneaking.java b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/Sneaking.java new file mode 100644 index 0000000..76bb081 --- /dev/null +++ b/animalrp-fabric/src/main/java/ovh/sad/animalrp/fabric/mixin/Sneaking.java @@ -0,0 +1,24 @@ +package ovh.sad.animalrp.fabric.mixin; + +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; + +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityType; +import net.minecraft.server.network.ServerPlayerEntity; +import ovh.sad.animalrp.fabric.AnimalRPFabric; +import ovh.sad.animalrp.fabric.animals.Bee; + +@Mixin(Entity.class) +public class Sneaking { + @Inject(method = "setSneaking", at = @At("HEAD")) + public void setSneaking(boolean sneaking, CallbackInfo info) { + Entity entity = (Entity) (Object) this; + if (entity.getType() == EntityType.PLAYER) { + Bee bee = (Bee) AnimalRPFabric.animals.get("bee"); + bee.onSneak((ServerPlayerEntity) entity, sneaking); + } + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/resources/animalrp.mixins.json b/animalrp-fabric/src/main/resources/animalrp.mixins.json new file mode 100644 index 0000000..a69c5d3 --- /dev/null +++ b/animalrp-fabric/src/main/resources/animalrp.mixins.json @@ -0,0 +1,13 @@ +{ + "required": true, + "package": "ovh.sad.animalrp.fabric.mixin", + "compatibilityLevel": "JAVA_21", + "server": [ + "DecoratedMessage", + "FoodEating", + "Sneaking" + ], + "injectors": { + "defaultRequire": 1 + } +} \ No newline at end of file diff --git a/animalrp-fabric/src/main/resources/fabric.mod.json b/animalrp-fabric/src/main/resources/fabric.mod.json new file mode 100644 index 0000000..7c2e952 --- /dev/null +++ b/animalrp-fabric/src/main/resources/fabric.mod.json @@ -0,0 +1,32 @@ +{ + "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": "*" + } +} \ No newline at end of file diff --git a/animalrp-paper/bin/main/ovh/sad/animalrp/paper/AnimalRPPaper.class b/animalrp-paper/bin/main/ovh/sad/animalrp/paper/AnimalRPPaper.class new file mode 100644 index 0000000000000000000000000000000000000000..d7c0690a01caf68442819e3abae557a647a639c9 GIT binary patch literal 2818 zcma)8ZBr9h6n-us3+t*86{PiLvD74xu-a;C8>Ll{f{j2$u~J&NNjAxn&E9l(gJNy% z`+NIeN@t>DXFC1d>Bs(_PS4#9WErAkW|F<<+;g6D?sLw$o4@~i@+W}H_*Fp%!?0K{ z8y+th+_9?Mc56nB*G$*A9EdmO=cS~ei(yE(B_mg_R4m`9+4Yj;7;Ai;8`tP(K9Ci3 zGw8bj^P*Z6&Nd>0R_0#0%4-Y0a7~8M?9*K8zGWNJ5#tO)_eIOG{BefPL~@a#YeE!E z6`k0pp%*H{fvn}2v-N7ubZ_#UP56CTk>~azcP%M5m0f<>@)%C1OBRM01`;9iPK)GXFQxO61_eDbv6nTRMx3FS63d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LcDKkX6Ki2wiq literal 0 HcmV?d00001 diff --git a/animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Bee$1.class b/animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Bee$1.class new file mode 100644 index 0000000000000000000000000000000000000000..ab64ed4c03a0d80cb32cd3d59c53fffa7ab9e066 GIT binary patch literal 1057 zcma)5?M@Rx6g|_{Zd(>wi^zvx2o>8cvLI?=YD@qzk`y%ZVdB5(c5H_(vvqg236J7q zn1BXMd;lNHc&9XxL3A%c!(S#P!RWYYe#_ z_e))$ABvD+s(wyGC@uA&`>uaR$n*=Tq<+b;QoaiH#Z;9&hSXZn6j?9~+qj0biSjlq zWO7L2x{WM~49T*A=Ic_4t@xlJ!kx1_7VCk>{XHH^lMgmi=Hd)&o+kNUGMR z(CwgU<1v;QtUzs>J}@kk8~z$o^vE{unV$yM*$G-LU-Z%I=Co!$s=c9<2-kcbMS=>? zY>7y}2_lVYazc{+k3^whi~$si#ujFWMix0bAEM|viUM`D2VY-%gEKrz$i$z*f|ot7rP)KWd@xddMknwBH?6E;rpnAj-HF08ST4zh@gi)ppT07 zh|r@l?CY$(XYD;dzhB<~ZgH4KjNv$(4IRb%4iBWyy=dZ0_(VjDP&s!()Skn)G!hK< zh|jp=@nGOQbw{G78R9-CU3SB0;B=?svDD5Z*CLYKyJARc=?leBa{nt^fffT1(QQf( zrK(*p)ZFDH4E|aMQr|F~)K@7u?Jy*oVP9myP_U3iE{8ZaEaXun=5+%oxH1s!soxdR zEAM)Oq3DJ^?sYhgK=C4(FjN^6loxh3}D-4P>L8y9v0a(@-7jh1LPWKA6RdE q!hWYHh7#%299zXE`36rYl(9uNj&0I0>|l4EWprD?KKTdpeB}=zNQ~0} literal 0 HcmV?d00001 diff --git a/animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Bee.class b/animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Bee.class new file mode 100644 index 0000000000000000000000000000000000000000..8d2c38bee45c07228d7fb81f68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yZE)6~krBczJ2B?%j5@3h(P zA}TD8WXgBz*y!YrWu0a|z-Ak0ZE9+xks94Lh7R&lEA95Wp%KH5W(_O1Ka)*Q?!IXt zD?NnD?}HLc+`@lQaRsmOJym+Pv6nV;Ip;*E;vJS9GIu4#VWaRF*dh?fOzX*E%dqoV zvbz@)e0d_Bi!o5nxpu^g6{?+oG-JtH)|R zS|h2fZ6H;&8%ZlQA8D1=Oj@mNB2_g%X^nOh>0)gQ=@M-#X|1-6bg6bLsip<=TF(XC z9&=R`-M&${4eF#NMre{zQDU?U#vPRKlo*|Yv6~FJ#ORu2C?!UZV7y7!&q03%15Iaf zR{?J>U~n8Gdx|5gfJ0LwyMQB8qqi0C&Z*I{0^U;^y{~`=#_E*LhIBtxk~VNN)?zu9!ViuAE$R@*G8{rZj*)u;*YV<8fu|^Y9;@&&R^wHy!9S?; zFV^+Hd%`$2pSlIeeZ`Ji)$) zqbJ!C2lyG$;byzLc^qGO0jD2<`;6#b!s)I8zP9mMoRxTjf8!Ed-J4$G#)xX8_D#1?pQGrwEWhFfqawmYFV z6+*LMH_ literal 0 HcmV?d00001 diff --git a/animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Dog.class b/animalrp-paper/bin/main/ovh/sad/animalrp/paper/animals/Dog.class new file mode 100644 index 0000000000000000000000000000000000000000..a2a2825b704e0fca37dced8b9b89b86fce4866d5 GIT binary patch literal 3177 zcma)8=~ok16#qREoDfEVpw?Xh7lL54TB}BB0|}C{MJ7O_ZFL}%Fp|u~$%G2E`)=*N zX*J%otQ_~rnwpkVM#h(sGm23pv%a976yRiND3Ke{(`jAv%kN8v2A{ zFf@11s}faCn!#JreuhQ+RZTTp861t?K?Y~L9#>qbBs#7qU06)4fRU(kp^8ChNF?@* zY~SvN12rN9co_CJb|06=WnW6xl0L~aR4wUW2**1pU@1e>!odny&QLvjGZ$7cln?1T z$GD0xw#mlWhJ8C-SVKM#bQjh!EE(q9+b9YWd*o}J$RH!!^j>e7- z^>ud~4fM2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ItG4p12f3pSbk46tt$O6sPhsXKMmiI0m9@E`4yE5mLW#^^}OU1P*w^G3e zstm~v;&&>3j~5yDa#P4z&Tt&B=+*O8wTF#PQ`XZkd(dt2PSN99GO$$wF#}uOE^8fmMfu9 zrkoPqIElAN5uCnLPA}5Rw2*9W=h0j$NN*vR6$2~VOKKST>&;Lew@1^>cU{0H0cUY;ObPlw}uct1yh z4{&!CKE!z~sSk5xVDL`{ubN|K^CUjLb4< z@*5%x5&ADSDLAJf)bKLali>xt$gi~c00qc&t)m%-spxN?AmN8bI!69GDc!fsXL?18 hI{X0_xE{hEJ^nx8&))bK{FP%pS02aT@Q=fd{|5<$32FcU literal 0 HcmV?d00001 diff --git a/animalrp-paper/bin/main/ovh/sad/animalrp/paper/listeners/PlayerChat.class b/animalrp-paper/bin/main/ovh/sad/animalrp/paper/listeners/PlayerChat.class new file mode 100644 index 0000000000000000000000000000000000000000..46837ee2f2b02314cbf6c63bfe0245ad59db0450 GIT binary patch literal 998 zcmb7CTTc@~6h6~dO4mYb5fw!k@K*4$G4V-^2@;GC8zB@hJWh8H?ZEELW_GrrKg$P0 zB8k5H8~iQCv(q9ZUJ@VXa^{@#o$q{ezWw<81pwCJQ58xI9_vBh&qU-4B@+>w)K5i< z#*bxYQK8BF?N|)aZ1jb#LWM!|NDPD@3)SjZ;2ZF+t;KR%Y$#{nwq2V(#R z6Go^=Ck$GF%gwEf{T=tVM&4IaN&A{XxxKQ_pt7MO^q>q=b*O)B9+gRFiG1^SR5`*u1%3!AB0Y*I3Nh)JUg{MXn zwTV!ez#D72zR?9q~hLxTPpNOp%ZD@oJr+vf_keQR@kp zDnn!W^4c=D+LemYBJWV^n24&*se0}=ypGOIh;L;vDUFN2eO9PdS)#!z)4Dtxj(UK3{F23ZVl!Y#s`qx%$Dw`tu$ pn1{Qr#0vr_k;^-Sg@YD9h2^hgl?V=C!U4@+0`-1@K5$VFe*(0#3bg { + users.put(UUID.fromString(k), animals.get(v)); + }); + hashmapStore.get("nochat.json").forEach((k, v) -> { + noChat.put(UUID.fromString(k), Boolean.valueOf(v)); + }); + } + + @Override + public void onDisable() { + hashmapStore.save("users.json", users); + hashmapStore.save("nochat.json", noChat); + + } +} diff --git a/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Bee.java b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Bee.java new file mode 100644 index 0000000..8eb82b8 --- /dev/null +++ b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Bee.java @@ -0,0 +1,201 @@ +package ovh.sad.animalrp.paper.animals; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; + +import org.bukkit.Material; +import org.bukkit.Sound; +import org.bukkit.block.BlockFace; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerInteractEvent; +import org.bukkit.event.player.PlayerItemConsumeEvent; +import org.bukkit.event.player.PlayerToggleSneakEvent; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.ItemMeta; +import org.bukkit.inventory.meta.components.FoodComponent; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; +import org.bukkit.scheduler.BukkitRunnable; + +import ovh.sad.animalrp.common.AnimalRP; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.common.util.TextDestroyer; +import ovh.sad.animalrp.paper.AnimalRPPaper; + +public class Bee extends Animal implements Listener { + class Row { + Material mat; + Integer times; + } + + private static Material[] _allFlowers = { Material.ALLIUM, Material.AZURE_BLUET, Material.BLUE_ORCHID, + Material.CORNFLOWER, Material.DANDELION, Material.LILY_OF_THE_VALLEY, Material.OXEYE_DAISY, + Material.POPPY, Material.TORCHFLOWER, Material.ORANGE_TULIP, Material.PINK_TULIP, Material.RED_TULIP, + Material.WHITE_TULIP }; + public static List allFlowers = Arrays.asList(_allFlowers); + public static HashMap inARow = new HashMap(); + TextDestroyer destroyer = new TextDestroyer(new String[] { + ">_<", "*buzz*", + ";3", ":3", "εწз", " ≧◠◡◠≦ ", "*stings you*", "*humms*", + "*i'm a bee*" + }, new String[][] { + { "e", "ee" }, + { "b", "bzz" }, + { "h", "hh" }, + { "ie", "ee" }, + { "be", "bee" }, + { "E", "EE" }, + { "B", "BZZ" }, + { "H", "HH" }, + { "IE", "EE" }, + { "BE", "BEE" } + }); + + ArrayList sneakers = new ArrayList(); + + public static Boolean isItemARP(ItemStack is) { + return (allFlowers.contains(is.getType()) && is.getItemMeta().hasFood()); + } + + public Bee() { + super("bee", "Buzz...", "#FFFF00"); + this.moodSounds.put(Mood.HAPPY, Sound.ENTITY_BEE_LOOP); + this.moodSounds.put(Mood.CUTE, Sound.ENTITY_BEE_LOOP); + this.moodSounds.put(Mood.SAD, Sound.ENTITY_BEE_HURT); + this.moodSounds.put(Mood.STRESSED, Sound.ENTITY_BEE_STING); + this.moodSounds.put(Mood.ANGRY, Sound.ENTITY_BEE_LOOP_AGGRESSIVE); + } + + @EventHandler + public void onInteract(PlayerInteractEvent event) { + Player player = event.getPlayer(); + Animal animal = AnimalRP.users.get(player.getUniqueId()); + + ItemStack item = event.getItem(); + + if (item == null) // air interact + return; + + if (!allFlowers.contains(item.getType())) { // not a flower + return; + } + + ItemMeta meta = item.getItemMeta(); + Boolean incorrect = false; + + if (animal == null) { + incorrect = true; + } else { + if (animal.name != this.name) { + incorrect = true; + } + } + + if (incorrect) { + if (Bee.isItemARP(item)) { + meta.setFood(null); + item.setItemMeta(meta); + event.setCancelled(true); + } + return; + } + + if (Bee.isItemARP(item)) { // correct animal, but foodkey already set + return; + } + + FoodComponent food = meta.getFood(); + + food.addEffect(new PotionEffect(PotionEffectType.SPEED, 20 * 4, 1, true), 1); + food.setCanAlwaysEat(true); + food.setNutrition(4); // these values match the 'superfood' of animalrps + food.setSaturation(9.4f); + + meta.setFood(food); + item.setItemMeta(meta); + } + + @EventHandler + public void onConsume(PlayerItemConsumeEvent event) { + Player player = event.getPlayer(); + Animal animal = AnimalRP.users.get(player.getUniqueId()); + ItemStack item = event.getItem(); + + if (!allFlowers.contains(item.getType())) { // not a flower + return; + } + if (animal == null) + return; + if (animal.name != this.name) + return; + + Row row = inARow.get(player.getUniqueId()); // make a new row + if (row == null) { // none yet + row = new Row(); + row.mat = item.getType(); + row.times = 1; + } else { + if (row.mat.equals(item.getType())) { // mat is same as in row, increase time + row.times += 1; + } else { + row.mat = item.getType(); // mat not same, change mat, reset time + row.times = 1; + } + } + + if (row.times > 20) { + player.addPotionEffect(new PotionEffect(PotionEffectType.NAUSEA, 20 * 10, 1, true)); + } + if (row.times > 30) { + if (row.times > 40) { + player.addPotionEffect(new PotionEffect(PotionEffectType.WEAKNESS, 20 * 10, 3, true)); + } else { + player.addPotionEffect(new PotionEffect(PotionEffectType.WEAKNESS, 20 * 5, 2, true)); + } + } + + inARow.put(player.getUniqueId(), row); + } + + @EventHandler + public void onSneak(PlayerToggleSneakEvent event) { + Animal animal = AnimalRP.users.get(event.getPlayer().getUniqueId()); + if (animal == null) + return; + if (animal.name != this.name) + return; + Material type = event.getPlayer().getLocation().getBlock().getRelative(BlockFace.DOWN).getType(); + + if (event.isSneaking() + && type != Material.AIR && type != Material.WATER) { + Player player = event.getPlayer(); + + if (!sneakers.contains(player.getUniqueId())) { + sneakers.add(player.getUniqueId()); + + new BukkitRunnable() { + @Override + public void run() { + if (sneakers.contains(player.getUniqueId())) + sneakers.remove(player.getUniqueId()); + } + }.runTaskLater(AnimalRPPaper.getProvidingPlugin(Animal.class), 20); + } else { + sneakers.remove(player.getUniqueId()); + player.addPotionEffect(new PotionEffect(PotionEffectType.LEVITATION, 20 * 1, 5, true)); + player.getWorld().playSound(player.getLocation(), this.moodSounds.get(Mood.HAPPY), 1F, 1); + } + } + } + + @Override + public String chatTransformations(String message) { + return destroyer.destroy(message); + } +} \ No newline at end of file diff --git a/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Cat.java b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Cat.java new file mode 100644 index 0000000..7a54482 --- /dev/null +++ b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Cat.java @@ -0,0 +1,62 @@ +package ovh.sad.animalrp.paper.animals; + +import org.bukkit.Material; +import org.bukkit.Sound; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; + +import ovh.sad.animalrp.common.AnimalRP; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.common.util.TextDestroyer; + +public class Cat extends Animal { + TextDestroyer destroyer = new TextDestroyer(new String[]{ + ">_<", ":3", "ʕʘ‿ʘʔ", ":D", "._.", + ";3", "xD", "ㅇㅅㅇ", + ">_>", "ÙωÙ", "UwU", "OwO", ":P", + "(◠‿◠✿)", "^_^", ";_;", + "x3", "(• o •)", "<_<" + }, new String[][]{ + {"l", "w"}, + {"r", "w"}, + {"th", "d"}, + {"L", "W"}, + {"R", "W"}, + {"TH", "D"} + }); + + public Cat() { + super("cat", "Nya~", "#F2BDCD"); + this.moodSounds.put(Mood.HAPPY, Sound.ENTITY_CAT_PURR); + this.moodSounds.put(Mood.CUTE, Sound.ENTITY_CAT_PURREOW); + this.moodSounds.put(Mood.SAD, Sound.ENTITY_CAT_AMBIENT); + this.moodSounds.put(Mood.STRESSED, Sound.ENTITY_CAT_STRAY_AMBIENT); + this.moodSounds.put(Mood.ANGRY, Sound.ENTITY_CAT_HISS); + + this.superfoods.add(Material.COOKED_COD); + this.superfoods.add(Material.COD); + this.superfoods.add(Material.COOKED_SALMON); + this.superfoods.add(Material.SALMON); + } + + @EventHandler + public void onDamage(EntityDamageEvent event) { + if(!(event.getEntity() instanceof Player)) return; + + Player player = (Player)event.getEntity(); + Animal animal = AnimalRP.users.get(player.getUniqueId()); + if(animal == null) return; + if(animal.name != this.name) return; + if(event.getCause() == DamageCause.FALL) { + event.setDamage(event.getDamage() - 5); + } + } + + @Override + public String chatTransformations(String message) { + return destroyer.destroy(message); + } +} \ No newline at end of file diff --git a/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Dog.java b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Dog.java new file mode 100644 index 0000000..ece5a37 --- /dev/null +++ b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Dog.java @@ -0,0 +1,54 @@ +package ovh.sad.animalrp.paper.animals; + +import org.bukkit.Material; +import org.bukkit.Sound; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; + +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.common.util.TextDestroyer; +import ovh.sad.animalrp.paper.AnimalRPPaper; + +public class Dog extends Animal { + TextDestroyer destroyer = new TextDestroyer(new String[]{ + "Woof!", "Bark :3", + "Arf", "bark bark bark", "arf~" + }, new String[][]{ + + }); + + public Dog() { + super("dog", "Arf!", "#ff8c00"); + this.moodSounds.put(Mood.HAPPY, Sound.ENTITY_WOLF_AMBIENT); + this.moodSounds.put(Mood.CUTE, Sound.ENTITY_WOLF_STEP); + this.moodSounds.put(Mood.SAD, Sound.ENTITY_WOLF_WHINE); + this.moodSounds.put(Mood.STRESSED, Sound.ENTITY_WOLF_SHAKE); + this.moodSounds.put(Mood.ANGRY, Sound.ENTITY_WOLF_GROWL); + + this.superfoods.add(Material.CHICKEN); + this.superfoods.add(Material.BEEF); + this.superfoods.add(Material.PORKCHOP); + } + + @EventHandler + public void onDamage(EntityDamageByEntityEvent event) { + if(event.getEntity() instanceof Player) { + Player player = (Player)event.getEntity(); + Animal animal = AnimalRPPaper.users.get(player.getUniqueId()); + + if(animal == null) return; + if(animal.name != this.name) return; + player.removePotionEffect(PotionEffectType.SPEED); + player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 20, 2)); + } + } + + @Override + public String chatTransformations(String message) { + return destroyer.destroy(message); + } +} \ No newline at end of file diff --git a/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Fox.java b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Fox.java new file mode 100644 index 0000000..9a39fab --- /dev/null +++ b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/animals/Fox.java @@ -0,0 +1,67 @@ +package ovh.sad.animalrp.paper.animals; + +import java.util.Random; + +import org.bukkit.Material; +import org.bukkit.Sound; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; + +import ovh.sad.animalrp.common.AnimalRP; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.common.util.TextDestroyer; + +public class Fox extends Animal implements Listener { + TextDestroyer destroyer = new TextDestroyer(new String[]{ + "yap", + "*yap yap*", + "*beeps*", + "*barks*", + "*screeches*", + ":3" + }, new String[][]{ + {"you", "u"}, + {"o", "yo"}, + {"i", "yi"}, + {"!", " !"}, + {"?", " ?"} + }); + Random rand = new Random(); + + public Fox() { + super("fox", "Yap!", "#FF8000"); + this.moodSounds.put(Mood.HAPPY, Sound.ENTITY_FOX_SNIFF); + this.moodSounds.put(Mood.CUTE, Sound.ENTITY_FOX_SLEEP); + this.moodSounds.put(Mood.SAD, Sound.ENTITY_FOX_SNIFF); + this.moodSounds.put(Mood.STRESSED, Sound.ENTITY_FOX_AGGRO); + this.moodSounds.put(Mood.ANGRY, Sound.ENTITY_FOX_BITE); + + this.superfoods.add(Material.APPLE); + this.superfoods.add(Material.GLOW_BERRIES); + } + + @EventHandler + public void onDamage(EntityDamageByEntityEvent event) { + if(event.getDamager() instanceof Player) { + Player player = (Player)event.getDamager(); + Animal animal = AnimalRP.users.get(player.getUniqueId()); + + if(animal == null) return; + if(animal.name != this.name) return; + + if(event.getCause() == DamageCause.ENTITY_ATTACK && event.getEntity().getType() != EntityType.PLAYER) { + event.setDamage(event.getDamage()*1.25); + } + } + } + + @Override + public String chatTransformations(String message) { + return this.destroyer.destroy(message); + } +} \ No newline at end of file diff --git a/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/listeners/PlayerChat.java b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/listeners/PlayerChat.java new file mode 100644 index 0000000..5be2d21 --- /dev/null +++ b/animalrp-paper/src/main/java/ovh/sad/animalrp/paper/listeners/PlayerChat.java @@ -0,0 +1,40 @@ +package ovh.sad.animalrp.paper.listeners; + +import java.util.Random; + +import org.bukkit.Material; +import org.bukkit.Sound; +import org.bukkit.SoundCategory; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; + +import io.papermc.paper.event.player.AsyncChatEvent; +import ovh.sad.animalrp.common.util.Animal; +import ovh.sad.animalrp.common.util.Mood; +import ovh.sad.animalrp.paper.AnimalRPPaper; + +public abstract class PlayerChat implements Listener { + Random random = new Random(); + + @EventHandler(priority = EventPriority.LOWEST) + public void onPlayerChat(final AsyncChatEvent event) { + Player player = event.getPlayer(); + if (AnimalRPPaper.noChat.get(player.getUniqueId()) != null) + return; + + @SuppressWarnings("unchecked") + Animal animal = (Animal) AnimalRPPaper.users.get(player.getUuid()); + if (animal == null) + return; + if (random.nextDouble() < 0.08) { + player.getWorld().playSound(player.getLocation(), + animal.moodSounds.get(Mood.HAPPY), SoundCategory.PLAYERS, 10F, 1); + } + event.message() + + return original + .withUnsignedContent(Text.literal(animal.chatTransformations(original.getContent().getString()))); + } +} diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..4792577 --- /dev/null +++ b/build.gradle @@ -0,0 +1,42 @@ +import org.gradle.api.tasks.testing.logging.TestExceptionFormat +import org.gradle.api.tasks.testing.logging.TestLogEvent + +defaultTasks 'build' + +subprojects { + apply plugin: 'java' + apply plugin: 'maven-publish' + + group = 'ovh.sad.animalrp' + version = "${project.mod_version}" + + sourceCompatibility = 21 + targetCompatibility = 21 + + tasks.withType(JavaCompile).configureEach { + options.encoding = 'UTF-8' + options.release = 21; + } + + jar { + from '../LICENSE.txt' + } + + repositories { + // Fix issue with lwjgl-freetype not being found on macOS / ForgeGradle issue + // + // Could not resolve all files for configuration ':_compileJava_1'. + // Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3). + maven { + url "https://libraries.minecraft.net" + content { + includeModule("org.lwjgl", "lwjgl-freetype") + } + } + mavenCentral() + maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' } + maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } + maven { url 'https://libraries.minecraft.net/' } + maven { url "https://repo.william278.net/releases" } + } +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..c6f5660 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,19 @@ +# Done to increase the memory available to gradle. +org.gradle.jvmargs=-Xmx2G +org.gradle.parallel=true + + +# Fabric Properties +# check these on https://fabricmc.net/develop +minecraft_version=1.21.1 +yarn_mappings=1.21.1+build.3 +loader_version=0.16.4 + +# Mod Properties +mod_version=0.1 +group=ovh.sad.animalrp +maven_group=ovh.sad.animalrp +archives_base_name=animal-rp + +# Dependencies +fabric_version=0.103.0+1.21.1 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..2ae8999 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,7 @@ +[versions] +placeholderApi = "2.4.1+1.21" +tomlj = "1.1.1" + +[libraries] +placeholderApi = { group = "eu.pb4", name = "placeholder-api", version.ref = "placeholderApi"} +tomlj = { group = "org.tomlj", name = "tomlj", version.ref = "tomlj" } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..a4b76b9530d66f5e68d973ea569d8e19de379189 GIT binary patch literal 43583 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=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nfVc!%-D<+wsG@R2+J&%73lK|2G!EQC)O05TCV=&3g)C!lT=czLpZ@Sa%TYuoE?v8T8`V;e$#Zf2_Nj6nvBgh1)2 GZ~q4|mN%#X literal 0 HcmV?d00001 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..09523c0 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..f5feea6 --- /dev/null +++ b/gradlew @@ -0,0 +1,252 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..9d21a21 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..9f9b309 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,20 @@ +pluginManagement { + repositories { + gradlePluginPortal() + maven { + name = 'Fabric' + url = 'https://maven.fabricmc.net/' + } + } +} + +plugins { + id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0") +} + +rootProject.name = 'animalrp' +include ( + 'animalrp-common', + 'animalrp-fabric', + 'animalrp-paper' +) \ No newline at end of file