From 92351f718aec79a22e3f0e9752962cd06ce42dbe Mon Sep 17 00:00:00 2001 From: Pyritie Date: Fri, 27 Jun 2025 00:16:23 +0100 Subject: [PATCH] idk entity stuff --- .../entity/moon_rabbit/female.animation.json | 93 +++++++++++++++++++ .../entity/moon_rabbit/male.animation.json | 93 +++++++++++++++++++ kubejs/startup_scripts/tfg/entity_types.js | 2 + 3 files changed, 188 insertions(+) create mode 100644 kubejs/assets/tfg/animations/entity/moon_rabbit/female.animation.json create mode 100644 kubejs/assets/tfg/animations/entity/moon_rabbit/male.animation.json diff --git a/kubejs/assets/tfg/animations/entity/moon_rabbit/female.animation.json b/kubejs/assets/tfg/animations/entity/moon_rabbit/female.animation.json new file mode 100644 index 000000000..e069d3c5f --- /dev/null +++ b/kubejs/assets/tfg/animations/entity/moon_rabbit/female.animation.json @@ -0,0 +1,93 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.moon_rabbit.female.baby_transform": { + "loop": true, + "bones": { + "earLeft": { + "position": { + "vector": [0, -1, 1] + }, + "scale": { + "vector": [1.5, 1.5, 1.5] + } + }, + "earRight": { + "position": { + "vector": [0, -1, 1] + }, + "scale": { + "vector": [1.5, 1.5, 1.5] + } + }, + "head": { + "position": { + "vector": [0, -1, 1] + }, + "scale": { + "vector": [1.5, 1.5, 1.5] + } + }, + "nose": { + "position": { + "vector": [0, -1, 1] + }, + "scale": { + "vector": [1.5, 1.5, 1.5] + } + } + } + }, + "animation.moon_rabbit.female.move": { + "loop": true, + "bones": { + "earLeft": { + "rotation": { + "vector": ["query.target_x_rotation - this", "query.target_y_rotation - this + 15.0", 0] + } + }, + "earRight": { + "rotation": { + "vector": ["query.target_x_rotation - this", "query.target_y_rotation - this - 15.0", 0] + } + }, + "frontLegLeft": { + "rotation": { + "vector": ["variable.jump_rotation * -40.0 - 11.0 - this", 0, 0] + } + }, + "frontLegRight": { + "rotation": { + "vector": ["variable.jump_rotation * -40.0 - 11.0 - this", 0, 0] + } + }, + "haunchLeft": { + "rotation": { + "vector": ["variable.jump_rotation * 50.0 - 21.0 - this", 0, 0] + } + }, + "haunchRight": { + "rotation": { + "vector": ["variable.jump_rotation * 50.0 - 21.0 - this", 0, 0] + } + }, + "nose": { + "rotation": { + "vector": ["query.target_x_rotation - this", "query.target_y_rotation - this", 0] + } + }, + "rearFootLeft": { + "rotation": { + "vector": ["variable.jump_rotation * 50.0 - this", 0, 0] + } + }, + "rearFootRight": { + "rotation": { + "vector": ["variable.jump_rotation * 50.0 - this", 0, 0] + } + } + } + } + }, + "geckolib_format_version": 2 +} \ No newline at end of file diff --git a/kubejs/assets/tfg/animations/entity/moon_rabbit/male.animation.json b/kubejs/assets/tfg/animations/entity/moon_rabbit/male.animation.json new file mode 100644 index 000000000..dacf79d93 --- /dev/null +++ b/kubejs/assets/tfg/animations/entity/moon_rabbit/male.animation.json @@ -0,0 +1,93 @@ +{ + "format_version": "1.8.0", + "animations": { + "entities.moon_rabbit.male.baby_transform": { + "loop": true, + "bones": { + "earLeft": { + "position": { + "vector": [0, -1, 1] + }, + "scale": { + "vector": [1.5, 1.5, 1.5] + } + }, + "earRight": { + "position": { + "vector": [0, -1, 1] + }, + "scale": { + "vector": [1.5, 1.5, 1.5] + } + }, + "head": { + "position": { + "vector": [0, -1, 1] + }, + "scale": { + "vector": [1.5, 1.5, 1.5] + } + }, + "nose": { + "position": { + "vector": [0, -1, 1] + }, + "scale": { + "vector": [1.5, 1.5, 1.5] + } + } + } + }, + "entities.moon_rabbit.male.move": { + "loop": true, + "bones": { + "earLeft": { + "rotation": { + "vector": ["query.target_x_rotation - this", "query.target_y_rotation - this + 15.0", 0] + } + }, + "earRight": { + "rotation": { + "vector": ["query.target_x_rotation - this", "query.target_y_rotation - this - 15.0", 0] + } + }, + "frontLegLeft": { + "rotation": { + "vector": ["variable.jump_rotation * -40.0 - 11.0 - this", 0, 0] + } + }, + "frontLegRight": { + "rotation": { + "vector": ["variable.jump_rotation * -40.0 - 11.0 - this", 0, 0] + } + }, + "haunchLeft": { + "rotation": { + "vector": ["variable.jump_rotation * 50.0 - 21.0 - this", 0, 0] + } + }, + "haunchRight": { + "rotation": { + "vector": ["variable.jump_rotation * 50.0 - 21.0 - this", 0, 0] + } + }, + "nose": { + "rotation": { + "vector": ["query.target_x_rotation - this", "query.target_y_rotation - this", 0] + } + }, + "rearFootLeft": { + "rotation": { + "vector": ["variable.jump_rotation * 50.0 - this", 0, 0] + } + }, + "rearFootRight": { + "rotation": { + "vector": ["variable.jump_rotation * 50.0 - this", 0, 0] + } + } + } + } + }, + "geckolib_format_version": 2 +} \ No newline at end of file diff --git a/kubejs/startup_scripts/tfg/entity_types.js b/kubejs/startup_scripts/tfg/entity_types.js index dbb114dbe..b02f4aaf2 100644 --- a/kubejs/startup_scripts/tfg/entity_types.js +++ b/kubejs/startup_scripts/tfg/entity_types.js @@ -11,6 +11,8 @@ function registerTFGEntityTypes(event) { .setDeathSound("minecraft:entity.rabbit.death") .setAmbientSound("minecraft:entity.rabbit.ambient") .setHurtSound(context => "minecraft:entity.rabbit.hurt") + .canJump(true) + .setBlockJumpFactor(entity => 0.42) // these are the same as tfc rabbits //.configs(config => { // config.gestationDays(19)