commit - 50d6e668e3eee8720f4040e673d877e77095c7c8
commit + 9fcb2b1b2e0d0e4a5a64ef36d447ddaae5dcdab3
blob - fce3d72901c85e195bd30866c33bf5063ffaf294 (mode 644)
blob + /dev/null
--- src/main/java/com/techsupportred/capybaramod/capybaramod.java
+++ /dev/null
-package com.techsupportred.capybaramod;
-
-import com.mojang.logging.LogUtils;
-import com.techsupportred.capybaramod.entity.ModEntities;
-import com.techsupportred.capybaramod.entity.client.CapybaraRenderer;
-import com.techsupportred.capybaramod.item.ModCreativeModTabs;
-import com.techsupportred.capybaramod.item.ModItems;
-import net.minecraft.client.renderer.entity.EntityRenderers;
-import net.minecraftforge.api.distmarker.Dist;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.server.ServerStartingEvent;
-import net.minecraftforge.eventbus.api.IEventBus;
-import net.minecraftforge.eventbus.api.SubscribeEvent;
-import net.minecraftforge.fml.common.Mod;
-import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
-import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
-import org.slf4j.Logger;
-
-// The value here should match an entry in the META-INF/mods.toml file
-@Mod(CapybaraMod.MODID)
-public class CapybaraMod {
-
- public static final String MODID = "capybaramod";
-
- public CapybaraMod() {
- IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
-
- ModItems.register(modEventBus);
- ModEntities.register(modEventBus);
- ModCreativeModTabs.register(modEventBus);
-
- MinecraftForge.EVENT_BUS.register(this);
- }
- // You can use SubscribeEvent and let the Event Bus discover methods to call
- @SubscribeEvent
- public void onServerStarting(ServerStartingEvent event) {
-
- }
-
- // You can use EventBusSubscriber to automatically register all static methods in the class annotated with @SubscribeEvent
- @Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
- public static class ClientModEvents {
- @SubscribeEvent
- public static void onClientSetup(FMLClientSetupEvent event) {
- EntityRenderers.register(ModEntities.CAPYBARA.get(), CapybaraRenderer::new);
-
- }
- }
-}
-
-
blob - /dev/null
blob + 7c0ff69f9ba06b8ca8089d32484825d0c829c69c (mode 644)
--- /dev/null
+++ src/main/java/com/techsupportred/capybaramod/CapybaraMod.java
+package com.techsupportred.capybaramod;
+
+import com.techsupportred.capybaramod.entity.ModEntities;
+import com.techsupportred.capybaramod.entity.client.CapybaraRenderer;
+import com.techsupportred.capybaramod.item.ModCreativeModTabs;
+import com.techsupportred.capybaramod.item.ModItems;
+import net.minecraft.client.renderer.entity.EntityRenderers;
+import net.minecraftforge.api.distmarker.Dist;
+import net.minecraftforge.common.MinecraftForge;
+import net.minecraftforge.event.server.ServerStartingEvent;
+import net.minecraftforge.eventbus.api.IEventBus;
+import net.minecraftforge.eventbus.api.SubscribeEvent;
+import net.minecraftforge.fml.common.Mod;
+import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
+import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
+
+// The value here should match an entry in the META-INF/mods.toml file
+@Mod(CapybaraMod.MODID)
+public class CapybaraMod {
+
+ public static final String MODID = "capybaramod";
+
+ public CapybaraMod() {
+ IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
+
+ ModItems.register(modEventBus);
+ ModEntities.register(modEventBus);
+ ModCreativeModTabs.register(modEventBus);
+
+ MinecraftForge.EVENT_BUS.register(this);
+ }
+ // You can use SubscribeEvent and let the Event Bus discover methods to call
+ @SubscribeEvent
+ public void onServerStarting(ServerStartingEvent event) {
+
+ }
+
+ // You can use EventBusSubscriber to automatically register all static methods in the class annotated with @SubscribeEvent
+ @Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
+ public static class ClientModEvents {
+ @SubscribeEvent
+ public static void onClientSetup(FMLClientSetupEvent event) {
+ EntityRenderers.register(ModEntities.CAPYBARA.get(), CapybaraRenderer::new);
+
+ }
+ }
+}
+
+
blob - 8c145a17b85b086bcf7fcd364b64acf663ee5e20
blob + d1083ee8f85e8aba9a9639497cf2429d75f385e4
--- src/main/java/com/techsupportred/capybaramod/entity/client/CapybaraModel.java
+++ src/main/java/com/techsupportred/capybaramod/entity/client/CapybaraModel.java
@Override
public ResourceLocation getTextureResource(CapybaraEntity animatable) {
- return new ResourceLocation(CapybaraMod.MODID, "textures/entity/capybara_texture.png");
+ return new ResourceLocation(CapybaraMod.MODID, "textures/entity/texture.png");
}
@Override
blob - ce901338cd1ebcb2c0deaa723ad70da571f972be
blob + 9cc7396d5fcdda1bbaa066c8848932475240894a
--- src/main/resources/assets/capybaramod/animations/capybara.animation.json
+++ src/main/resources/assets/capybaramod/animations/capybara.animation.json
-{
- "format_version": "1.8.0",
- "animations": {
- "animation.capybara.idle": {
- "loop": true
- },
- "animation.capybara.walk": {
- "loop": true,
- "animation_length": 1,
- "bones": {
- "body": {
- "rotation": {
- "0.0": {
- "vector": [0, 0, 0]
- },
- "0.5": {
- "vector": [-2.5, 0, 0]
- },
- "1.0": {
- "vector": [0, 0, 0]
- }
- }
- },
- "bone": {
- "rotation": {
- "0.0": {
- "vector": [0, 0, 0]
- },
- "0.5": {
- "vector": [-2.5, 0, 0]
- },
- "1.0": {
- "vector": [0, 0, 0]
- }
- },
- "position": {
- "0.0": {
- "vector": [0, 0, 0]
- },
- "0.5": {
- "vector": [0, 1, 0]
- },
- "1.0": {
- "vector": [0, 0, 0]
- }
- }
- },
- "leg1": {
- "rotation": {
- "0.0": {
- "vector": [-20, 0, 0]
- },
- "0.5": {
- "vector": [20, 0, 0]
- },
- "1.0": {
- "vector": [-20, 0, 0]
- }
- }
- },
- "leg2": {
- "rotation": {
- "0.0": {
- "vector": [20, 0, 0]
- },
- "0.5": {
- "vector": [-20, 0, 0]
- },
- "1.0": {
- "vector": [20, 0, 0]
- }
- }
- },
- "leg3": {
- "rotation": {
- "0.0": {
- "vector": [20, 0, 0]
- },
- "0.5": {
- "vector": [-20, 0, 0]
- },
- "1.0": {
- "vector": [20, 0, 0]
- }
- }
- },
- "leg4": {
- "rotation": {
- "0.0": {
- "vector": [-20, 0, 0]
- },
- "0.5": {
- "vector": [20, 0, 0]
- },
- "1.0": {
- "vector": [-20, 0, 0]
- }
- }
- }
- }
- },
- "animation.capybara.sitting": {
- "loop": true,
- "bones": {
- "body": {
- "position": {
- "vector": [0, -2, 0]
- }
- },
- "leg1": {
- "rotation": {
- "vector": [-87.5, 32.5, 0]
- },
- "position": {
- "vector": [0, -4, 2]
- }
- },
- "leg2": {
- "rotation": {
- "vector": [-90, -27.5, 0]
- },
- "position": {
- "vector": [0, -4, 2]
- }
- },
- "leg3": {
- "rotation": {
- "vector": [-90, 42.5, 0]
- },
- "position": {
- "vector": [0, -4, 0]
- }
- },
- "leg4": {
- "rotation": {
- "vector": [-90, -32.5, 0]
- },
- "position": {
- "vector": [0, -4, 0]
- }
- }
- }
- }
- },
- "geckolib_format_version": 2
+{
+ "format_version": "1.8.0",
+ "animations": {
+ "animation.capybara.idle": {
+ "loop": true
+ },
+ "animation.capybara.walk": {
+ "loop": true,
+ "animation_length": 1,
+ "bones": {
+ "body": {
+ "position": {
+ "0.0417": [0, 0, 0],
+ "0.375": [0, -0.25, 0],
+ "1.0": [0, 0, 0]
+ }
+ },
+ "bone": {
+ "position": {
+ "0.0": [0, -0.25, 0],
+ "0.5": [0, -0.5, 0],
+ "1.0": [0, -0.25, 0]
+ }
+ },
+ "leg1": {
+ "rotation": {
+ "0.0": [15, 0, 0],
+ "0.5": [-17.5, 0, 0],
+ "1.0": [15, 0, 0]
+ }
+ },
+ "leg2": {
+ "rotation": {
+ "0.0": [-17.5, 0, 0],
+ "0.5": [17.5, 0, 0],
+ "1.0": [-17.5, 0, 0]
+ }
+ },
+ "leg3": {
+ "rotation": {
+ "0.0": [12.5, 0, 0],
+ "0.5": [-15, 0, 0],
+ "1.0": [12.5, 0, 0]
+ }
+ },
+ "leg4": {
+ "rotation": {
+ "0.0": [-17.5, 0, 0],
+ "0.5": [17.5, 0, 0],
+ "1.0": [-17.5, 0, 0]
+ }
+ }
+ }
+ },
+ "animation.capybara.sitting": {
+ "loop": true,
+ "bones": {
+ "body": {
+ "position": [0, -2, 0]
+ },
+ "leg1": {
+ "rotation": [-90, 20, 0],
+ "position": [-0.25, -4, 2]
+ },
+ "leg2": {
+ "rotation": [-90, -12.5, 0],
+ "position": [2, -4, 2]
+ },
+ "leg3": {
+ "rotation": [-90, 5, 0],
+ "position": [-2, -4, 0]
+ },
+ "leg4": {
+ "rotation": [-90, -7.5, 0],
+ "position": [2, -4, 0]
+ }
+ }
+ }
+ }
}
\ No newline at end of file
blob - b46abdabee87640783811c90ea6713bc1aa8839b
blob + 3133c3f115fccec5862de650e1f93ea9fc87dd1a
--- src/main/resources/assets/capybaramod/geo/capybara.geo.json
+++ src/main/resources/assets/capybaramod/geo/capybara.geo.json
-{
- "format_version": "1.12.0",
- "minecraft:geometry": [
- {
- "description": {
- "identifier": "geometry.unknown",
- "texture_width": 64,
- "texture_height": 64,
- "visible_bounds_width": 3,
- "visible_bounds_height": 2.5,
- "visible_bounds_offset": [0, 0.75, 0]
- },
- "bones": [
- {
- "name": "body",
- "pivot": [-1, 13, 3],
- "rotation": [90, 0, 0],
- "cubes": [
- {"origin": [-4.5, 7, -4], "size": [9, 16, 8], "uv": [0, 0]}
- ]
- },
- {
- "name": "head",
- "pivot": [0, 12, -7]
- },
- {
- "name": "bone",
- "parent": "head",
- "pivot": [-0.5, 12, -11.5],
- "rotation": [17.5, 0, 0],
- "cubes": [
- {"origin": [-3.5, 9, -15.5], "size": [7, 7, 11], "uv": [0, 25]},
- {"origin": [2.5, 16, -7.5], "size": [1, 1, 2], "uv": [0, 0]},
- {"origin": [-3.5, 16, -7.5], "size": [1, 1, 2], "uv": [0, 0]}
- ]
- },
- {
- "name": "bone2",
- "parent": "bone",
- "pivot": [6.75, 11.85, -6.25],
- "rotation": [-3.01437, 0.65335, -41.48194]
- },
- {
- "name": "bone3",
- "parent": "bone",
- "pivot": [0, 21.5, -8]
- },
- {
- "name": "leg1",
- "pivot": [-3, 6, 7],
- "cubes": [
- {"origin": [-4.5, 0, 5], "size": [4, 6, 4], "uv": [26, 24]}
- ]
- },
- {
- "name": "leg2",
- "pivot": [3, 6, 7],
- "mirror": true,
- "cubes": [
- {"origin": [0.5, 0, 5], "size": [4, 6, 4], "uv": [26, 24]}
- ]
- },
- {
- "name": "leg3",
- "pivot": [-3, 6, -5],
- "cubes": [
- {"origin": [-4.5, 0, -7], "size": [4, 6, 4], "uv": [26, 24]}
- ]
- },
- {
- "name": "leg4",
- "pivot": [3, 6, -5],
- "mirror": true,
- "cubes": [
- {"origin": [0.5, 0, -7], "size": [4, 6, 4], "uv": [26, 24]}
- ]
- }
- ]
- }
- ]
+{
+ "format_version": "1.12.0",
+ "minecraft:geometry": [
+ {
+ "description": {
+ "identifier": "geometry.unknown",
+ "texture_width": 64,
+ "texture_height": 64,
+ "visible_bounds_width": 3,
+ "visible_bounds_height": 2.5,
+ "visible_bounds_offset": [0, 0.75, 0]
+ },
+ "bones": [
+ {
+ "name": "body",
+ "pivot": [-1, 13, 3],
+ "rotation": [90, 0, 0],
+ "cubes": [
+ {"origin": [-5.25, 6.25, -4], "size": [10.75, 17.5, 8], "uv": [0, 0]}
+ ]
+ },
+ {
+ "name": "head",
+ "pivot": [0, 12, -7]
+ },
+ {
+ "name": "bone",
+ "parent": "head",
+ "pivot": [-0.5, 12, -11.5],
+ "rotation": [17.5, 0, 0],
+ "cubes": [
+ {"origin": [-3.5, 10, -15.5], "size": [7, 7, 11], "uv": [0, 25]},
+ {"origin": [1.5, 17, -7.5], "size": [2, 1, 2], "uv": [0, 3]},
+ {"origin": [-3.5, 17, -7.5], "size": [2, 1, 2], "uv": [0, 0]}
+ ]
+ },
+ {
+ "name": "bone2",
+ "parent": "bone",
+ "pivot": [6.75, 11.85, -6.25],
+ "rotation": [-3.01437, 0.65335, -41.48194]
+ },
+ {
+ "name": "bone3",
+ "parent": "bone",
+ "pivot": [0, 21.5, -8]
+ },
+ {
+ "name": "leg1",
+ "pivot": [-3, 6, 7],
+ "cubes": [
+ {"origin": [-4.5, 0, 5], "size": [4, 6, 4], "uv": [36, 35]}
+ ]
+ },
+ {
+ "name": "leg2",
+ "pivot": [3, 6, 7],
+ "mirror": true,
+ "cubes": [
+ {"origin": [0.5, 0, 5], "size": [4, 6, 4], "uv": [36, 10], "mirror": false}
+ ]
+ },
+ {
+ "name": "leg3",
+ "pivot": [-3, 6, -5],
+ "cubes": [
+ {"origin": [-4.5, 0, -7], "size": [4, 6, 4], "uv": [36, 0]}
+ ]
+ },
+ {
+ "name": "leg4",
+ "pivot": [3, 6, -5],
+ "mirror": true,
+ "cubes": [
+ {"origin": [0.5, 0, -7], "size": [4, 6, 4], "uv": [25, 25], "mirror": false}
+ ]
+ }
+ ]
+ }
+ ]
}
\ No newline at end of file
blob - 1f1e859464030296a7598c612467da8e52620cb7 (mode 644)
blob + /dev/null
Binary files src/main/resources/assets/capybaramod/textures/entity/capybara/capybara.png and /dev/null differ
blob - 1f1e859464030296a7598c612467da8e52620cb7
blob + 13c318d46cb7879be466e601143b0954c2f77dd7
Binary files src/main/resources/assets/capybaramod/textures/entity/capybara_texture.png and src/main/resources/assets/capybaramod/textures/entity/capybara_texture.png differ