diff --git a/.gitignore b/.gitignore index 5e80e0a..c14be0d 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,6 @@ addon.local.gradle.kts addon.late.local.gradle addon.late.local.gradle.kts layout.json + +# Generated D.TS files (rebuilt by gradle on every build) +src/main/resources/assets/npcgecko/api diff --git a/.gitmodules b/.gitmodules index d8252cb..52012b8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,7 @@ -[submodule "src/api"] - path = src/api - url = https://github.com/KAMKEEL/CustomNPC-Plus-API.git +[submodule "CustomNPC-Plus"] + path = CustomNPC-Plus + url = https://github.com/KAMKEEL/CustomNPC-Plus.git branch = dev +[submodule "GeckoLib"] + path = GeckoLib + url = https://github.com/Goodbird-git/Geckolib-Unofficial-1.7.10.git diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index a6b5f68..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1,3 +0,0 @@ -# Any Github changes require admin approval -/.github/** @GTNewHorizons/admin - diff --git a/CustomNPC-Plus b/CustomNPC-Plus new file mode 160000 index 0000000..81c2b86 --- /dev/null +++ b/CustomNPC-Plus @@ -0,0 +1 @@ +Subproject commit 81c2b860c60d357b2228b9ea81cf7d8f0cdf492c diff --git a/GeckoLib b/GeckoLib new file mode 160000 index 0000000..19da3e3 --- /dev/null +++ b/GeckoLib @@ -0,0 +1 @@ +Subproject commit 19da3e3fc07ce7fa6dcff0af62c8cb09f8bf12db diff --git a/build.gradle b/build.gradle index c14868b..dcec51b 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,30 @@ plugins { id 'com.gtnewhorizons.gtnhconvention' + id 'dts.typescript-generator' } +apply from: 'gradle.submodules.gradle' + version = "1.3" -group= "com.goodbird.npcgecko" +group = "com.goodbird.npcgecko" + +// ============================================================================ +// TypeScript Definition Generation Task +// Generates .d.ts files from Java API sources for scripting IDE support +// ============================================================================ +tasks.named("generateTypeScriptDefinitions").configure { + sourceDirectories = ['src/main/java'] + outputDirectory = "src/main/resources/assets/${project.property("modId")}/api" + apiPackages = ['com.goodbird.npcgecko.api'] as Set + cleanOutputFirst = true + patchesDirectory = "dts-patches" + implementationPackages = [ + 'com.goodbird.npcgecko.data', + 'com.goodbird.npcgecko.entity', + 'com.goodbird.npcgecko.tile', + 'com.goodbird.npcgecko.client' + ] as Set +} +processResources.dependsOn generateTypeScriptDefinitions +sourcesJar.dependsOn generateTypeScriptDefinitions diff --git a/debug.log b/debug.log deleted file mode 100644 index 06b228e..0000000 --- a/debug.log +++ /dev/null @@ -1,14 +0,0 @@ -[0514/203945.010:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0514/203945.039:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0514/203945.047:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0514/205447.662:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0514/205458.151:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0514/205458.162:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0514/205458.186:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0515/004913.901:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0515/004914.692:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0515/004914.711:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0515/004914.724:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0515/011427.812:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0515/011427.829:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. -[0515/011427.838:WARNING:dns_config_service_win.cc(668)] Failed to read DnsConfig. diff --git a/dependencies.gradle b/dependencies.gradle index 2b5dbd9..c6ca428 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -34,9 +34,9 @@ * For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph */ dependencies { - runtimeOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.5.4-GTNH:dev") + runtimeOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.8.74-GTNH:dev") runtimeOnlyNonPublishable("curse.maven:Nashorn-374413:2924946") - implementation rfg.deobf(name: "CustomNPC-Plus-1.10.2") - implementation name: "geckolib3-1.0.4-beta" + // CustomNPC+ and GeckoLib are managed as submodule dependencies + // See gradle.submodules.gradle for details } diff --git a/gradle.properties b/gradle.properties index 859aa9f..9d0a507 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,11 +3,16 @@ modName = CustomNPC-Plus-Gecko-Addon # This is a case-sensitive string to identify your mod. Convention is to use lower case. modId = npcgecko modGroup = com.goodbird.npcgecko -modVersion = 1.1 +modVersion = 1.3 gtnh.modules.codeStyle=true gtnh.modules.gitVersion=false +# JVM args for Gradle daemon - increase for faster builds +org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=1g +org.gradle.parallel=true +org.gradle.caching=true + # Whether to use modGroup as the maven publishing group. # Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods. useModGroupForPublishing = false diff --git a/gradle.submodules.gradle b/gradle.submodules.gradle new file mode 100644 index 0000000..e349681 --- /dev/null +++ b/gradle.submodules.gradle @@ -0,0 +1,111 @@ +// ============================================================================ +// Submodule Dependency Management +// ============================================================================ +// Manages CustomNPC+ and GeckoLib as git submodule dependencies. +// +// How it works: +// - Both mods are git submodules built automatically alongside this mod +// - Their dev JARs are referenced as devOnlyNonPublishable dependencies +// - This means: available at COMPILE + RUNTIME, but NOT in the output JAR +// - ./gradlew build -> builds CNPC+ & GeckoLib first, then clean addon-only JAR +// - ./gradlew runClient -> builds CNPC+ & GeckoLib first, then runs with all on classpath +// +// First-time setup: +// ./gradlew initSubmodules (clones/updates submodules recursively) +// ============================================================================ + +def isWindows = System.getProperty('os.name').toLowerCase().contains('windows') + +// Resolve the gradlew executable for a submodule directory +def gradlewFor = { File submoduleDir -> + if (isWindows) { + return new File(submoduleDir, 'gradlew.bat').absolutePath + } else { + return new File(submoduleDir, 'gradlew').absolutePath + } +} + +// Helper: find the dev JAR in a submodule's build output (resolved at execution time) +def findDevJar = { String submoduleDir -> + def libsDir = file("${submoduleDir}/build/libs") + if (!libsDir.exists()) return [] + return libsDir.listFiles()?.findAll { it.name.endsWith('-dev.jar') && !it.name.contains('-preshadow') } ?: [] +} + +// ---- Submodule Init Task ---- +tasks.register('initSubmodules', Exec) { + group = 'submodules' + description = 'Initialize and update all git submodules recursively' + commandLine 'git', 'submodule', 'update', '--init', '--recursive' +} + +// Helper: clean old dev JARs from a submodule's build/libs before rebuilding +// Prevents stale JARs from different versions accumulating on the classpath +def cleanDevJars = { String submoduleDir -> + def libsDir = file("${submoduleDir}/build/libs") + if (libsDir.exists()) { + libsDir.listFiles()?.each { if (it.name.endsWith('.jar')) it.delete() } + } +} + +// ---- Build CustomNPC+ ---- +// Uses -Pnomixin to avoid embedding Mixin into the JAR (UniMixins provides it at runtime) +tasks.register('buildCNPC', Exec) { + group = 'submodules' + description = 'Builds CustomNPC+ dev JAR from submodule source (no embedded Mixin)' + workingDir file('CustomNPC-Plus') + + doFirst { cleanDevJars('CustomNPC-Plus') } + + def gradlew = gradlewFor(file('CustomNPC-Plus')) + if (isWindows) { + commandLine 'cmd', '/c', gradlew, 'build', '-Pnomixin', '-x', 'test' + } else { + commandLine gradlew, 'build', '-Pnomixin', '-x', 'test' + } + + // Gradle up-to-date checking + inputs.dir file('CustomNPC-Plus/src') + outputs.dir file('CustomNPC-Plus/build/libs') +} + +// ---- Build GeckoLib ---- +tasks.register('buildGeckoLib', Exec) { + group = 'submodules' + description = 'Builds GeckoLib dev JAR from submodule source' + workingDir file('GeckoLib') + + doFirst { cleanDevJars('GeckoLib') } + + def gradlew = gradlewFor(file('GeckoLib')) + if (isWindows) { + commandLine 'cmd', '/c', gradlew, 'build', '-x', 'test' + } else { + commandLine gradlew, 'build', '-x', 'test' + } + + // Gradle up-to-date checking + inputs.dir file('GeckoLib/src') + outputs.dir file('GeckoLib/build/libs') +} + +// ---- Convenience: build all submodules ---- +tasks.register('buildSubmodules') { + group = 'submodules' + description = 'Builds all submodule dev JARs' + dependsOn 'buildCNPC', 'buildGeckoLib' +} + +// ---- Auto-build: submodules compile before this mod ---- +tasks.named('compileJava').configure { + dependsOn 'buildCNPC', 'buildGeckoLib' +} + +// ---- Dependency Declarations ---- +// devOnlyNonPublishable = compile + runtime, but NOT in output JAR and NOT published +// Dev JARs are already deobfuscated (MCP names), so no rfg.deobf() needed +// Using lazy file resolution so JARs are found AFTER submodule build tasks execute +dependencies { + devOnlyNonPublishable files({ findDevJar('CustomNPC-Plus') }) + devOnlyNonPublishable files({ findDevJar('GeckoLib') }) +} diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1af9e09..e2847c8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/lib/CustomNPC-Plus-1.10.2.jar b/lib/CustomNPC-Plus-1.10.2.jar deleted file mode 100644 index 9b10418..0000000 Binary files a/lib/CustomNPC-Plus-1.10.2.jar and /dev/null differ diff --git a/lib/geckolib3-1.0.4-beta.jar b/lib/geckolib3-1.0.4-beta.jar deleted file mode 100644 index 28616a9..0000000 Binary files a/lib/geckolib3-1.0.4-beta.jar and /dev/null differ diff --git a/repositories.gradle b/repositories.gradle index 0113c66..3d8e0fb 100644 --- a/repositories.gradle +++ b/repositories.gradle @@ -1,7 +1,5 @@ -// Add any additional repositories for your dependencies here +// Additional repositories for dependencies +// Submodule dependencies (CustomNPC+, GeckoLib) are managed via gradle.submodules.gradle repositories { - flatDir { - dirs 'lib' - } } diff --git a/settings.gradle b/settings.gradle index 1e614a5..308dbe2 100644 --- a/settings.gradle +++ b/settings.gradle @@ -10,6 +10,7 @@ pluginManagement { includeGroupByRegex("com\\.gtnewhorizons\\..+") } } + maven { url "https://jitpack.io" } gradlePluginPortal() mavenCentral() mavenLocal() @@ -17,5 +18,10 @@ pluginManagement { } plugins { - id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.15' + id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.27' +} + +// Include the D.TS generator plugin from CustomNPC+ submodule +if (file('CustomNPC-Plus/gradle-plugins/settings.gradle').exists()) { + includeBuild 'CustomNPC-Plus/gradle-plugins' } diff --git a/src/main/java/com/goodbird/npcgecko/CommonProxy.java b/src/main/java/com/goodbird/npcgecko/CommonProxy.java index 5e9f5d0..ff1bd03 100644 --- a/src/main/java/com/goodbird/npcgecko/CommonProxy.java +++ b/src/main/java/com/goodbird/npcgecko/CommonProxy.java @@ -12,22 +12,21 @@ import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.server.MinecraftServer; import net.minecraft.world.World; import noppes.npcs.scripted.NpcAPI; -import software.bernie.example.block.tile.BotariumTileEntity; public class CommonProxy { - public void preInit(FMLPreInitializationEvent ev){ + public void preInit(FMLPreInitializationEvent ev) { EntityRegistry.registerModEntity(EntityCustomModel.class, "CustomModelEntity", 0, CustomNpcPlusGecko.instance, 64, 10, false); NpcAPI.EVENT_BUS.register(new EventHandler()); } - public void init(FMLInitializationEvent ev){ + public void init(FMLInitializationEvent ev) { NetworkHandler.init(); GameRegistry.registerTileEntity(TileEntityCustomModel.class, "custommodeltile"); NpcAPI.Instance().addGlobalObject("GeckoAPI", AbstractGeckoAPI.Instance()); } - public World getWorldById(int id){ + public World getWorldById(int id) { return MinecraftServer.getServer().worldServers[id]; } } diff --git a/src/main/java/com/goodbird/npcgecko/CustomNpcPlusGecko.java b/src/main/java/com/goodbird/npcgecko/CustomNpcPlusGecko.java index 995a9e8..cd04e5e 100644 --- a/src/main/java/com/goodbird/npcgecko/CustomNpcPlusGecko.java +++ b/src/main/java/com/goodbird/npcgecko/CustomNpcPlusGecko.java @@ -21,6 +21,7 @@ public class CustomNpcPlusGecko { public void preInit(FMLPreInitializationEvent ev) { proxy.preInit(ev); } + @Mod.EventHandler public void init(FMLInitializationEvent ev) { proxy.init(ev); diff --git a/src/main/java/com/goodbird/npcgecko/api/AbstractGeckoAPI.java b/src/main/java/com/goodbird/npcgecko/api/AbstractGeckoAPI.java index 1344147..ac0ac7a 100644 --- a/src/main/java/com/goodbird/npcgecko/api/AbstractGeckoAPI.java +++ b/src/main/java/com/goodbird/npcgecko/api/AbstractGeckoAPI.java @@ -1,14 +1,11 @@ package com.goodbird.npcgecko.api; -import com.goodbird.npcgecko.data.CustomItemModelData; import cpw.mods.fml.common.Loader; import net.minecraft.entity.player.EntityPlayerMP; import noppes.npcs.api.block.IBlockScripted; import noppes.npcs.api.entity.ICustomNpc; import noppes.npcs.api.entity.IPlayer; import noppes.npcs.entity.EntityNPCInterface; -import noppes.npcs.scripted.item.ScriptCustomItem; -import software.bernie.geckolib3.core.builder.AnimationBuilder; public abstract class AbstractGeckoAPI { private static AbstractGeckoAPI instance = null; @@ -33,21 +30,202 @@ public abstract class AbstractGeckoAPI { } } - public abstract AnimationBuilder createAnimationBuilder(); + // ======================================================================== + // Animation Builder + // ======================================================================== + /** + * Create a new animation builder for constructing animation sequences. + * + * @return A new animation builder + */ + public abstract IGeckoAnimationBuilder createAnimBuilder(); + + /** + * Create a new animation builder for constructing animation sequences. + * + * @return A new animation builder + */ + public abstract IGeckoAnimationBuilder createAnimationBuilder(); + + // ======================================================================== + // Animatable Access + // ======================================================================== + + /** + * Get the animation configuration interface for an NPC. + * + * @param npc The NPC to get animation config for + * @return The animatable interface for this NPC + */ + public abstract IGeckoAnimatable getAnimatable(ICustomNpc npc); + + /** + * Get the animation configuration interface for a scripted block. + * + * @param scriptedBlock The block to get animation config for + * @return The animatable interface for this block + */ + public abstract IGeckoAnimatable getAnimatable(IBlockScripted scriptedBlock); + + // ======================================================================== + // Animation Queries + // ======================================================================== + + /** + * Get a list of all animation names in an animation file. + * + * @param animationFile The animation file resource location (e.g. "npcgecko:animations/geo_npc.animation.json") + * @return Array of animation names, or empty array if file not found + */ + public abstract String[] getAnimationList(String animationFile); + + /** + * Get a list of all loaded animation file resource locations. + * + * @return Array of animation file paths + */ + public abstract String[] getAnimationFileList(); + + /** + * Get animation metadata from a loaded animation file. + * + * @param animationFile The animation file resource location + * @param animationName The animation name within the file + * @return The animation metadata, or null if not found + */ + public abstract IGeckoAnimation getAnimation(String animationFile, String animationName); + + // ======================================================================== + // Color Utilities + // ======================================================================== + + /** + * Create a color from RGB components. + * + * @param r Red component (0-255) + * @param g Green component (0-255) + * @param b Blue component (0-255) + * @return A new color + */ + public abstract IGeckoColor colorOfRGB(int r, int g, int b); + + /** + * Create a color from RGBA components. + * + * @param r Red component (0-255) + * @param g Green component (0-255) + * @param b Blue component (0-255) + * @param a Alpha component (0-255) + * @return A new color + */ + public abstract IGeckoColor colorOfRGBA(int r, int g, int b, int a); + + // ======================================================================== + // NPC Methods + // ======================================================================== + + /** + * Set the geo model resource location for an NPC. + * + * @param npc The target NPC + * @param model The model path (e.g. "geckolib3:geo/npc.geo.json") + */ public abstract void setModel(ICustomNpc npc, String model); - public abstract void setTexture(ICustomNpc npc, String texture); - public abstract void setAnimationFile(ICustomNpc npc, String animation); - public abstract void setIdleAnimation(ICustomNpc npc, String animation); - public abstract void syncAnimForPlayer(ICustomNpc npc, AnimationBuilder builder, IPlayer player); - public abstract void syncAnimForAll(ICustomNpc npc, AnimationBuilder builder); + /** + * Set the texture resource location for an NPC. + * + * @param npc The target NPC + * @param texture The texture path + */ + public abstract void setTexture(ICustomNpc npc, String texture); + + /** + * Set the animation file resource location for an NPC. + * + * @param npc The target NPC + * @param animation The animation file path + */ + public abstract void setAnimationFile(ICustomNpc npc, String animation); + + /** + * Set the idle animation name for an NPC. + * + * @param npc The target NPC + * @param animation The animation name from the animation file + */ + public abstract void setIdleAnimation(ICustomNpc npc, String animation); + + /** + * Sync an animation to a specific player for an NPC. + * + * @param npc The NPC to play the animation on + * @param builder The animation builder with queued animations + * @param player The player to send the animation to + */ + public abstract void syncAnimForPlayer(ICustomNpc npc, IGeckoAnimationBuilder builder, IPlayer player); + + /** + * Sync an animation to all players for an NPC. + * + * @param npc The NPC to play the animation on + * @param builder The animation builder with queued animations + */ + public abstract void syncAnimForAll(ICustomNpc npc, IGeckoAnimationBuilder builder); + + // ======================================================================== + // Block Methods + // ======================================================================== + + /** + * Set the geo model resource location for a scripted block. + * + * @param scriptedBlock The target block + * @param model The model path + */ public abstract void setModel(IBlockScripted scriptedBlock, String model); + + /** + * Set the texture resource location for a scripted block. + * + * @param scriptedBlock The target block + * @param texture The texture path + */ public abstract void setTexture(IBlockScripted scriptedBlock, String texture); + + /** + * Set the animation file resource location for a scripted block. + * + * @param scriptedBlock The target block + * @param animation The animation file path + */ public abstract void setAnimationFile(IBlockScripted scriptedBlock, String animation); + + /** + * Set the idle animation name for a scripted block. + * + * @param scriptedBlock The target block + * @param animation The animation name from the animation file + */ public abstract void setIdleAnimation(IBlockScripted scriptedBlock, String animation); - public abstract void syncAnimForPlayer(IBlockScripted scriptedBlock, AnimationBuilder builder, IPlayer player); - public abstract void syncAnimForAll(IBlockScripted scriptedBlock, AnimationBuilder builder); + + /** + * Sync an animation to a specific player for a scripted block. + * + * @param scriptedBlock The block to play the animation on + * @param builder The animation builder with queued animations + * @param player The player to send the animation to + */ + public abstract void syncAnimForPlayer(IBlockScripted scriptedBlock, IGeckoAnimationBuilder builder, IPlayer player); + + /** + * Sync an animation to all players for a scripted block. + * + * @param scriptedBlock The block to play the animation on + * @param builder The animation builder with queued animations + */ + public abstract void syncAnimForAll(IBlockScripted scriptedBlock, IGeckoAnimationBuilder builder); // TODO: Fix ScriptCustomItem diff --git a/src/main/java/com/goodbird/npcgecko/api/GeckoAPI.java b/src/main/java/com/goodbird/npcgecko/api/GeckoAPI.java index 1e1e0b0..7c4f756 100644 --- a/src/main/java/com/goodbird/npcgecko/api/GeckoAPI.java +++ b/src/main/java/com/goodbird/npcgecko/api/GeckoAPI.java @@ -1,15 +1,11 @@ package com.goodbird.npcgecko.api; -import com.goodbird.npcgecko.client.renderer.RenderTileCustomModel; -import com.goodbird.npcgecko.data.CustomItemModelData; +import com.goodbird.npcgecko.wrapper.*; import com.goodbird.npcgecko.mixin.IDataDisplay; -import com.goodbird.npcgecko.mixin.IScriptCustomItem; import com.goodbird.npcgecko.network.CPacketSyncManualAnim; import com.goodbird.npcgecko.network.CPacketSyncTileManualAnim; import com.goodbird.npcgecko.network.NetworkHandler; import com.goodbird.npcgecko.tile.TileEntityCustomModel; -import cpw.mods.fml.common.FMLCommonHandler; -import cpw.mods.fml.relauncher.Side; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.util.ResourceLocation; import noppes.npcs.api.block.IBlockScripted; @@ -17,14 +13,17 @@ import noppes.npcs.api.entity.ICustomNpc; import noppes.npcs.api.entity.IPlayer; import noppes.npcs.blocks.tiles.TileScripted; import noppes.npcs.entity.EntityNPCInterface; -import noppes.npcs.scripted.BlockScriptedWrapper; -import noppes.npcs.scripted.item.ScriptCustomItem; +import software.bernie.geckolib3.core.builder.Animation; import software.bernie.geckolib3.core.builder.AnimationBuilder; +import software.bernie.geckolib3.core.util.Color; +import software.bernie.geckolib3.file.AnimationFile; +import software.bernie.geckolib3.resource.GeckoLibCache; public class GeckoAPI extends AbstractGeckoAPI { private static AbstractGeckoAPI Instance; - private GeckoAPI() {} + private GeckoAPI() { + } public static AbstractGeckoAPI Instance() { if (GeckoAPI.Instance == null) { @@ -33,14 +32,108 @@ public class GeckoAPI extends AbstractGeckoAPI { return Instance; } + // ======================================================================== + // Internal helper - unwrap IGeckoAnimationBuilder to GeckoLib AnimationBuilder + // ======================================================================== + + private static AnimationBuilder unwrap(IGeckoAnimationBuilder builder) { + return ((GeckoAnimationBuilderWrapper) builder).getBuilder(); + } + + // ======================================================================== + // Animation Builder + // ======================================================================== + @Override - public AnimationBuilder createAnimationBuilder() { - return new AnimationBuilder(); + public IGeckoAnimationBuilder createAnimBuilder() { + return new GeckoAnimationBuilderWrapper(new AnimationBuilder()); } + @Override + public IGeckoAnimationBuilder createAnimationBuilder() { + return createAnimBuilder(); + } + + // ======================================================================== + // Animatable Access + // ======================================================================== + + @Override + public IGeckoAnimatable getAnimatable(ICustomNpc npc) { + return new GeckoNpcAnimatable(npc); + } + + @Override + public IGeckoAnimatable getAnimatable(IBlockScripted scriptedBlock) { + TileEntityCustomModel tile = getOrCreateTECM(scriptedBlock); + return new GeckoBlockAnimatable(scriptedBlock, tile); + } + + // ======================================================================== + // Animation Queries + // ======================================================================== + + @Override + public String[] getAnimationList(String animationFile) { + AnimationFile file = GeckoLibCache.getInstance().getAnimations().get(new ResourceLocation(animationFile)); + if (file == null) { + return new String[0]; + } + java.util.Collection animations = file.getAllAnimations(); + String[] names = new String[animations.size()]; + int i = 0; + for (Animation anim : animations) { + names[i++] = anim.animationName; + } + return names; + } + + @Override + public String[] getAnimationFileList() { + java.util.Set keys = GeckoLibCache.getInstance().getAnimations().keySet(); + String[] result = new String[keys.size()]; + int i = 0; + for (ResourceLocation resLoc : keys) { + result[i++] = resLoc.toString(); + } + return result; + } + + @Override + public IGeckoAnimation getAnimation(String animationFile, String animationName) { + AnimationFile file = GeckoLibCache.getInstance().getAnimations().get(new ResourceLocation(animationFile)); + if (file == null) { + return null; + } + for (Animation anim : file.getAllAnimations()) { + if (anim.animationName.equals(animationName)) { + return new GeckoAnimationWrapper(anim); + } + } + return null; + } + + // ======================================================================== + // Color Utilities + // ======================================================================== + + @Override + public IGeckoColor colorOfRGB(int r, int g, int b) { + return new GeckoColorWrapper(Color.ofRGB(r, g, b)); + } + + @Override + public IGeckoColor colorOfRGBA(int r, int g, int b, int a) { + return new GeckoColorWrapper(Color.ofRGBA(r, g, b, a)); + } + + // ======================================================================== + // NPC Methods + // ======================================================================== + @Override public void setModel(ICustomNpc npc, String model) { - ((IDataDisplay)npc.getMCEntity().display).getCustomModelData().setModel(model); + ((IDataDisplay) npc.getMCEntity().display).getCustomModelData().setModel(model); npc.updateClient(); } @@ -52,31 +145,33 @@ public class GeckoAPI extends AbstractGeckoAPI { @Override public void setAnimationFile(ICustomNpc npc, String animation) { - ((IDataDisplay)npc.getMCEntity().display).getCustomModelData().setAnimFile(animation); + ((IDataDisplay) npc.getMCEntity().display).getCustomModelData().setAnimFile(animation); npc.updateClient(); } @Override public void setIdleAnimation(ICustomNpc npc, String animation) { - ((IDataDisplay)npc.getMCEntity().display).getCustomModelData().setIdleAnim(animation); + ((IDataDisplay) npc.getMCEntity().display).getCustomModelData().setIdleAnim(animation); npc.updateClient(); } @Override - public void syncAnimForPlayer(ICustomNpc npc, AnimationBuilder builder, IPlayer player) { - NetworkHandler.sendToPlayer(new CPacketSyncManualAnim(npc.getMCEntity(),builder), player.getMCEntity()); + public void syncAnimForPlayer(ICustomNpc npc, IGeckoAnimationBuilder builder, IPlayer player) { + NetworkHandler.sendToPlayer(new CPacketSyncManualAnim(npc.getMCEntity(), unwrap(builder)), player.getMCEntity()); } @Override - public void syncAnimForAll(ICustomNpc npc, AnimationBuilder builder) { - NetworkHandler.sendToAll(new CPacketSyncManualAnim(npc.getMCEntity(),builder)); + public void syncAnimForAll(ICustomNpc npc, IGeckoAnimationBuilder builder) { + NetworkHandler.sendToAll(new CPacketSyncManualAnim(npc.getMCEntity(), unwrap(builder))); } + // ======================================================================== + // Block Methods + // ======================================================================== - - private TileEntityCustomModel getOrCreateTECM(IBlockScripted scriptedBlock){ + private TileEntityCustomModel getOrCreateTECM(IBlockScripted scriptedBlock) { TileScripted tile = (TileScripted) scriptedBlock.getMCTileEntity(); - if(!(tile.renderTile instanceof TileEntityCustomModel)){ + if (!(tile.renderTile instanceof TileEntityCustomModel)) { tile.renderTile = new TileEntityCustomModel(tile); } return (TileEntityCustomModel) tile.renderTile; @@ -111,13 +206,13 @@ public class GeckoAPI extends AbstractGeckoAPI { } @Override - public void syncAnimForPlayer(IBlockScripted scriptedBlock, AnimationBuilder builder, IPlayer player) { - NetworkHandler.sendToPlayer(new CPacketSyncTileManualAnim(scriptedBlock.getMCTileEntity(), builder), player.getMCEntity()); + public void syncAnimForPlayer(IBlockScripted scriptedBlock, IGeckoAnimationBuilder builder, IPlayer player) { + NetworkHandler.sendToPlayer(new CPacketSyncTileManualAnim(scriptedBlock.getMCTileEntity(), unwrap(builder)), player.getMCEntity()); } @Override - public void syncAnimForAll(IBlockScripted scriptedBlock, AnimationBuilder builder) { - NetworkHandler.sendToAll(new CPacketSyncTileManualAnim(scriptedBlock.getMCTileEntity(), builder)); + public void syncAnimForAll(IBlockScripted scriptedBlock, IGeckoAnimationBuilder builder) { + NetworkHandler.sendToAll(new CPacketSyncTileManualAnim(scriptedBlock.getMCTileEntity(), unwrap(builder))); } // private CustomItemModelData getOrCreateCIMD(ScriptCustomItem item){ diff --git a/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimatable.java b/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimatable.java new file mode 100644 index 0000000..5d6239f --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimatable.java @@ -0,0 +1,151 @@ +package com.goodbird.npcgecko.api; + +/** + * Interface for accessing and modifying Gecko model configuration on NPCs and scripted blocks. + * Provides control over model, texture, animation files, and animation names for each state. + * + *

Obtain via {@link AbstractGeckoAPI#getAnimatable(noppes.npcs.api.entity.ICustomNpc)} + * or {@link AbstractGeckoAPI#getAnimatable(noppes.npcs.api.block.IBlockScripted)}.

+ */ +public interface IGeckoAnimatable { + + /** + * Get the geo model resource location. + * + * @return The model path (e.g. "geckolib3:geo/npc.geo.json") + */ + String getModel(); + + /** + * Set the geo model resource location. + * + * @param model The model path (e.g. "geckolib3:geo/npc.geo.json") + */ + void setModel(String model); + + /** + * Get the texture resource location. + * + * @return The texture path + */ + String getTexture(); + + /** + * Set the texture resource location. + * + * @param texture The texture path + */ + void setTexture(String texture); + + /** + * Get the animation file resource location. + * + * @return The animation file path (e.g. "npcgecko:animations/geo_npc.animation.json") + */ + String getAnimationFile(); + + /** + * Set the animation file resource location. + * + * @param animationFile The animation file path + */ + void setAnimationFile(String animationFile); + + /** + * Get the idle animation name. + * + * @return The idle animation name, or empty string if none + */ + String getIdleAnimation(); + + /** + * Set the idle animation name. + * + * @param animation The animation name from the animation file + */ + void setIdleAnimation(String animation); + + /** + * Get the walk animation name. + * + * @return The walk animation name, or empty string if none + */ + String getWalkAnimation(); + + /** + * Set the walk animation name. + * + * @param animation The animation name from the animation file + */ + void setWalkAnimation(String animation); + + /** + * Get the hurt animation name. + * + * @return The hurt animation name, or empty string if none + */ + String getHurtAnimation(); + + /** + * Set the hurt animation name. + * + * @param animation The animation name from the animation file + */ + void setHurtAnimation(String animation); + + /** + * Get the melee attack animation name. + * + * @return The melee attack animation name, or empty string if none + */ + String getMeleeAttackAnimation(); + + /** + * Set the melee attack animation name. + * + * @param animation The animation name from the animation file + */ + void setMeleeAttackAnimation(String animation); + + /** + * Get the ranged attack animation name. + * + * @return The ranged attack animation name, or empty string if none + */ + String getRangedAttackAnimation(); + + /** + * Set the ranged attack animation name. + * + * @param animation The animation name from the animation file + */ + void setRangedAttackAnimation(String animation); + + /** + * Get the bone name used for head tracking/rotation. + * + * @return The head bone name (default: "head") + */ + String getHeadBoneName(); + + /** + * Set the bone name used for head tracking/rotation. + * + * @param boneName The bone name in the model + */ + void setHeadBoneName(String boneName); + + /** + * Get the transition duration between animations in ticks. + * + * @return Transition length in ticks (default: 10) + */ + int getTransitionLengthTicks(); + + /** + * Set the transition duration between animations in ticks. + * + * @param ticks Transition length in ticks + */ + void setTransitionLengthTicks(int ticks); +} diff --git a/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimation.java b/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimation.java new file mode 100644 index 0000000..fa1fb67 --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimation.java @@ -0,0 +1,59 @@ +package com.goodbird.npcgecko.api; + +/** + * Interface for querying animation metadata from a loaded animation file. + * Provides read-only access to animation properties defined in Blockbench. + * + *

Obtain via {@link AbstractGeckoAPI#getAnimation(String, String)}.

+ */ +public interface IGeckoAnimation { + + /** + * Get the animation name as defined in the animation file. + * + * @return The animation name + */ + String getName(); + + /** + * Get the duration of this animation in seconds. + * + * @return The animation length in seconds + */ + double getLength(); + + /** + * Whether this animation loops by default. + * + * @return True if the animation loops + */ + boolean isLooping(); + + /** + * Get the names of all bones that have keyframes in this animation. + * + * @return Array of bone names with animation data + */ + String[] getAnimatedBoneNames(); + + /** + * Get the number of sound keyframes in this animation. + * + * @return The sound keyframe count + */ + int getSoundKeyframeCount(); + + /** + * Get the number of particle keyframes in this animation. + * + * @return The particle keyframe count + */ + int getParticleKeyframeCount(); + + /** + * Get the number of custom instruction keyframes in this animation. + * + * @return The custom instruction keyframe count + */ + int getCustomInstructionKeyframeCount(); +} diff --git a/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimationBuilder.java b/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimationBuilder.java new file mode 100644 index 0000000..69da84d --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/api/IGeckoAnimationBuilder.java @@ -0,0 +1,63 @@ +package com.goodbird.npcgecko.api; + +/** + * Builder interface for constructing animation sequences. + * Follows the builder pattern - all methods return the builder for chaining. + * + *

Example usage in scripts:

+ *
+ * var builder = GeckoAPI.Instance().createAnimationBuilder();
+ * builder.playOnce("attack").loop("idle");
+ * GeckoAPI.Instance().syncAnimForAll(npc, builder);
+ * 
+ */ +public interface IGeckoAnimationBuilder { + + /** + * Add an animation that plays once then moves to the next in queue. + * + * @param animationName The animation name matching the Blockbench file + * @return This builder for chaining + */ + IGeckoAnimationBuilder playOnce(String animationName); + + /** + * Add an animation that loops indefinitely until replaced. + * + * @param animationName The animation name matching the Blockbench file + * @return This builder for chaining + */ + IGeckoAnimationBuilder loop(String animationName); + + /** + * Add an animation that plays once and holds on the last frame. + * + * @param animationName The animation name matching the Blockbench file + * @return This builder for chaining + */ + IGeckoAnimationBuilder playAndHold(String animationName); + + /** + * Add an animation to the queue with default loop behavior from the animation file. + * + * @param animationName The animation name matching the Blockbench file + * @return This builder for chaining + */ + IGeckoAnimationBuilder addAnimation(String animationName); + + /** + * Add an animation to the queue repeated multiple times. + * + * @param animationName The animation name matching the Blockbench file + * @param timesToRepeat How many times to repeat the animation + * @return This builder for chaining + */ + IGeckoAnimationBuilder addRepeatingAnimation(String animationName, int timesToRepeat); + + /** + * Clear all animations currently in the builder. + * + * @return This builder for chaining + */ + IGeckoAnimationBuilder clearAnimations(); +} diff --git a/src/main/java/com/goodbird/npcgecko/api/IGeckoBone.java b/src/main/java/com/goodbird/npcgecko/api/IGeckoBone.java new file mode 100644 index 0000000..b88102f --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/api/IGeckoBone.java @@ -0,0 +1,188 @@ +package com.goodbird.npcgecko.api; + +/** + * Interface for querying and modifying bone transforms on a Gecko model at runtime. + * Bones represent individual parts of a model (e.g. "head", "left_arm", "held_item"). + * + *

Position values are relative offsets from the bone's rest position. + * Rotation values are in radians. Scale values are multipliers (1.0 = default).

+ */ +public interface IGeckoBone { + + /** + * Get the name of this bone as defined in the model file. + * + * @return The bone name + */ + String getName(); + + /** + * @return The X position offset + */ + float getPositionX(); + + /** + * @return The Y position offset + */ + float getPositionY(); + + /** + * @return The Z position offset + */ + float getPositionZ(); + + /** + * Set the X position offset. + * + * @param value The X position offset + */ + void setPositionX(float value); + + /** + * Set the Y position offset. + * + * @param value The Y position offset + */ + void setPositionY(float value); + + /** + * Set the Z position offset. + * + * @param value The Z position offset + */ + void setPositionZ(float value); + + /** + * @return The X rotation in radians + */ + float getRotationX(); + + /** + * @return The Y rotation in radians + */ + float getRotationY(); + + /** + * @return The Z rotation in radians + */ + float getRotationZ(); + + /** + * Set the X rotation in radians. + * + * @param value The X rotation in radians + */ + void setRotationX(float value); + + /** + * Set the Y rotation in radians. + * + * @param value The Y rotation in radians + */ + void setRotationY(float value); + + /** + * Set the Z rotation in radians. + * + * @param value The Z rotation in radians + */ + void setRotationZ(float value); + + /** + * @return The X scale multiplier + */ + float getScaleX(); + + /** + * @return The Y scale multiplier + */ + float getScaleY(); + + /** + * @return The Z scale multiplier + */ + float getScaleZ(); + + /** + * Set the X scale multiplier. + * + * @param value The X scale multiplier (1.0 = default) + */ + void setScaleX(float value); + + /** + * Set the Y scale multiplier. + * + * @param value The Y scale multiplier (1.0 = default) + */ + void setScaleY(float value); + + /** + * Set the Z scale multiplier. + * + * @param value The Z scale multiplier (1.0 = default) + */ + void setScaleZ(float value); + + /** + * @return The X pivot point + */ + float getPivotX(); + + /** + * @return The Y pivot point + */ + float getPivotY(); + + /** + * @return The Z pivot point + */ + float getPivotZ(); + + /** + * Set the X pivot point. + * + * @param value The X pivot point + */ + void setPivotX(float value); + + /** + * Set the Y pivot point. + * + * @param value The Y pivot point + */ + void setPivotY(float value); + + /** + * Set the Z pivot point. + * + * @param value The Z pivot point + */ + void setPivotZ(float value); + + /** + * @return Whether this bone is hidden from rendering + */ + boolean isHidden(); + + /** + * Set whether this bone is hidden from rendering. + * + * @param hidden True to hide this bone + */ + void setHidden(boolean hidden); + + /** + * Get the parent bone, or null if this is a root bone. + * + * @return The parent bone, or null + */ + IGeckoBone getParent(); + + /** + * Get the child bones of this bone. + * + * @return Array of child bones + */ + IGeckoBone[] getChildBones(); +} diff --git a/src/main/java/com/goodbird/npcgecko/api/IGeckoColor.java b/src/main/java/com/goodbird/npcgecko/api/IGeckoColor.java new file mode 100644 index 0000000..63b52fc --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/api/IGeckoColor.java @@ -0,0 +1,57 @@ +package com.goodbird.npcgecko.api; + +/** + * Interface for color manipulation. Provides access to RGBA color components + * and common color operations. + * + *

Create colors using the factory methods on {@link AbstractGeckoAPI}:

+ *
+ * var color = GeckoAPI.Instance().colorOfRGB(255, 0, 0); // Red
+ * var alpha = GeckoAPI.Instance().colorOfRGBA(255, 0, 0, 128); // Semi-transparent red
+ * 
+ */ +public interface IGeckoColor { + + /** + * Get the packed ARGB color value. + * + * @return The packed color as an integer + */ + int getColor(); + + /** + * @return The red component (0-255) + */ + int getRed(); + + /** + * @return The green component (0-255) + */ + int getGreen(); + + /** + * @return The blue component (0-255) + */ + int getBlue(); + + /** + * @return The alpha component (0-255) + */ + int getAlpha(); + + /** + * Create a brighter version of this color. + * + * @param factor How much brighter (0.0 = no change, 1.0 = white) + * @return A new brighter color + */ + IGeckoColor brighter(double factor); + + /** + * Create a darker version of this color. + * + * @param factor How much darker (0.0 = no change, 1.0 = black) + * @return A new darker color + */ + IGeckoColor darker(double factor); +} diff --git a/src/main/java/com/goodbird/npcgecko/api/IGeckoModel.java b/src/main/java/com/goodbird/npcgecko/api/IGeckoModel.java new file mode 100644 index 0000000..5640dfb --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/api/IGeckoModel.java @@ -0,0 +1,27 @@ +package com.goodbird.npcgecko.api; + +/** + * Read-only interface for querying the runtime state of a Gecko model. + * Allows scripts to inspect model bones and their current transforms. + * + *

This interface provides access to the model's bone hierarchy after + * animations have been applied, useful for attaching effects or + * querying positions of specific model parts.

+ */ +public interface IGeckoModel { + + /** + * Get a bone by name. + * + * @param name The bone name as defined in the model file + * @return The bone, or null if not found + */ + IGeckoBone getBone(String name); + + /** + * Get the names of all bones in this model. + * + * @return Array of bone names + */ + String[] getBoneNames(); +} diff --git a/src/main/java/com/goodbird/npcgecko/client/ClientProxy.java b/src/main/java/com/goodbird/npcgecko/client/ClientProxy.java index e622c12..71741c1 100644 --- a/src/main/java/com/goodbird/npcgecko/client/ClientProxy.java +++ b/src/main/java/com/goodbird/npcgecko/client/ClientProxy.java @@ -21,7 +21,7 @@ public class ClientProxy extends CommonProxy { ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCustomModel.class, new RenderTileCustomModel()); } - public World getWorldById(int id){ + public World getWorldById(int id) { return Minecraft.getMinecraft().theWorld; } } diff --git a/src/main/java/com/goodbird/npcgecko/client/gui/SubGuiModelAnimation.java b/src/main/java/com/goodbird/npcgecko/client/gui/SubGuiModelAnimation.java index 2f905a7..aaf7a76 100644 --- a/src/main/java/com/goodbird/npcgecko/client/gui/SubGuiModelAnimation.java +++ b/src/main/java/com/goodbird/npcgecko/client/gui/SubGuiModelAnimation.java @@ -5,12 +5,17 @@ import com.goodbird.npcgecko.mixin.IDataDisplay; import com.goodbird.npcgecko.utils.AnimationFileUtil; import net.minecraft.client.gui.GuiButton; import net.minecraft.util.ResourceLocation; -import noppes.npcs.client.gui.util.*; +import noppes.npcs.client.gui.util.GuiNpcButton; +import noppes.npcs.client.gui.util.GuiNpcLabel; +import noppes.npcs.client.gui.util.GuiNpcTextField; +import noppes.npcs.client.gui.util.ISubGuiListener; +import noppes.npcs.client.gui.util.ITextfieldListener; +import noppes.npcs.client.gui.util.SubGuiInterface; import noppes.npcs.entity.EntityNPCInterface; import software.bernie.geckolib3.resource.GeckoLibCache; public class SubGuiModelAnimation extends SubGuiInterface implements ITextfieldListener, ISubGuiListener { - public SubGuiModelAnimation(EntityNPCInterface npc){ + public SubGuiModelAnimation(EntityNPCInterface npc) { this.npc = npc; closeOnEsc = true; } @@ -19,92 +24,92 @@ public class SubGuiModelAnimation extends SubGuiInterface implements ITextfieldL public void initGui() { super.initGui(); int y = guiTop + 44; - addSelectionBlock(1,y,"Animation File:",getModelData(npc).getAnimFile()); - addSelectionBlock(2,y+=23,"Idle:",getModelData(npc).getIdleAnim()); - addSelectionBlock(3,y+=23,"Walk:",getModelData(npc).getWalkAnim()); - addSelectionBlock(4,y+=23,"Melee Attack:",getModelData(npc).getMeleeAttackAnim()); - addSelectionBlock(5,y+=23,"Ranged Attack:",getModelData(npc).getRangedAttackAnim()); - addSelectionBlock(6,y+23,"Hurt:",getModelData(npc).getHurtAnim()); + addSelectionBlock(1, y, "Animation File:", getModelData(npc).getAnimFile()); + addSelectionBlock(2, y += 23, "Idle:", getModelData(npc).getIdleAnim()); + addSelectionBlock(3, y += 23, "Walk:", getModelData(npc).getWalkAnim()); + addSelectionBlock(4, y += 23, "Melee Attack:", getModelData(npc).getMeleeAttackAnim()); + addSelectionBlock(5, y += 23, "Ranged Attack:", getModelData(npc).getRangedAttackAnim()); + addSelectionBlock(6, y + 23, "Hurt:", getModelData(npc).getHurtAnim()); addButton(new GuiNpcButton(670, width - 22, 2, 20, 20, "X")); } - public void addSelectionBlock(int id, int y, String label, String value){ - addLabel(new GuiNpcLabel(id,label, guiLeft - 85, y + 5,0xffffff)); - addTextField(new GuiNpcTextField(id,this, fontRendererObj, guiLeft - 10, y, 200, 20, value)); + public void addSelectionBlock(int id, int y, String label, String value) { + addLabel(new GuiNpcLabel(id, label, guiLeft - 85, y + 5, 0xffffff)); + addTextField(new GuiNpcTextField(id, this, fontRendererObj, guiLeft - 10, y, 200, 20, value)); this.addButton(new GuiNpcButton(id, guiLeft + 193, y, 80, 20, "gui.select")); } - public CustomModelData getModelData(EntityNPCInterface npc){ - return ((IDataDisplay)npc.display).getCustomModelData(); + public CustomModelData getModelData(EntityNPCInterface npc) { + return ((IDataDisplay) npc.display).getCustomModelData(); } @Override protected void actionPerformed(GuiButton button) { super.actionPerformed(button); - if(button.id == 670){ + if (button.id == 670) { close(); } - if(button.id==1){ - setSubGui(new GuiStringSelection(this,"Selecting geckolib animation file:", - AnimationFileUtil.getAnimationFileList(), (name)-> getModelData(npc).setAnimFile(name))); + if (button.id == 1) { + setSubGui(new GuiStringSelection(this, "Selecting geckolib animation file:", + AnimationFileUtil.getAnimationFileList(), (name) -> getModelData(npc).setAnimFile(name))); } - if(button.id==2){ - setSubGui(new GuiStringSelection(this,"Selecting geckolib idle animation:", + if (button.id == 2) { + setSubGui(new GuiStringSelection(this, "Selecting geckolib idle animation:", AnimationFileUtil.getAnimationList(getModelData(npc).getAnimFile()), - (name)-> getModelData(npc).setIdleAnim(name))); + (name) -> getModelData(npc).setIdleAnim(name))); } - if(button.id==3){ - setSubGui(new GuiStringSelection(this,"Selecting geckolib walk animation:", + if (button.id == 3) { + setSubGui(new GuiStringSelection(this, "Selecting geckolib walk animation:", AnimationFileUtil.getAnimationList(getModelData(npc).getAnimFile()), - (name)-> getModelData(npc).setWalkAnim(name))); + (name) -> getModelData(npc).setWalkAnim(name))); } - if(button.id==4){ - setSubGui(new GuiStringSelection(this,"Selecting geckolib melee attack animation:", + if (button.id == 4) { + setSubGui(new GuiStringSelection(this, "Selecting geckolib melee attack animation:", AnimationFileUtil.getAnimationList(getModelData(npc).getAnimFile()), - (name)-> getModelData(npc).setMeleeAttackAnim(name))); + (name) -> getModelData(npc).setMeleeAttackAnim(name))); } - if(button.id==5){ - setSubGui(new GuiStringSelection(this,"Selecting geckolib ranged attack animation:", + if (button.id == 5) { + setSubGui(new GuiStringSelection(this, "Selecting geckolib ranged attack animation:", AnimationFileUtil.getAnimationList(getModelData(npc).getAnimFile()), - (name)-> getModelData(npc).setRangedAttackAnim(name))); + (name) -> getModelData(npc).setRangedAttackAnim(name))); } - if(button.id==6){ - setSubGui(new GuiStringSelection(this,"Selecting geckolib hurt animation:", + if (button.id == 6) { + setSubGui(new GuiStringSelection(this, "Selecting geckolib hurt animation:", AnimationFileUtil.getAnimationList(getModelData(npc).getAnimFile()), - (name)-> getModelData(npc).setHurtAnim(name))); + (name) -> getModelData(npc).setHurtAnim(name))); } } - public boolean isValidAnimFile(String name){ + public boolean isValidAnimFile(String name) { return GeckoLibCache.getInstance().getAnimations().containsKey(new ResourceLocation(name)); } - public boolean isValidAnimation(String name){ + public boolean isValidAnimation(String name) { return AnimationFileUtil.getAnimationList(getModelData(npc).getAnimFile()).contains(name); } @Override public void unFocused(GuiNpcTextField textfield) { - if(textfield.id == 1 && isValidAnimFile(textfield.getText())){ - if(!textfield.isEmpty()) + if (textfield.id == 1 && isValidAnimFile(textfield.getText())) { + if (!textfield.isEmpty()) getModelData(npc).setAnimFile(textfield.getText()); else textfield.setText(getModelData(npc).getAnimFile()); } - if(textfield.id == 2 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())){ + if (textfield.id == 2 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())) { getModelData(npc).setIdleAnim(textfield.getText()); } - if(textfield.id == 3 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())){ + if (textfield.id == 3 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())) { getModelData(npc).setWalkAnim(textfield.getText()); } - if(textfield.id == 4 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())){ + if (textfield.id == 4 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())) { getModelData(npc).setMeleeAttackAnim(textfield.getText()); } - if(textfield.id == 5 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())){ + if (textfield.id == 5 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())) { getModelData(npc).setRangedAttackAnim(textfield.getText()); } - if(textfield.id == 6 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())){ + if (textfield.id == 6 && (isValidAnimation(textfield.getText()) || textfield.getText().isEmpty())) { getModelData(npc).setHurtAnim(textfield.getText()); } } diff --git a/src/main/java/com/goodbird/npcgecko/client/gui/SubGuiModelExtras.java b/src/main/java/com/goodbird/npcgecko/client/gui/SubGuiModelExtras.java index 0fa54dc..080a843 100644 --- a/src/main/java/com/goodbird/npcgecko/client/gui/SubGuiModelExtras.java +++ b/src/main/java/com/goodbird/npcgecko/client/gui/SubGuiModelExtras.java @@ -3,11 +3,16 @@ package com.goodbird.npcgecko.client.gui; import com.goodbird.npcgecko.data.CustomModelData; import com.goodbird.npcgecko.mixin.IDataDisplay; import net.minecraft.client.gui.GuiButton; -import noppes.npcs.client.gui.util.*; +import noppes.npcs.client.gui.util.GuiNpcButton; +import noppes.npcs.client.gui.util.GuiNpcLabel; +import noppes.npcs.client.gui.util.GuiNpcTextField; +import noppes.npcs.client.gui.util.ISubGuiListener; +import noppes.npcs.client.gui.util.ITextfieldListener; +import noppes.npcs.client.gui.util.SubGuiInterface; import noppes.npcs.entity.EntityNPCInterface; public class SubGuiModelExtras extends SubGuiInterface implements ITextfieldListener, ISubGuiListener { - public SubGuiModelExtras(EntityNPCInterface npc){ + public SubGuiModelExtras(EntityNPCInterface npc) { this.npc = npc; closeOnEsc = true; } @@ -16,36 +21,36 @@ public class SubGuiModelExtras extends SubGuiInterface implements ITextfieldList public void initGui() { super.initGui(); int y = guiTop + 44; - addLabel(new GuiNpcLabel(1,"Head Bone Name", guiLeft - 85, y + 5,0xffffff)); - addTextField(new GuiNpcTextField(1,this, fontRendererObj, guiLeft + 50, y, 200, 20, getModelData(npc).getHeadBoneName())); - y+=23; - addLabel(new GuiNpcLabel(2,"Transition Length (ticks)", guiLeft - 85, y + 5,0xffffff)); - GuiNpcTextField transitionLength = new GuiNpcTextField(2,this, fontRendererObj, guiLeft + 50, y, - 200, 20, ""+getModelData(npc).getTransitionLengthTicks()); + addLabel(new GuiNpcLabel(1, "Head Bone Name", guiLeft - 85, y + 5, 0xffffff)); + addTextField(new GuiNpcTextField(1, this, fontRendererObj, guiLeft + 50, y, 200, 20, getModelData(npc).getHeadBoneName())); + y += 23; + addLabel(new GuiNpcLabel(2, "Transition Length (ticks)", guiLeft - 85, y + 5, 0xffffff)); + GuiNpcTextField transitionLength = new GuiNpcTextField(2, this, fontRendererObj, guiLeft + 50, y, + 200, 20, "" + getModelData(npc).getTransitionLengthTicks()); transitionLength.setIntegersOnly(); transitionLength.setMinMaxDefault(0, Integer.MAX_VALUE, getModelData(npc).getTransitionLengthTicks()); addTextField(transitionLength); addButton(new GuiNpcButton(670, width - 22, 2, 20, 20, "X")); } - public CustomModelData getModelData(EntityNPCInterface npc){ - return ((IDataDisplay)npc.display).getCustomModelData(); + public CustomModelData getModelData(EntityNPCInterface npc) { + return ((IDataDisplay) npc.display).getCustomModelData(); } @Override protected void actionPerformed(GuiButton button) { super.actionPerformed(button); - if(button.id == 670){ + if (button.id == 670) { close(); } } @Override public void unFocused(GuiNpcTextField textfield) { - if(textfield.id == 1){ + if (textfield.id == 1) { getModelData(npc).setHeadBoneName(textfield.getText()); } - if(textfield.id == 2){ + if (textfield.id == 2) { getModelData(npc).setTransitionLengthTicks(textfield.getInteger()); } } diff --git a/src/main/java/com/goodbird/npcgecko/client/model/ModelCustom.java b/src/main/java/com/goodbird/npcgecko/client/model/ModelCustom.java index 482c529..87a35a2 100644 --- a/src/main/java/com/goodbird/npcgecko/client/model/ModelCustom.java +++ b/src/main/java/com/goodbird/npcgecko/client/model/ModelCustom.java @@ -11,40 +11,40 @@ import software.bernie.geckolib3.resource.GeckoLibCache; public class ModelCustom extends AnimatedGeoModel { @Override public ResourceLocation getAnimationFileLocation(EntityCustomModel entity) { - if(!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)){ - return new ResourceLocation("npcgecko","animations/none.animations.json"); + if (!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)) { + return new ResourceLocation("npcgecko", "animations/none.animations.json"); } return entity.animResLoc; } @Override public ResourceLocation getModelLocation(EntityCustomModel entity) { - if(!GeckoLibCache.getInstance().getGeoModels().containsKey(entity.modelResLoc)){ - return new ResourceLocation("npcgecko","geo/modelnotfound.geo.json"); + if (!GeckoLibCache.getInstance().getGeoModels().containsKey(entity.modelResLoc)) { + return new ResourceLocation("npcgecko", "geo/modelnotfound.geo.json"); } - if(!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)){ - return new ResourceLocation("npcgecko","geo/animfilenotfound.geo.json"); + if (!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)) { + return new ResourceLocation("npcgecko", "geo/animfilenotfound.geo.json"); } return entity.modelResLoc; } @Override public ResourceLocation getTextureLocation(EntityCustomModel entity) { - if(!GeckoLibCache.getInstance().getGeoModels().containsKey(entity.modelResLoc)){ - return new ResourceLocation("npcgecko","textures/model/alphabet.png"); + if (!GeckoLibCache.getInstance().getGeoModels().containsKey(entity.modelResLoc)) { + return new ResourceLocation("npcgecko", "textures/model/alphabet.png"); } - if(!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)){ - return new ResourceLocation("npcgecko","textures/model/alphabet.png"); + if (!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)) { + return new ResourceLocation("npcgecko", "textures/model/alphabet.png"); } return entity.textureResLoc; } - @SuppressWarnings({ "rawtypes", "unchecked" }) + @SuppressWarnings({"rawtypes", "unchecked"}) @Override public void setLivingAnimations(EntityCustomModel entity, Integer uniqueID, AnimationEvent animationEvent) { super.setLivingAnimations(entity, uniqueID, animationEvent); //We call the super-function IBone head = this.getAnimationProcessor().getBone(entity.headBoneName); //Then we take the head bone - if(head!=null) { + if (head != null) { //We get the model data for an entity EntityModelData extraData = (EntityModelData) animationEvent.getExtraDataOfType(EntityModelData.class).get(0); //And we set the head bone rotation to the interpolated pitch and yaw rotations of an entity diff --git a/src/main/java/com/goodbird/npcgecko/client/model/TileModelCustom.java b/src/main/java/com/goodbird/npcgecko/client/model/TileModelCustom.java index e695611..49133c3 100644 --- a/src/main/java/com/goodbird/npcgecko/client/model/TileModelCustom.java +++ b/src/main/java/com/goodbird/npcgecko/client/model/TileModelCustom.java @@ -8,30 +8,30 @@ import software.bernie.geckolib3.resource.GeckoLibCache; public class TileModelCustom extends AnimatedGeoModel { @Override public ResourceLocation getAnimationFileLocation(TileEntityCustomModel entity) { - if(!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)){ - return new ResourceLocation("npcgecko","animations/none.animations.json"); + if (!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)) { + return new ResourceLocation("npcgecko", "animations/none.animations.json"); } return entity.animResLoc; } @Override public ResourceLocation getModelLocation(TileEntityCustomModel animatable) { - if(!GeckoLibCache.getInstance().getGeoModels().containsKey(animatable.modelResLoc)){ - return new ResourceLocation("npcgecko","geo/modelnotfound.geo.json"); + if (!GeckoLibCache.getInstance().getGeoModels().containsKey(animatable.modelResLoc)) { + return new ResourceLocation("npcgecko", "geo/modelnotfound.geo.json"); } - if(!GeckoLibCache.getInstance().getAnimations().containsKey(animatable.animResLoc)){ - return new ResourceLocation("npcgecko","geo/animfilenotfound.geo.json"); + if (!GeckoLibCache.getInstance().getAnimations().containsKey(animatable.animResLoc)) { + return new ResourceLocation("npcgecko", "geo/animfilenotfound.geo.json"); } return animatable.modelResLoc; } @Override public ResourceLocation getTextureLocation(TileEntityCustomModel entity) { - if(!GeckoLibCache.getInstance().getGeoModels().containsKey(entity.modelResLoc)){ - return new ResourceLocation("npcgecko","textures/model/alphabet.png"); + if (!GeckoLibCache.getInstance().getGeoModels().containsKey(entity.modelResLoc)) { + return new ResourceLocation("npcgecko", "textures/model/alphabet.png"); } - if(!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)){ - return new ResourceLocation("npcgecko","textures/model/alphabet.png"); + if (!GeckoLibCache.getInstance().getAnimations().containsKey(entity.animResLoc)) { + return new ResourceLocation("npcgecko", "textures/model/alphabet.png"); } return entity.textureResLoc; } diff --git a/src/main/java/com/goodbird/npcgecko/client/renderer/RenderCustomModel.java b/src/main/java/com/goodbird/npcgecko/client/renderer/RenderCustomModel.java index 29008ae..1bd9928 100644 --- a/src/main/java/com/goodbird/npcgecko/client/renderer/RenderCustomModel.java +++ b/src/main/java/com/goodbird/npcgecko/client/renderer/RenderCustomModel.java @@ -22,6 +22,7 @@ public class RenderCustomModel extends GeoEntityRenderer { public RenderCustomModel() { super(new ModelCustom()); } + public void renderAfter(GeoModel model, EntityCustomModel animatable, float ticks, float red, float green, float blue, float alpha) { super.renderAfter(model, animatable, ticks, red, green, blue, alpha); if (model.getBone("held_item").isPresent() && animatable.getHeldItem() != null) { @@ -39,7 +40,7 @@ public class RenderCustomModel extends GeoEntityRenderer { GlStateManager.rotate(-180, 0.0F, 1.0F, 0.0F); } if (entityLiving.deathTime > 0) { - float f = ((float)entityLiving.deathTime + partialTicks - 1.0F) / 20.0F * 1.6F; + float f = ((float) entityLiving.deathTime + partialTicks - 1.0F) / 20.0F * 1.6F; f = net.minecraft.util.MathHelper.sqrt_float(f); if (f > 1.0F) { f = 1.0F; @@ -56,7 +57,7 @@ public class RenderCustomModel extends GeoEntityRenderer { public GeoBone[] getPathFromRoot(GeoBone bone) { ArrayList bones; - for(bones = new ArrayList<>(); bone != null; bone = bone.parent) { + for (bones = new ArrayList<>(); bone != null; bone = bone.parent) { bones.add(0, bone); } @@ -108,30 +109,30 @@ public class RenderCustomModel extends GeoEntityRenderer { } public Color getRenderColor(EntityCustomModel animatable, float partialTicks) { - if(animatable.hurtTime>0 || animatable.deathTime > 0){ - if(animatable.tintData!=null && animatable.tintData.isTintEnabled() && animatable.tintData.isHurtTintEnabled()){ + if (animatable.hurtTime > 0 || animatable.deathTime > 0) { + if (animatable.tintData != null && animatable.tintData.isTintEnabled() && animatable.tintData.isHurtTintEnabled()) { int hurtTint = animatable.tintData.getHurtTint(); - int r = (int) ((float)(hurtTint >> 16 & 255)); - int g = (int) ((float)(hurtTint >> 8 & 255)); - int b = (int) ((float)(hurtTint & 255)); - return Color.ofRGBA(r,g,b, 255); + int r = (int) ((float) (hurtTint >> 16 & 255)); + int g = (int) ((float) (hurtTint >> 8 & 255)); + int b = (int) ((float) (hurtTint & 255)); + return Color.ofRGBA(r, g, b, 255); } return Color.ofRGBA(255, 153, 153, 255); - }else{ + } else { int r = 255; int g = 255; int b = 255; - if(animatable.tintData!=null && animatable.tintData.isTintEnabled() && animatable.tintData.isGeneralTintEnabled()){ + if (animatable.tintData != null && animatable.tintData.isTintEnabled() && animatable.tintData.isGeneralTintEnabled()) { int hurtTint = animatable.tintData.getGeneralTint(); - int tintR = (int) ((float)(hurtTint >> 16 & 255)); - int tintG = (int) ((float)(hurtTint >> 8 & 255)); - int tintB = (int) ((float)(hurtTint & 255)); - double alpha = ((double)animatable.tintData.getGeneralAlpha() / 100.0); - r = (int) (alpha*tintR + r*(1-alpha)); - g = (int) (alpha*tintG + g*(1-alpha)); - b = (int) (alpha*tintB + b*(1-alpha)); + int tintR = (int) ((float) (hurtTint >> 16 & 255)); + int tintG = (int) ((float) (hurtTint >> 8 & 255)); + int tintB = (int) ((float) (hurtTint & 255)); + double alpha = ((double) animatable.tintData.getGeneralAlpha() / 100.0); + r = (int) (alpha * tintR + r * (1 - alpha)); + g = (int) (alpha * tintG + g * (1 - alpha)); + b = (int) (alpha * tintB + b * (1 - alpha)); } - if(animatable.isSemiVisible){ + if (animatable.isSemiVisible) { return Color.ofRGBA(r, g, b, 100); } return Color.ofRGBA(r, g, b, 255); @@ -143,7 +144,7 @@ public class RenderCustomModel extends GeoEntityRenderer { } @Override - protected ResourceLocation getEntityTexture(Entity p_110775_1_) { + public ResourceLocation getEntityTexture(Entity p_110775_1_) { return super.getTextureLocation((EntityCustomModel) p_110775_1_); } } diff --git a/src/main/java/com/goodbird/npcgecko/client/renderer/RenderTileCustomModel.java b/src/main/java/com/goodbird/npcgecko/client/renderer/RenderTileCustomModel.java index db86d35..e2b23d1 100644 --- a/src/main/java/com/goodbird/npcgecko/client/renderer/RenderTileCustomModel.java +++ b/src/main/java/com/goodbird/npcgecko/client/renderer/RenderTileCustomModel.java @@ -3,7 +3,6 @@ package com.goodbird.npcgecko.client.renderer; import com.goodbird.npcgecko.client.model.TileModelCustom; import com.goodbird.npcgecko.tile.TileEntityCustomModel; import net.minecraft.tileentity.TileEntity; -import software.bernie.example.client.model.tile.BotariumModel; import software.bernie.geckolib3.renderers.geo.GeoBlockRenderer; public class RenderTileCustomModel extends GeoBlockRenderer { diff --git a/src/main/java/com/goodbird/npcgecko/data/CustomItemModelData.java b/src/main/java/com/goodbird/npcgecko/data/CustomItemModelData.java index 163cd84..42ee911 100644 --- a/src/main/java/com/goodbird/npcgecko/data/CustomItemModelData.java +++ b/src/main/java/com/goodbird/npcgecko/data/CustomItemModelData.java @@ -22,12 +22,12 @@ public class CustomItemModelData { } public void readFromNBT(NBTTagCompound nbttagcompound) { - if(nbttagcompound.hasKey("Model")) { + if (nbttagcompound.hasKey("Model")) { model = nbttagcompound.getString("Model"); animFile = nbttagcompound.getString("AnimFile"); idleAnim = nbttagcompound.getString("IdleAnim"); texture = nbttagcompound.getString("Texture"); - if(nbttagcompound.hasKey("TransitionLengthTicks")){ + if (nbttagcompound.hasKey("TransitionLengthTicks")) { transitionLengthTicks = nbttagcompound.getInteger("TransitionLengthTicks"); } } diff --git a/src/main/java/com/goodbird/npcgecko/data/CustomModelData.java b/src/main/java/com/goodbird/npcgecko/data/CustomModelData.java index 0e2689e..bc4fef8 100644 --- a/src/main/java/com/goodbird/npcgecko/data/CustomModelData.java +++ b/src/main/java/com/goodbird/npcgecko/data/CustomModelData.java @@ -12,6 +12,7 @@ public class CustomModelData { private String rangedAttackAnim = ""; private String headBoneName = "head"; private int transitionLengthTicks = 10; + public NBTTagCompound writeToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setString("Model", model); nbttagcompound.setString("AnimFile", animFile); @@ -26,7 +27,7 @@ public class CustomModelData { } public void readFromNBT(NBTTagCompound nbttagcompound) { - if(nbttagcompound.hasKey("Model")) { + if (nbttagcompound.hasKey("Model")) { model = nbttagcompound.getString("Model"); animFile = nbttagcompound.getString("AnimFile"); idleAnim = nbttagcompound.getString("IdleAnim"); @@ -35,7 +36,7 @@ public class CustomModelData { meleeAttackAnim = nbttagcompound.getString("MeleeAttackAnim"); rangedAttackAnim = nbttagcompound.getString("RangedAttackAnim"); headBoneName = nbttagcompound.getString("HeadBoneName"); - if(nbttagcompound.hasKey("TransitionLengthTicks")){ + if (nbttagcompound.hasKey("TransitionLengthTicks")) { transitionLengthTicks = nbttagcompound.getInteger("TransitionLengthTicks"); } } diff --git a/src/main/java/com/goodbird/npcgecko/entity/EntityCustomModel.java b/src/main/java/com/goodbird/npcgecko/entity/EntityCustomModel.java index 7f1fa87..0bcc845 100644 --- a/src/main/java/com/goodbird/npcgecko/entity/EntityCustomModel.java +++ b/src/main/java/com/goodbird/npcgecko/entity/EntityCustomModel.java @@ -2,8 +2,6 @@ package com.goodbird.npcgecko.entity; import com.goodbird.npcgecko.constants.EnumSyncAutoAnim; import net.minecraft.entity.EntityCreature; -import net.minecraft.entity.ai.EntityAIWatchClosest; -import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; @@ -97,15 +95,16 @@ public class EntityCustomModel extends EntityCreature implements IAnimatable, IA public void setDialogAnim(String name) { dialogAnim = new AnimationBuilder().playOnce(name); } + public void activateReceivedAnim(EnumSyncAutoAnim type) { - if(type == EnumSyncAutoAnim.HURT){ - if(!hurtAnimName.isEmpty()) + if (type == EnumSyncAutoAnim.HURT) { + if (!hurtAnimName.isEmpty()) hurtAnim = new AnimationBuilder().playOnce(hurtAnimName); - }else if(type == EnumSyncAutoAnim.MELEE_ATTACK){ - if(!meleeAttackAnimName.isEmpty()) + } else if (type == EnumSyncAutoAnim.MELEE_ATTACK) { + if (!meleeAttackAnimName.isEmpty()) attackAnim = new AnimationBuilder().playOnce(meleeAttackAnimName); - }else if(type == EnumSyncAutoAnim.RANGED_ATTACK){ - if(!rangedAttackAnimName.isEmpty()) + } else if (type == EnumSyncAutoAnim.RANGED_ATTACK) { + if (!rangedAttackAnimName.isEmpty()) attackAnim = new AnimationBuilder().playOnce(rangedAttackAnimName); } } diff --git a/src/main/java/com/goodbird/npcgecko/handler/EventHandler.java b/src/main/java/com/goodbird/npcgecko/handler/EventHandler.java index 119baab..65aba2f 100644 --- a/src/main/java/com/goodbird/npcgecko/handler/EventHandler.java +++ b/src/main/java/com/goodbird/npcgecko/handler/EventHandler.java @@ -9,20 +9,20 @@ import noppes.npcs.scripted.event.NpcEvent; public class EventHandler { @SubscribeEvent - public void onNpcMeleeAttack(NpcEvent.SwingEvent event){ - if(event != null && event.npc != null && event.npc.getMCEntity() != null) + public void onNpcMeleeAttack(NpcEvent.SwingEvent event) { + if (event != null && event.npc != null && event.npc.getMCEntity() != null) NetworkHandler.sendToAll(new CPacketSyncAutoAnim((EntityNPCInterface) event.npc.getMCEntity(), EnumSyncAutoAnim.MELEE_ATTACK)); } @SubscribeEvent - public void onNpcRanged(NpcEvent.RangedLaunchedEvent event){ - if(event != null && event.npc != null && event.npc.getMCEntity() != null) + public void onNpcRanged(NpcEvent.RangedLaunchedEvent event) { + if (event != null && event.npc != null && event.npc.getMCEntity() != null) NetworkHandler.sendToAll(new CPacketSyncAutoAnim((EntityNPCInterface) event.npc.getMCEntity(), EnumSyncAutoAnim.RANGED_ATTACK)); } @SubscribeEvent - public void onNpcDamaged(NpcEvent.DamagedEvent event){ - if(event != null && event.npc != null && event.npc.getMCEntity() != null) + public void onNpcDamaged(NpcEvent.DamagedEvent event) { + if (event != null && event.npc != null && event.npc.getMCEntity() != null) NetworkHandler.sendToAll(new CPacketSyncAutoAnim((EntityNPCInterface) event.npc.getMCEntity(), EnumSyncAutoAnim.HURT)); } } diff --git a/src/main/java/com/goodbird/npcgecko/item/ItemCustomModelPredicate.java b/src/main/java/com/goodbird/npcgecko/item/ItemCustomModelPredicate.java index fc42c05..2ec6e73 100644 --- a/src/main/java/com/goodbird/npcgecko/item/ItemCustomModelPredicate.java +++ b/src/main/java/com/goodbird/npcgecko/item/ItemCustomModelPredicate.java @@ -15,8 +15,8 @@ public class ItemCustomModelPredicate { public static

PlayState predicate(AnimationEvent

event) { ItemStack stack = (ItemStack) event.getExtraData().get(0); IItemStack istack = NpcAPI.Instance().getIItemStack(stack); - if(!(istack instanceof ScriptCustomItem)) return PlayState.STOP; - IScriptCustomItem item = (IScriptCustomItem)istack; + if (!(istack instanceof ScriptCustomItem)) return PlayState.STOP; + IScriptCustomItem item = (IScriptCustomItem) istack; event.getController().setAnimation(new AnimationBuilder().loop(item.getCustomModelData().getIdleAnim())); return PlayState.CONTINUE; } diff --git a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinBlockScriptedRenderer.java b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinBlockScriptedRenderer.java index 91c93be..768c8d2 100644 --- a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinBlockScriptedRenderer.java +++ b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinBlockScriptedRenderer.java @@ -11,7 +11,6 @@ import noppes.npcs.blocks.tiles.TileScripted; import noppes.npcs.client.renderer.blocks.BlockScriptedRenderer; import org.lwjgl.opengl.GL11; import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @@ -25,10 +24,11 @@ public abstract class MixinBlockScriptedRenderer { @Inject(method = "renderTileEntityAt", at = @At(value = "INVOKE", target = "Lnoppes/npcs/client/renderer/blocks/BlockScriptedRenderer;renderItem(Lnet/minecraft/tileentity/TileEntity;Lnet/minecraft/item/ItemStack;)V", remap = false)) public void geckoModelRendering(TileEntity te, double x, double y, double z, float partialTicks, CallbackInfo ci) { - if(!(te instanceof TileScripted)) return; + if (!(te instanceof TileScripted)) return; TileScripted tileScripted = (TileScripted) te; - if(tileScripted.itemModel == null) return; - if(!(MinecraftForgeClient.getItemRenderer(tileScripted.itemModel, ENTITY) instanceof RenderBlockItem) || BlockScriptedRenderer.overrideModel()) return; + if (tileScripted.itemModel == null) return; + if (!(MinecraftForgeClient.getItemRenderer(tileScripted.itemModel, ENTITY) instanceof RenderBlockItem) || BlockScriptedRenderer.overrideModel()) + return; GL11.glTranslated(0, -0.5, 0); GL11.glScaled(2, 2, 2); } @@ -46,19 +46,19 @@ public abstract class MixinBlockScriptedRenderer { @Inject(method = "renderTileEntityAt", at = @At(value = "HEAD"), cancellable = true) public void customGeckoModelRendering(TileEntity te, double x, double y, double z, float partialTicks, CallbackInfo ci) { - if(BlockScriptedRenderer.overrideModel()) return; - if(!(te instanceof TileScripted)) return; + if (BlockScriptedRenderer.overrideModel()) return; + if (!(te instanceof TileScripted)) return; TileScripted tileScripted = (TileScripted) te; - if(!(tileScripted.renderTile instanceof TileEntityCustomModel)) return; + if (!(tileScripted.renderTile instanceof TileEntityCustomModel)) return; GL11.glPushMatrix(); - GL11.glTranslated(x,y,z); - GL11.glTranslated(0.5,0.5, 0.5); - GL11.glRotatef((float)tileScripted.rotationY, 0.0F, 1.0F, 0.0F); - GL11.glRotatef((float)tileScripted.rotationX, 1.0F, 0.0F, 0.0F); - GL11.glRotatef((float)tileScripted.rotationZ, 0.0F, 0.0F, 1.0F); + GL11.glTranslated(x, y, z); + GL11.glTranslated(0.5, 0.5, 0.5); + GL11.glRotatef((float) tileScripted.rotationY, 0.0F, 1.0F, 0.0F); + GL11.glRotatef((float) tileScripted.rotationX, 1.0F, 0.0F, 0.0F); + GL11.glRotatef((float) tileScripted.rotationZ, 0.0F, 0.0F, 1.0F); GL11.glScalef(tileScripted.scaleX, tileScripted.scaleY, tileScripted.scaleZ); - GL11.glTranslated(-0.5,-0.5/tileScripted.scaleY, -0.5); - GL11.glTranslated(-x,-y,-z); + GL11.glTranslated(-0.5, -0.5 / tileScripted.scaleY, -0.5); + GL11.glTranslated(-x, -y, -z); TileEntityRendererDispatcher.instance.renderTileEntityAt(tileScripted.renderTile, x, y, z, partialTicks); GL11.glPopMatrix(); ci.cancel(); diff --git a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinDataDisplay.java b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinDataDisplay.java index 035bcae..2fa6768 100644 --- a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinDataDisplay.java +++ b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinDataDisplay.java @@ -18,23 +18,24 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(DataDisplay.class) public class MixinDataDisplay implements IDataDisplay { - @Shadow(remap = false) public EntityNPCInterface npc; + @Shadow(remap = false) + public EntityNPCInterface npc; @Unique private final CustomModelData customNPC_Gecko_Addon$customModelData = new CustomModelData(); @Inject(method = "writeToNBT", at = @At("HEAD"), remap = false) public void writeToNBT(NBTTagCompound nbttagcompound, CallbackInfoReturnable cir) { - if(hasCustomModel()) + if (hasCustomModel()) customNPC_Gecko_Addon$customModelData.writeToNBT(nbttagcompound); } @Inject(method = "readToNBT", at = @At("HEAD"), remap = false) - public void readFromNBT(NBTTagCompound nbttagcompound, CallbackInfo ci){ + public void readFromNBT(NBTTagCompound nbttagcompound, CallbackInfo ci) { customNPC_Gecko_Addon$customModelData.readFromNBT(nbttagcompound); } @Unique - public CustomModelData getCustomModelData(){ + public CustomModelData getCustomModelData() { return customNPC_Gecko_Addon$customModelData; } diff --git a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinGeckoAddon.java b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinGeckoAddon.java index 619118e..c29c208 100644 --- a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinGeckoAddon.java +++ b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinGeckoAddon.java @@ -16,7 +16,8 @@ import software.bernie.geckolib3.core.manager.AnimationData; @Mixin(GeckoAddon.class) public class MixinGeckoAddon { - @Shadow(remap = false) public boolean supportEnabled; + @Shadow(remap = false) + public boolean supportEnabled; /** * @author Goodbird @@ -24,11 +25,11 @@ public class MixinGeckoAddon { */ @Overwrite(remap = false) public void geckoCopyData(EntityLivingBase copied, EntityLivingBase entity) { - if(!supportEnabled) + if (!supportEnabled) return; if (entity instanceof EntityCustomModel && copied instanceof EntityNPCInterface) { - EntityCustomModel modelEntity = (EntityCustomModel) entity; + EntityCustomModel modelEntity = (EntityCustomModel) entity; EntityNPCInterface npc = (EntityNPCInterface) copied; IDataDisplay display = (IDataDisplay) npc.display; modelEntity.textureResLoc = NpcTextureUtils.getNpcTexture((EntityNPCInterface) copied); @@ -45,7 +46,7 @@ public class MixinGeckoAddon { modelEntity.tintData = npc.display.tintData; modelEntity.headBoneName = display.getCustomModelData().getHeadBoneName(); AnimationData animationData = modelEntity.getFactory().getOrCreateAnimationData(modelEntity.getUniqueID().hashCode()); - for(AnimationController controller : animationData.getAnimationControllers().values()){ + for (AnimationController controller : animationData.getAnimationControllers().values()) { controller.transitionLengthTicks = display.getCustomModelData().getTransitionLengthTicks(); } } diff --git a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinGeckoAddonClient.java b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinGeckoAddonClient.java index f5c857e..c5c7ea0 100644 --- a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinGeckoAddonClient.java +++ b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinGeckoAddonClient.java @@ -29,20 +29,21 @@ import java.util.Vector; @Mixin(GeckoAddonClient.class) public class MixinGeckoAddonClient { - @Shadow(remap = false) public boolean supportEnabled; + @Shadow(remap = false) + public boolean supportEnabled; /** * @author Goodbird * @reason Show Custom Model Selection button for Custom Entities */ @Overwrite(remap = false) - public void showGeckoButtons(GuiCreationScreen creationScreen, EntityLivingBase entity){ - if(!supportEnabled) + public void showGeckoButtons(GuiCreationScreen creationScreen, EntityLivingBase entity) { + if (!supportEnabled) return; - if(entity instanceof EntityCustomModel){ - creationScreen.addButton(new GuiNpcButton(202, creationScreen.guiLeft-60, creationScreen.guiTop+40, 180, 20, ((IDataDisplay)creationScreen.npc.display).getCustomModelData().getModel())); - creationScreen.addButton(new GuiNpcButton(203, creationScreen.guiLeft-60, creationScreen.guiTop+62, 180, 20, "Extras")); + if (entity instanceof EntityCustomModel) { + creationScreen.addButton(new GuiNpcButton(202, creationScreen.guiLeft - 60, creationScreen.guiTop + 40, 180, 20, ((IDataDisplay) creationScreen.npc.display).getCustomModelData().getModel())); + creationScreen.addButton(new GuiNpcButton(203, creationScreen.guiLeft - 60, creationScreen.guiTop + 62, 180, 20, "Extras")); } } @@ -51,21 +52,21 @@ public class MixinGeckoAddonClient { * @reason Add support for new showGeckoButtons() in GuiCreationScreen */ @Overwrite(remap = false) - public void geckoGuiCreationScreenActionPerformed(GuiCreationScreen creationScreen, GuiNpcButton button){ - if(!supportEnabled) + public void geckoGuiCreationScreenActionPerformed(GuiCreationScreen creationScreen, GuiNpcButton button) { + if (!supportEnabled) return; - if(button.id == 202){ + if (button.id == 202) { Vector list = new Vector<>(); - for(ResourceLocation resLoc : GeckoLibCache.getInstance().getGeoModels().keySet()){ + for (ResourceLocation resLoc : GeckoLibCache.getInstance().getGeoModels().keySet()) { list.add(resLoc.toString()); } - creationScreen.setSubGui(new GuiStringSelection(creationScreen,"Selecting GeckoLib Model:", list, name -> { - ((IDataDisplay)creationScreen.npc.display).getCustomModelData().setModel(name); + creationScreen.setSubGui(new GuiStringSelection(creationScreen, "Selecting GeckoLib Model:", list, name -> { + ((IDataDisplay) creationScreen.npc.display).getCustomModelData().setModel(name); creationScreen.getButton(202).setDisplayText(name); })); } - if(button.id == 203){ + if (button.id == 203) { creationScreen.setSubGui(new SubGuiModelExtras(creationScreen.npc)); } } @@ -75,15 +76,15 @@ public class MixinGeckoAddonClient { * @reason Init Model Animation Button for NPCs */ @Overwrite(remap = false) - public void geckoNpcDisplayInitGui(GuiNPCInterface2 gui){ - if(!supportEnabled) + public void geckoNpcDisplayInitGui(GuiNPCInterface2 gui) { + if (!supportEnabled) return; int y = gui.guiTop + 188; - gui.addLabel(new GuiNpcLabel(212,"Model Animation", gui.guiLeft + 185, y + 5)); + gui.addLabel(new GuiNpcLabel(212, "Model Animation", gui.guiLeft + 185, y + 5)); gui.addButton(new GuiNpcButton(212, gui.guiLeft + 300, y, 100, 20, "selectServer.edit")); - if (!((IDataDisplay)gui.npc.display).hasCustomModel()) { - gui.getLabel(212).enabled=false; + if (!((IDataDisplay) gui.npc.display).hasCustomModel()) { + gui.getLabel(212).enabled = false; gui.getButton(212).setVisible(false); gui.getButton(212).setEnabled(false); } @@ -94,11 +95,11 @@ public class MixinGeckoAddonClient { * @reason Add Support for Model Animation button on Npc Display */ @Overwrite(remap = false) - public void geckoNpcDisplayActionPerformed(GuiNPCInterface2 gui, GuiNpcButton btn){ - if(!supportEnabled) + public void geckoNpcDisplayActionPerformed(GuiNPCInterface2 gui, GuiNpcButton btn) { + if (!supportEnabled) return; - if(btn.id == 212){ + if (btn.id == 212) { gui.setSubGui(new SubGuiModelAnimation(gui.npc)); } } @@ -108,8 +109,8 @@ public class MixinGeckoAddonClient { * @reason Check if Entity is a Gecko Model */ @Overwrite(remap = false) - public boolean isGeckoModel(ModelBase mainModel){ - if(!supportEnabled) + public boolean isGeckoModel(ModelBase mainModel) { + if (!supportEnabled) return false; return (mainModel instanceof ModelMPM && ((ModelMPM) mainModel).entity instanceof IAnimatable); @@ -120,23 +121,20 @@ public class MixinGeckoAddonClient { * @reason Render Gecko Model Support */ @Overwrite(remap = false) - public void geckoRenderModel(ModelMPM mainModel, EntityNPCInterface npc, float rot, float partial){ - GL11.glRotatef(180, 1,0,0); - GL11.glTranslated(0, -1.5,0); + public void geckoRenderModel(ModelMPM mainModel, EntityNPCInterface npc, float rot, float partial) { + GL11.glRotatef(180, 1, 0, 0); + GL11.glTranslated(0, -1.5, 0); - if (!npc.isInvisible()) - { - if(mainModel.entity instanceof EntityCustomModel){ - ((EntityCustomModel)mainModel.entity).isSemiVisible = false; + if (!npc.isInvisible()) { + if (mainModel.entity instanceof EntityCustomModel) { + ((EntityCustomModel) mainModel.entity).isSemiVisible = false; } - RenderManager.instance.renderEntityWithPosYaw(mainModel.entity, 0,0,0,rot,partial); - } - else if (!npc.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer)) - { - if(mainModel.entity instanceof EntityCustomModel){ - ((EntityCustomModel)mainModel.entity).isSemiVisible = true; - RenderManager.instance.renderEntityWithPosYaw(mainModel.entity, 0,0,0,rot,partial); - }else { + RenderManager.instance.renderEntityWithPosYaw(mainModel.entity, 0, 0, 0, rot, partial); + } else if (!npc.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer)) { + if (mainModel.entity instanceof EntityCustomModel) { + ((EntityCustomModel) mainModel.entity).isSemiVisible = true; + RenderManager.instance.renderEntityWithPosYaw(mainModel.entity, 0, 0, 0, rot, partial); + } else { GL11.glPushMatrix(); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.15F); GL11.glDepthMask(false); diff --git a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinScriptCustomItem.java b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinScriptCustomItem.java index 45bfb94..56b0ec5 100644 --- a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinScriptCustomItem.java +++ b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinScriptCustomItem.java @@ -1,4 +1,3 @@ - // TODO: Fix ScriptCustomItem //package com.goodbird.npcgecko.mixin.impl; // diff --git a/src/main/java/com/goodbird/npcgecko/mixin/impl/TileScriptedMixin.java b/src/main/java/com/goodbird/npcgecko/mixin/impl/TileScriptedMixin.java index 0aa04f9..2d62e95 100644 --- a/src/main/java/com/goodbird/npcgecko/mixin/impl/TileScriptedMixin.java +++ b/src/main/java/com/goodbird/npcgecko/mixin/impl/TileScriptedMixin.java @@ -3,10 +3,7 @@ package com.goodbird.npcgecko.mixin.impl; import com.goodbird.npcgecko.CustomNpcPlusGecko; import com.goodbird.npcgecko.tile.TileEntityCustomModel; import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.server.MinecraftServer; import net.minecraft.tileentity.TileEntity; -import net.minecraft.world.World; -import net.minecraftforge.common.MinecraftForge; import noppes.npcs.blocks.tiles.TileScripted; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; @@ -22,12 +19,12 @@ public class TileScriptedMixin { @Inject(method = "setDisplayNBT", at = @At("TAIL"), remap = false) public void setDisplayNBT(NBTTagCompound compound, CallbackInfo ci) { - if(compound.hasKey("renderTileTag")){ + if (compound.hasKey("renderTileTag")) { renderTile = new TileEntityCustomModel(); NBTTagCompound saveTag = compound.getCompoundTag("renderTileTag"); - if(saveTag.hasKey("dimID")){ + if (saveTag.hasKey("dimID")) { renderTile.setWorldObj(CustomNpcPlusGecko.proxy.getWorldById(saveTag.getInteger("dimID"))); - }else{ + } else { renderTile.setWorldObj(CustomNpcPlusGecko.proxy.getWorldById(0)); } renderTile.readFromNBT(saveTag); @@ -36,10 +33,10 @@ public class TileScriptedMixin { @Inject(method = "getDisplayNBT", at = @At("TAIL"), remap = false) public void getDisplayNBT(NBTTagCompound compound, CallbackInfo ci) { - if(renderTile!=null) { + if (renderTile != null) { NBTTagCompound saveTag = new NBTTagCompound(); renderTile.writeToNBT(saveTag); - if(renderTile.getWorldObj()!=null && renderTile.getWorldObj().provider!=null) + if (renderTile.getWorldObj() != null && renderTile.getWorldObj().provider != null) saveTag.setInteger("dimID", renderTile.getWorldObj().provider.dimensionId); compound.setTag("renderTileTag", saveTag); } diff --git a/src/main/java/com/goodbird/npcgecko/network/CPacketSyncAutoAnim.java b/src/main/java/com/goodbird/npcgecko/network/CPacketSyncAutoAnim.java index 8e8c336..aff5cef 100644 --- a/src/main/java/com/goodbird/npcgecko/network/CPacketSyncAutoAnim.java +++ b/src/main/java/com/goodbird/npcgecko/network/CPacketSyncAutoAnim.java @@ -14,9 +14,11 @@ import noppes.npcs.entity.EntityNPCInterface; public final class CPacketSyncAutoAnim implements IMessage, IMessageHandler { public EnumSyncAutoAnim animType; public int entityId; - public CPacketSyncAutoAnim(){ + + public CPacketSyncAutoAnim() { } + public CPacketSyncAutoAnim(EntityNPCInterface npc, EnumSyncAutoAnim animType) { this.animType = animType; this.entityId = npc.getEntityId(); @@ -37,9 +39,9 @@ public final class CPacketSyncAutoAnim implements IMessage, IMessageHandler { public AnimationBuilder builder; public int entityId; - public CPacketSyncManualAnim(){ + + public CPacketSyncManualAnim() { } + public CPacketSyncManualAnim(EntityNPCInterface npc, AnimationBuilder builder) { this.builder = builder; this.entityId = npc.getEntityId(); @@ -34,7 +35,8 @@ public final class CPacketSyncManualAnim implements IMessage, IMessageHandler { public AnimationBuilder builder; public int x, y, z; - public CPacketSyncTileManualAnim(){ + + public CPacketSyncTileManualAnim() { } + public CPacketSyncTileManualAnim(TileEntity tile, AnimationBuilder builder) { this.builder = builder; this.x = tile.xCoord; @@ -40,7 +36,8 @@ public class CPacketSyncTileManualAnim implements IMessage, IMessageHandlerNote: Scripted blocks support a subset of animation features compared to NPCs. + * Walk, hurt, melee attack, ranged attack animations, head bone name, and transition length + * are not applicable to blocks and will return default/empty values.

+ */ +public class GeckoBlockAnimatable implements IGeckoAnimatable { + private final IBlockScripted block; + private final TileEntityCustomModel tile; + + public GeckoBlockAnimatable(IBlockScripted block, TileEntityCustomModel tile) { + this.block = block; + this.tile = tile; + } + + private void markDirty() { + ((TileScripted) block.getMCTileEntity()).needsClientUpdate = true; + } + + @Override + public String getModel() { + return tile.modelResLoc.toString(); + } + + @Override + public void setModel(String model) { + tile.modelResLoc = new ResourceLocation(model); + markDirty(); + } + + @Override + public String getTexture() { + return tile.textureResLoc.toString(); + } + + @Override + public void setTexture(String texture) { + tile.textureResLoc = new ResourceLocation(texture); + markDirty(); + } + + @Override + public String getAnimationFile() { + return tile.animResLoc.toString(); + } + + @Override + public void setAnimationFile(String animationFile) { + tile.animResLoc = new ResourceLocation(animationFile); + markDirty(); + } + + @Override + public String getIdleAnimation() { + return tile.idleAnimName; + } + + @Override + public void setIdleAnimation(String animation) { + tile.idleAnimName = animation; + markDirty(); + } + + @Override + public String getWalkAnimation() { + return ""; + } + + @Override + public void setWalkAnimation(String animation) { + // Not applicable to blocks + } + + @Override + public String getHurtAnimation() { + return ""; + } + + @Override + public void setHurtAnimation(String animation) { + // Not applicable to blocks + } + + @Override + public String getMeleeAttackAnimation() { + return ""; + } + + @Override + public void setMeleeAttackAnimation(String animation) { + // Not applicable to blocks + } + + @Override + public String getRangedAttackAnimation() { + return ""; + } + + @Override + public void setRangedAttackAnimation(String animation) { + // Not applicable to blocks + } + + @Override + public String getHeadBoneName() { + return ""; + } + + @Override + public void setHeadBoneName(String boneName) { + // Not applicable to blocks + } + + @Override + public int getTransitionLengthTicks() { + return 0; + } + + @Override + public void setTransitionLengthTicks(int ticks) { + // Not applicable to blocks + } +} diff --git a/src/main/java/com/goodbird/npcgecko/wrapper/GeckoBoneWrapper.java b/src/main/java/com/goodbird/npcgecko/wrapper/GeckoBoneWrapper.java new file mode 100644 index 0000000..1410247 --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/wrapper/GeckoBoneWrapper.java @@ -0,0 +1,170 @@ +package com.goodbird.npcgecko.wrapper; + +import com.goodbird.npcgecko.api.IGeckoBone; +import software.bernie.geckolib3.geo.render.built.GeoBone; + +import java.util.List; + +/** + * Wrapper around GeckoLib's {@link GeoBone} that implements {@link IGeckoBone}. + */ +public class GeckoBoneWrapper implements IGeckoBone { + private final GeoBone bone; + + public GeckoBoneWrapper(GeoBone bone) { + this.bone = bone; + } + + @Override + public String getName() { + return bone.name; + } + + @Override + public float getPositionX() { + return bone.getPositionX(); + } + + @Override + public float getPositionY() { + return bone.getPositionY(); + } + + @Override + public float getPositionZ() { + return bone.getPositionZ(); + } + + @Override + public void setPositionX(float value) { + bone.setPositionX(value); + } + + @Override + public void setPositionY(float value) { + bone.setPositionY(value); + } + + @Override + public void setPositionZ(float value) { + bone.setPositionZ(value); + } + + @Override + public float getRotationX() { + return bone.getRotationX(); + } + + @Override + public float getRotationY() { + return bone.getRotationY(); + } + + @Override + public float getRotationZ() { + return bone.getRotationZ(); + } + + @Override + public void setRotationX(float value) { + bone.setRotationX(value); + } + + @Override + public void setRotationY(float value) { + bone.setRotationY(value); + } + + @Override + public void setRotationZ(float value) { + bone.setRotationZ(value); + } + + @Override + public float getScaleX() { + return bone.getScaleX(); + } + + @Override + public float getScaleY() { + return bone.getScaleY(); + } + + @Override + public float getScaleZ() { + return bone.getScaleZ(); + } + + @Override + public void setScaleX(float value) { + bone.setScaleX(value); + } + + @Override + public void setScaleY(float value) { + bone.setScaleY(value); + } + + @Override + public void setScaleZ(float value) { + bone.setScaleZ(value); + } + + @Override + public float getPivotX() { + return bone.getPivotX(); + } + + @Override + public float getPivotY() { + return bone.getPivotY(); + } + + @Override + public float getPivotZ() { + return bone.getPivotZ(); + } + + @Override + public void setPivotX(float value) { + bone.setPivotX(value); + } + + @Override + public void setPivotY(float value) { + bone.setPivotY(value); + } + + @Override + public void setPivotZ(float value) { + bone.setPivotZ(value); + } + + @Override + public boolean isHidden() { + return bone.isHidden(); + } + + @Override + public void setHidden(boolean hidden) { + bone.setHidden(hidden); + } + + @Override + public IGeckoBone getParent() { + if (bone.parent == null) { + return null; + } + return new GeckoBoneWrapper(bone.parent); + } + + @Override + public IGeckoBone[] getChildBones() { + List children = bone.childBones; + IGeckoBone[] result = new IGeckoBone[children.size()]; + for (int i = 0; i < children.size(); i++) { + result[i] = new GeckoBoneWrapper(children.get(i)); + } + return result; + } +} diff --git a/src/main/java/com/goodbird/npcgecko/wrapper/GeckoColorWrapper.java b/src/main/java/com/goodbird/npcgecko/wrapper/GeckoColorWrapper.java new file mode 100644 index 0000000..6548652 --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/wrapper/GeckoColorWrapper.java @@ -0,0 +1,59 @@ +package com.goodbird.npcgecko.wrapper; + +import com.goodbird.npcgecko.api.IGeckoColor; +import software.bernie.geckolib3.core.util.Color; + +/** + * Wrapper around GeckoLib's {@link Color} that implements {@link IGeckoColor}. + */ +public class GeckoColorWrapper implements IGeckoColor { + private final Color color; + + public GeckoColorWrapper(Color color) { + this.color = color; + } + + @Override + public int getColor() { + return color.getColor(); + } + + @Override + public int getRed() { + return color.getRed(); + } + + @Override + public int getGreen() { + return color.getGreen(); + } + + @Override + public int getBlue() { + return color.getBlue(); + } + + @Override + public int getAlpha() { + return color.getAlpha(); + } + + @Override + public IGeckoColor brighter(double factor) { + return new GeckoColorWrapper(color.brighter(factor)); + } + + @Override + public IGeckoColor darker(double factor) { + return new GeckoColorWrapper(color.darker(factor)); + } + + /** + * Get the underlying GeckoLib Color. + * + * @return The wrapped Color + */ + public Color getInternalColor() { + return color; + } +} diff --git a/src/main/java/com/goodbird/npcgecko/wrapper/GeckoModelWrapper.java b/src/main/java/com/goodbird/npcgecko/wrapper/GeckoModelWrapper.java new file mode 100644 index 0000000..0cbaf71 --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/wrapper/GeckoModelWrapper.java @@ -0,0 +1,44 @@ +package com.goodbird.npcgecko.wrapper; + +import com.goodbird.npcgecko.api.IGeckoBone; +import com.goodbird.npcgecko.api.IGeckoModel; +import software.bernie.geckolib3.geo.render.built.GeoBone; +import software.bernie.geckolib3.geo.render.built.GeoModel; + +import java.util.ArrayList; +import java.util.List; + +/** + * Wrapper around GeckoLib's {@link GeoModel} that implements {@link IGeckoModel}. + */ +public class GeckoModelWrapper implements IGeckoModel { + private final GeoModel model; + + public GeckoModelWrapper(GeoModel model) { + this.model = model; + } + + @Override + public IGeckoBone getBone(String name) { + if (model.getBone(name).isPresent()) { + return new GeckoBoneWrapper(model.getBone(name).get()); + } + return null; + } + + @Override + public String[] getBoneNames() { + List names = new ArrayList<>(); + collectBoneNames(model.topLevelBones, names); + return names.toArray(new String[0]); + } + + private void collectBoneNames(List bones, List names) { + for (GeoBone bone : bones) { + names.add(bone.name); + if (bone.childBones != null && !bone.childBones.isEmpty()) { + collectBoneNames(bone.childBones, names); + } + } + } +} diff --git a/src/main/java/com/goodbird/npcgecko/wrapper/GeckoNpcAnimatable.java b/src/main/java/com/goodbird/npcgecko/wrapper/GeckoNpcAnimatable.java new file mode 100644 index 0000000..77fc7c9 --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/wrapper/GeckoNpcAnimatable.java @@ -0,0 +1,131 @@ +package com.goodbird.npcgecko.wrapper; + +import com.goodbird.npcgecko.api.IGeckoAnimatable; +import com.goodbird.npcgecko.data.CustomModelData; +import com.goodbird.npcgecko.mixin.IDataDisplay; +import noppes.npcs.api.entity.ICustomNpc; +import noppes.npcs.entity.EntityNPCInterface; + +/** + * Implementation of {@link IGeckoAnimatable} that wraps an NPC's {@link CustomModelData}. + * Changes made through this interface are automatically synced to clients. + */ +public class GeckoNpcAnimatable implements IGeckoAnimatable { + private final ICustomNpc npc; + private final CustomModelData data; + + public GeckoNpcAnimatable(ICustomNpc npc) { + this.npc = npc; + this.data = ((IDataDisplay) npc.getMCEntity().display).getCustomModelData(); + } + + @Override + public String getModel() { + return data.getModel(); + } + + @Override + public void setModel(String model) { + data.setModel(model); + npc.updateClient(); + } + + @Override + public String getTexture() { + return npc.getMCEntity().display.texture; + } + + @Override + public void setTexture(String texture) { + npc.getMCEntity().display.texture = texture; + npc.updateClient(); + } + + @Override + public String getAnimationFile() { + return data.getAnimFile(); + } + + @Override + public void setAnimationFile(String animationFile) { + data.setAnimFile(animationFile); + npc.updateClient(); + } + + @Override + public String getIdleAnimation() { + return data.getIdleAnim(); + } + + @Override + public void setIdleAnimation(String animation) { + data.setIdleAnim(animation); + npc.updateClient(); + } + + @Override + public String getWalkAnimation() { + return data.getWalkAnim(); + } + + @Override + public void setWalkAnimation(String animation) { + data.setWalkAnim(animation); + npc.updateClient(); + } + + @Override + public String getHurtAnimation() { + return data.getHurtAnim(); + } + + @Override + public void setHurtAnimation(String animation) { + data.setHurtAnim(animation); + npc.updateClient(); + } + + @Override + public String getMeleeAttackAnimation() { + return data.getMeleeAttackAnim(); + } + + @Override + public void setMeleeAttackAnimation(String animation) { + data.setMeleeAttackAnim(animation); + npc.updateClient(); + } + + @Override + public String getRangedAttackAnimation() { + return data.getRangedAttackAnim(); + } + + @Override + public void setRangedAttackAnimation(String animation) { + data.setRangedAttackAnim(animation); + npc.updateClient(); + } + + @Override + public String getHeadBoneName() { + return data.getHeadBoneName(); + } + + @Override + public void setHeadBoneName(String boneName) { + data.setHeadBoneName(boneName); + npc.updateClient(); + } + + @Override + public int getTransitionLengthTicks() { + return data.getTransitionLengthTicks(); + } + + @Override + public void setTransitionLengthTicks(int ticks) { + data.setTransitionLengthTicks(ticks); + npc.updateClient(); + } +} diff --git a/src/main/resources/assets/npcgecko/animations/geo_npc.animation.json b/src/main/resources/assets/npcgecko/animations/geo_npc.animation.json index 5f7bdbc..779b86c 100644 --- a/src/main/resources/assets/npcgecko/animations/geo_npc.animation.json +++ b/src/main/resources/assets/npcgecko/animations/geo_npc.animation.json @@ -1,2563 +1,4987 @@ { - "format_version": "1.8.0", - "animations": { - "animation.custom_model.wave": { - "animation_length": 1.75, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 90, 122.5], - "easing": "easeInOutSine" - }, - "1.5": { - "vector": [0, 90, 122.5] - }, - "1.75": { - "vector": [0, 0, 0], - "easing": "easeInOutSine" - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [1, 0, 0], - "easing": "easeInOutSine" - }, - "1.5": { - "vector": [1, 0, 0] - }, - "1.75": { - "vector": [0, 0, 0], - "easing": "easeInOutSine" - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0], - "easing": "easeInOutSine" - }, - "0.6667": { - "vector": [-45, 0, 0], - "easing": "linear" - }, - "0.8333": { - "vector": [0, 0, 0], - "easing": "easeInOutSine" - }, - "1.0": { - "vector": [-45, 0, 0] - }, - "1.1667": { - "vector": [0, 0, 0], - "easing": "easeInOutSine" - }, - "1.3333": { - "vector": [-45, 0, 0] - }, - "1.5": { - "vector": [0, 0, 0], - "easing": "easeInOutSine" - }, - "1.75": { - "vector": [0, 0, 0] - } - } - } - } - }, - "animation.custom_model.hammer_swing": { - "loop": true, - "animation_length": 2.5, - "bones": { - "body": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "1.5": { - "vector": [-7.5, 0, 0] - }, - "2.0": { - "vector": [0, 0, 0], - "easing": "easeInQuad" - } - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [-40, 0, 0], - "easing": "linear" - }, - "1.5": { - "vector": [-147.5, 0, 0], - "easing": "linear" - }, - "2.0": { - "vector": [-40, 0, 0], - "easing": "easeInQuad" - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "1.5": { - "vector": [-32.5, 0, 0] - }, - "2.0": { - "vector": [0, 0, 0], - "easing": "easeInQuad" - } - } - }, - "left_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, -10] - }, - "2.0": { - "vector": [0, 0, -10] - } - } - }, - "right_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 10] - }, - "2.0": { - "vector": [0, 0, 10] - } - } - } - }, - "particle_effects": {} - }, - "animation.custom_model.idle": { - "loop": true, - "animation_length": 4, - "bones": { - "body": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.0": { - "vector": [0, 0.3, 0] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.0": { - "vector": [0, 0, 2.5] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.0": { - "vector": [0, 0, -2.5] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm_2": { - "rotation": { - "vector": [0, 0, -2.5] - } - }, - "head": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.0": { - "vector": [-2.5, 0, 0] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "headwear": { - "rotation": { - "vector": [-2.5, 0, 0] - } - } - } - }, - "breath_hide_items": { - "loop": true, - "animation_length": 4, - "bones": { - "body": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.0": { - "vector": [0, 0.3, 0] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.0": { - "vector": [0, 0, 2.5] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.0": { - "vector": [0, 0, -2.5] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm_2": { - "rotation": { - "vector": [0, 0, -2.5] - } - }, - "head": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.0": { - "vector": [-2.5, 0, 0] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "headwear": { - "rotation": { - "vector": [-2.5, 0, 0] - } - }, - "held_item": { - "scale": { - "0.0": { - "vector": [0, 0, 0] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - }, - "left_held_item": { - "scale": { - "0.0": { - "vector": [0, 0, 0] - }, - "4.0": { - "vector": [0, 0, 0] - } - } - } - } - }, - "idle_hide_items": { - "loop": true, - "bones": { - "held_item": { - "scale": { - "vector": [0, 0, 0] - } - }, - "left_held_item": { - "scale": { - "vector": [0, 0, 0] - } - } - } - }, - "animation.custom_model.stomp": { - "animation_length": 1.95833, - "bones": { - "body": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0.2, 0] - }, - "0.5833": { - "vector": [0, 0.2, 0] - }, - "0.7917": { - "vector": [0, 0, 0], - "easing": "easeInBounce", - "easingArgs": [0.7] - }, - "1.125": { - "vector": [0, 0.2, 0] - }, - "1.2083": { - "vector": [0, 0.2, 0] - }, - "1.4167": { - "vector": [0, 0, 0], - "easing": "easeInBounce", - "easingArgs": [0.7] - } - } - }, - "left_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-52.5, 0, 0] - }, - "0.5833": { - "vector": [-52.5, 0, 0] - }, - "0.7917": { - "vector": [0, 0, 0] - }, - "1.0417": { - "vector": [-52.5, 0, 0] - }, - "1.125": { - "vector": [-52.5, 0, 0] - }, - "1.3333": { - "vector": [0, 0, 0] - } - } - }, - "left_leg_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [42.5, 0, 0] - }, - "0.5833": { - "vector": [42.5, 0, 0] - }, - "0.7917": { - "vector": [0, 0, 0] - }, - "1.0417": { - "vector": [42.5, 0, 0] - }, - "1.125": { - "vector": [42.5, 0, 0] - }, - "1.3333": { - "vector": [0, 0, 0] - } - } - } - } - }, - "animation.custom_model.clap": { - "animation_length": 1.33333, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-60, -15, -9] - }, - "0.6667": { - "vector": [-61.09179, 2.45846, 0.85571] - }, - "0.8333": { - "vector": [-60, -15, -9] - }, - "0.9167": { - "vector": [-60, -15, -9] - }, - "1.2083": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [1, -1, -1] - }, - "0.6667": { - "vector": [1, -1, -1] - }, - "0.8333": { - "vector": [1, -1, -1] - }, - "0.9167": { - "vector": [1, -1, -1] - }, - "1.2083": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, -30] - }, - "0.6667": { - "vector": [0, 0, -17.5] - }, - "0.8333": { - "vector": [0, 0, -30] - }, - "0.9167": { - "vector": [0, 0, -30] - }, - "1.2083": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "1.2083": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-60, 15, 9] - }, - "0.6667": { - "vector": [-61.09179, -2.45846, -0.85571] - }, - "0.8333": { - "vector": [-60, 15, 9] - }, - "0.9167": { - "vector": [-60, 15, 9] - }, - "1.2083": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-1, -1, -1] - }, - "0.6667": { - "vector": [-1, -1, -1] - }, - "0.8333": { - "vector": [-1, -1, -1] - }, - "0.9167": { - "vector": [-1, -1, -1] - }, - "1.2083": { - "vector": [0, 0, 0] - } - } - }, - "left_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 30] - }, - "0.6667": { - "vector": [0, 0, 17.5] - }, - "0.8333": { - "vector": [0, 0, 30] - }, - "0.9167": { - "vector": [0, 0, 30] - }, - "1.2083": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "1.2083": { - "vector": [0, 0, 0] - } - } - } - } - }, - "animation.custom_model.knock": { - "animation_length": 1.58333, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-90, 0, 0] - }, - "1.0": { - "vector": [-90, 0, 0] - }, - "1.25": { - "vector": [-90, 0, 0] - }, - "1.5833": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, -1, -1] - }, - "0.875": { - "vector": [0, -1, -2] - }, - "1.0": { - "vector": [0, -1, -1] - }, - "1.125": { - "vector": [0, -1, -2] - }, - "1.25": { - "vector": [0, -1, -1] - }, - "1.375": { - "vector": [0, -1, -2] - }, - "1.5833": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-37.5, 0, 0] - }, - "0.875": { - "vector": [-20, 0, 0] - }, - "1.0": { - "vector": [-37.5, 0, 0] - }, - "1.125": { - "vector": [-20, 0, 0] - }, - "1.25": { - "vector": [-37.5, 0, 0] - }, - "1.375": { - "vector": [-20, 0, 0] - }, - "1.5833": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - }, - "1.25": { - "vector": [0, 0, 0] - }, - "1.5833": { - "vector": [0, 0, 0] - } - } - } - } - }, - "animation.custom_model.knock_hard": { - "animation_length": 2.5, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-90, 0, 0] - }, - "1.0": { - "vector": [-90, 0, 0] - }, - "1.125": { - "vector": [-90, 0, 0] - }, - "1.3333": { - "vector": [-90, 0, 0] - }, - "1.5833": { - "vector": [-90, 0, 0] - }, - "1.7083": { - "vector": [-90, 0, 0] - }, - "2.5": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, -1, -1] - }, - "1.0": { - "vector": [0, -1, -2], - "easing": "easeInQuart" - }, - "1.125": { - "vector": [0, -1, -2], - "easing": "easeInQuart" - }, - "1.3333": { - "vector": [0, -1, -1] - }, - "1.5833": { - "vector": [0, -1, -2], - "easing": "easeInQuart" - }, - "1.7083": { - "vector": [0, -1, -2], - "easing": "easeInQuart" - }, - "2.5": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-37.5, 0, 0] - }, - "1.0": { - "vector": [-20, 0, 0], - "easing": "easeInQuart" - }, - "1.125": { - "vector": [-20, 0, 0], - "easing": "easeInQuart" - }, - "1.3333": { - "vector": [-37.5, 0, 0] - }, - "1.5833": { - "vector": [-20, 0, 0], - "easing": "easeInQuart" - }, - "1.7083": { - "vector": [-20, 0, 0], - "easing": "easeInQuart" - }, - "2.5": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - }, - "1.125": { - "vector": [0, 0, 0] - }, - "1.3333": { - "vector": [0, 0, 0] - }, - "1.5833": { - "vector": [0, 0, 0] - }, - "1.7083": { - "vector": [0, 0, 0] - }, - "2.5": { - "vector": [0, 0, 0] - } - } - } - } - }, - "animation.custom_model.brew": { - "loop": true, - "animation_length": 1.45833, - "bones": { - "body": { - "rotation": { - "vector": [17.5, 0, 0] - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [-120.02105, -45.03643, 93.2303] - }, - "0.125": { - "vector": [-100.02, -45.04, 93.23] - }, - "0.25": { - "vector": [-77.52, -45.04, 93.23] - }, - "0.5": { - "vector": [-26.92668, -53.53889, 69.5686] - }, - "0.875": { - "vector": [-94.43, -53.54, 69.57] - }, - "1.0833": { - "vector": [-120.02105, -45.03643, 93.2303] - }, - "1.2917": { - "vector": [-137.52, -45.04, 93.23] - }, - "1.4583": { - "vector": [-120.02105, -45.03643, 93.2303] - } - }, - "position": { - "0.0": { - "vector": [2, -1, -1] - }, - "0.25": { - "vector": [1.22, -1, 0.22] - }, - "0.5": { - "vector": [1.61, -1, 1.11] - }, - "0.875": { - "vector": [0, -1, 0] - }, - "1.0833": { - "vector": [2, -1, -1] - }, - "1.2917": { - "vector": [2, -1, -1] - }, - "1.4583": { - "vector": [2, -1, -1] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-35, 0, 0] - }, - "0.875": { - "vector": [-55, 0, 0] - }, - "1.0833": { - "vector": [-42.5, 0, 0] - }, - "1.4583": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "1.4583": { - "vector": [0, 0, 0] - } - } - }, - "head": { - "rotation": { - "vector": [20, 0, 0] - } - } - } - }, - "animation.custom_model.run": { - "loop": true, - "animation_length": 1, - "bones": { - "model": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [0, 1, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 1, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "body": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [30, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-30, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-30, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-30, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-30, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [30, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-30, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-30, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [32.5, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-32.5, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_leg_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [40, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "right_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-32.5, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [32.5, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "right_leg_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [40, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - } - } - }, - "animation.custom_model.walk": { - "loop": true, - "animation_length": 1, - "bones": { - "model": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [0, 0.5, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 0.5, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [10, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-10, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-10, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-10, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-10, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [10, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-10, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-10, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [15.5, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-15.5, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_leg_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [20, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "right_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-15.5, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [15.5, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "right_leg_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [20, 0, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - } - } - }, - "animation.custom_model.brew2": { - "animation_length": 1.33333, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [-50, -15, -9] - }, - "0.5": { - "vector": [-51.5751, 2.52446, 5.25413] - } - }, - "position": { - "vector": [1, -1, -1] - } - }, - "right_arm_2": { - "rotation": { - "vector": [0, 0, -30] - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [-50, 15, 9] - }, - "0.5": { - "vector": [-47.02428, 24.38316, 17.78628] - } - }, - "position": { - "0.0": { - "vector": [-1, -1, -1] - }, - "0.5": { - "vector": [-2, -1, -2] - } - } - }, - "left_arm_2": { - "rotation": { - "vector": [0, 0, 30] - } - }, - "item_spoon": { - "rotation": { - "vector": [153.93171, 0.46081, 52.87378] - }, - "position": { - "vector": [2, 0, 0] - } - } - } - }, - "animation.custom_model.chest_open": { - "animation_length": 1.625, - "bones": { - "body": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.375": { - "vector": [12.5, 0, 0] - }, - "0.625": { - "vector": [25, 0, 0] - }, - "1.0": { - "vector": [25, 0, 0] - }, - "1.125": { - "vector": [25, 0, 0] - }, - "1.625": { - "vector": [0, 0, 0] - } - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.375": { - "vector": [0, 0, 0] - }, - "0.625": { - "vector": [-40, 0, 0] - }, - "1.0": { - "vector": [-75, 0, 0], - "easing": "easeInQuad" - }, - "1.125": { - "vector": [-75, 0, 0], - "easing": "easeInQuad" - }, - "1.625": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.375": { - "vector": [0, 0, 0] - }, - "0.625": { - "vector": [-23, 0, 0] - }, - "1.0": { - "vector": [-23, 0, 0] - }, - "1.125": { - "vector": [-23, 0, 0] - }, - "1.625": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.375": { - "vector": [0, 0, 0] - }, - "0.625": { - "vector": [-40, 0, 0] - }, - "1.0": { - "vector": [-75, 0, 0], - "easing": "easeInQuad" - }, - "1.125": { - "vector": [-75, 0, 0], - "easing": "easeInQuad" - }, - "1.625": { - "vector": [0, 0, 0] - } - } - }, - "left_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.375": { - "vector": [0, 0, 0] - }, - "0.625": { - "vector": [-23, 0, 0] - }, - "1.0": { - "vector": [-23, 0, 0] - }, - "1.125": { - "vector": [-23, 0, 0] - }, - "1.625": { - "vector": [0, 0, 0] - } - } - } - } - }, - "animation.custom_model.chest_take_out": { - "loop": true, - "animation_length": 1, - "bones": { - "body": { - "rotation": { - "0.0": { - "vector": [35, 0, 0] - }, - "0.25": { - "vector": [35, 0, 0] - }, - "0.5": { - "vector": [35, 0, 0] - }, - "0.75": { - "vector": [35, 0, 0] - }, - "1.0": { - "vector": [35, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 1] - }, - "0.25": { - "vector": [0, 0, 1] - }, - "0.5": { - "vector": [0, 0, 1] - }, - "0.75": { - "vector": [0, 0, 1] - }, - "1.0": { - "vector": [0, 0, 1] - } - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [-87, -25, 71] - }, - "0.25": { - "vector": [-97.74133, -34.91799, 72.47889] - }, - "0.5": { - "vector": [-76.72009, -27.43457, 70.36655] - }, - "0.75": { - "vector": [-97.74133, -34.91799, 72.47889] - }, - "1.0": { - "vector": [-87, -25, 71] - } - }, - "position": { - "0.0": { - "vector": [1, -1, -1] - }, - "0.25": { - "vector": [1, -1, -1] - }, - "0.5": { - "vector": [1, -1, -1] - }, - "0.75": { - "vector": [1, -1, -1] - }, - "1.0": { - "vector": [1, -1, -1] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [-10, 0, 0] - }, - "0.25": { - "vector": [-10, 0, 0] - }, - "0.5": { - "vector": [-10, 0, 0] - }, - "0.75": { - "vector": [-10, 0, 0] - }, - "1.0": { - "vector": [-10, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [-87, 25, -71] - }, - "0.25": { - "vector": [-79.27637, 32.48899, -70.53597] - }, - "0.5": { - "vector": [-97.74133, 34.91799, -72.47889] - }, - "0.75": { - "vector": [-79.27637, 32.48899, -70.53597] - }, - "1.0": { - "vector": [-87, 25, -71] - } - }, - "position": { - "0.0": { - "vector": [-1, -1, -1] - }, - "0.25": { - "vector": [-1, -1, -1] - }, - "0.5": { - "vector": [-1, -1, -1] - }, - "0.75": { - "vector": [-1, -1, -1] - }, - "1.0": { - "vector": [-1, -1, -1] - } - } - }, - "left_arm_2": { - "rotation": { - "0.0": { - "vector": [-10, 0, 0] - }, - "0.25": { - "vector": [-10, 0, 0] - }, - "0.5": { - "vector": [-10, 0, 0] - }, - "0.75": { - "vector": [-10, 0, 0] - }, - "1.0": { - "vector": [-10, 0, 0] - } - } - }, - "model": { - "position": { - "0.0": { - "vector": [0, 0, -2] - }, - "1.0": { - "vector": [0, 0, -2] - } - } - } - } - }, - "animation.custom_model.step": { - "loop": "hold_on_last_frame", - "animation_length": 0.5, - "bones": { - "model": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [0, 0.5, -1] - }, - "0.5": { - "vector": [0, 0, -2] - } - } - }, - "left_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [-15.5, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - } - } - }, - "left_leg_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - } - } - }, - "right_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [15.5, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - } - } - }, - "right_leg_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.25": { - "vector": [20, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - } - } - } - } - }, - "item_test": { - "loop": true, - "animation_length": 2, - "bones": { - "right_arm": { - "rotation": { - "vector": [-30, 0, 0] - } - }, - "right_arm_2": { - "rotation": { - "vector": [-27.5, 0, 0] - } - }, - "held_item": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 90] - }, - "1.0": { - "vector": [0, 0, 180] - }, - "1.5": { - "vector": [0, 0, 270] - }, - "2.0": { - "vector": [0, 0, 360] - } - }, - "position": { - "vector": [0, 0, 0] - }, - "scale": { - "vector": [1, 1, 1] - } - } - } - }, - "rotate_hand": { - "loop": true, - "bones": { - "right_arm": { - "rotation": { - "vector": ["-90+math.cos(query.anim_time * 360)*20", "math.sin(query.anim_time * 360)*20", 0] - } - }, - "held_item": { - "rotation": { - "vector": [90, 0, 0] - } - }, - "held_item_locator": { - "position": { - "vector": [0, 0, -7] - }, - "scale": { - "vector": [0.5, 0.5, 0.5] - } - } - }, - "particle_effects": { - "0.0": { - "effect": "loading", - "locator": "held_item" - } - } - }, - "rotate_hand2": { - "loop": "hold_on_last_frame", - "animation_length": 7.58333, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": ["-90+math.cos(query.anim_time * 360)*3*query.anim_time", "math.sin(query.anim_time * 360)*3*query.anim_time", 0] - }, - "7.0": { - "vector": ["-90+math.cos(query.anim_time * 360)*3*query.anim_time", "math.sin(query.anim_time * 360)*3*query.anim_time", 0] - }, - "7.0417": { - "vector": [-65, 0, 0] - }, - "7.5833": { - "vector": [0, 0, 0] - } - } - }, - "held_item": { - "rotation": { - "vector": [90, 0, 0] - } - }, - "held_item_locator": { - "position": { - "vector": [0, 0, -7] - }, - "scale": { - "vector": [0.5, 0.5, 0.5] - } - } - }, - "particle_effects": { - "0.0": { - "effect": "draw", - "locator": "held_item", - "pre_effect_script": "140;" - } - } - }, - "float": { - "loop": true, - "animation_length": 2, - "bones": { - "model": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [0, -1.23, 0] - }, - "2.0": { - "vector": [0, 0, 0] - } - } - }, - "right_arm": { - "rotation": { - "vector": [0, 0, "22.5+115"] - }, - "position": { - "vector": [2, 0, 0] - } - }, - "left_arm": { - "rotation": { - "vector": [0, 0, "-22.5-115"] - }, - "position": { - "vector": [-2, 0, 0] - } - }, - "left_leg": { - "rotation": { - "vector": [0, 0, -15] - } - }, - "right_leg": { - "rotation": { - "vector": [0, 0, 15] - } - }, - "right_arm_2_locator": { - "rotation": { - "vector": [90, 0, 0] - }, - "scale": { - "vector": [0.5, 0.5, 0.5] - } - }, - "left_arm_2_locator": { - "rotation": { - "vector": [270, 180, 0] - }, - "scale": { - "vector": [0.5, 0.5, 0.5] - } - }, - "left_leg_2_locator": { - "rotation": { - "vector": [270, 180, 0] - }, - "scale": { - "vector": [0.5, 0.5, 0.5] - } - }, - "right_leg_2_locator": { - "rotation": { - "vector": [90, 0, 0] - }, - "scale": { - "vector": [0.5, 0.5, 0.5] - } - } - }, - "particle_effects": { - "0.0": { - "effect": "loading", - "locator": "right_arm_2" - }, - "0.01": { - "effect": "loading", - "locator": "left_arm_2" - }, - "0.02": { - "effect": "loading", - "locator": "left_leg_2" - }, - "0.03": { - "effect": "loading", - "locator": "right_leg_2" - } - } - }, - "show_item_right": { - "animation_length": 2.5, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-37.5, 72.5, 0], - "easing": "easeInOutSine" - }, - "2.25": { - "vector": [-37.5, 72.5, 0], - "easing": "easeInOutSine" - }, - "2.5": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [1, -1, 0], - "easing": "easeInOutSine" - }, - "2.25": { - "vector": [1, -1, 0], - "easing": "easeInOutSine" - }, - "2.5": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-47.5, 0, 0], - "easing": "easeInOutSine" - }, - "2.25": { - "vector": [-47.5, 0, 0], - "easing": "easeInOutSine" - }, - "2.5": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0.011, 0, 0], - "easing": "easeInOutSine" - }, - "2.25": { - "vector": [0.011, 0, 0], - "easing": "easeInOutSine" - }, - "2.5": { - "vector": [0, 0, 0] - } - } - }, - "held_item": { - "rotation": { - "0.75": { - "vector": [-45, 0, 0] - }, - "1.0": { - "vector": [-45, 0, 0] - } - }, - "position": { - "0.75": { - "vector": [0, -4, -4] - }, - "1.0": { - "vector": [0, -4, -4] - }, - "2.25": { - "vector": [0, -4, -4] - } - }, - "scale": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [1, 1, 1], - "easing": "easeOutCubic" - }, - "2.25": { - "vector": [1, 1, 1], - "easing": "easeOutCubic" - }, - "2.5": { - "vector": [0, 0, 0] - } - } - }, - "left_held_item": { - "scale": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.5": { - "vector": [0, 0, 0] - } - } - } - } - }, - "show_item_left": { - "animation_length": 2.5, - "bones": { - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-37.5, -72.5, 0], - "easing": "easeInOutSine" - }, - "2.25": { - "vector": [-37.5, -72.5, 0], - "easing": "easeInOutSine" - }, - "2.5": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-1, -1, 0], - "easing": "easeInOutSine" - }, - "2.25": { - "vector": [-1, -1, 0], - "easing": "easeInOutSine" - }, - "2.5": { - "vector": [0, 0, 0] - } - } - }, - "left_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-47.5, 0, 0], - "easing": "easeInOutSine" - }, - "2.25": { - "vector": [-47.5, 0, 0], - "easing": "easeInOutSine" - }, - "2.5": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0.011, 0, 0], - "easing": "easeInOutSine" - }, - "2.25": { - "vector": [0.011, 0, 0], - "easing": "easeInOutSine" - }, - "2.5": { - "vector": [0, 0, 0] - } - } - }, - "left_held_item": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [-45, 0, 0] - }, - "1.0": { - "vector": [-45, 0, 0] - } - }, - "position": { - "0.75": { - "vector": [0, -4, -4] - }, - "1.0": { - "vector": [0, -4, -4] - }, - "2.25": { - "vector": [0, -4, -4] - } - }, - "scale": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.75": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [1, 1, 1], - "easing": "easeOutCubic" - }, - "2.25": { - "vector": [1, 1, 1], - "easing": "easeOutCubic" - }, - "2.5": { - "vector": [0, 0, 0] - } - } - }, - "held_item": { - "scale": { - "0.0": { - "vector": [0, 0, 0] - }, - "2.5": { - "vector": [0, 0, 0] - } - } - } - } - }, - "Happy": { - "animation_length": 1.45833, - "bones": { - "model": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.3333": { - "vector": [0, 3, 0], - "easing": "easeOutElastic" - }, - "0.7083": { - "vector": [0, 0, 0], - "easing": "easeOutElastic" - } - } - }, - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.3333": { - "vector": [0, 0, 155], - "easing": "easeOutElastic" - }, - "0.5417": { - "vector": [0, 0, 155], - "easing": "easeOutElastic" - }, - "0.7083": { - "vector": [0, 0, 155], - "easing": "easeOutElastic" - }, - "1.125": { - "vector": [0, 0, 0], - "easing": "easeOutExpo" - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.3333": { - "vector": [2, -1, 0], - "easing": "linear" - }, - "0.5417": { - "vector": [2, -1, 0], - "easing": "linear" - }, - "0.7083": { - "vector": [2, -1, 0], - "easing": "linear" - }, - "0.9167": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.3333": { - "vector": [0, 0, -155], - "easing": "easeOutElastic" - }, - "0.5417": { - "vector": [0, 0, -155], - "easing": "easeOutElastic" - }, - "0.7083": { - "vector": [0, 0, -155], - "easing": "easeOutElastic" - }, - "1.125": { - "vector": [0, 0, 0], - "easing": "easeOutExpo" - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.3333": { - "vector": [-2, -1, 0], - "easing": "linear" - }, - "0.5417": { - "vector": [-2, -1, 0], - "easing": "linear" - }, - "0.7083": { - "vector": [-2, -1, 0], - "easing": "linear" - }, - "0.9167": { - "vector": [0, 0, 0] - } - } - }, - "left_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.375": { - "vector": [0, 0, -7.5], - "easing": "easeOutElastic" - }, - "0.5417": { - "vector": [0, 0, -7.5], - "easing": "easeOutElastic" - }, - "0.7083": { - "vector": [0, 0, 0] - } - } - }, - "right_leg": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.375": { - "vector": [0, 0, 7.5], - "easing": "easeOutElastic" - }, - "0.5417": { - "vector": [0, 0, 7.5], - "easing": "easeOutElastic" - }, - "0.7083": { - "vector": [0, 0, 0] - } - } - } - } - }, - "Sad": { - "loop": "hold_on_last_frame", - "animation_length": 1.33333, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 5] - }, - "0.625": { - "vector": [0, 0, 5] - }, - "1.0": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 1, 0] - }, - "0.625": { - "vector": [0, 1, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, -5] - }, - "0.625": { - "vector": [0, 0, -5] - }, - "1.0": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 1, 0] - }, - "0.625": { - "vector": [0, 1, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "head": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0] - }, - "0.625": { - "vector": [0, 0, 0] - }, - "1.0": { - "vector": [20, 0, 0], - "easing": "easeOutSine" - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 1, 0] - }, - "0.625": { - "vector": [0, 1, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - } - }, - "bodypart": { - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 1, 0] - }, - "0.625": { - "vector": [0, 1, 0] - }, - "1.0": { - "vector": [0, 0, 0] - } - }, - "scale": { - "0.0": { - "vector": [1, 1, 1] - }, - "0.5": { - "vector": [1, 1.1, 1] - }, - "0.625": { - "vector": [1, 1.1, 1] - }, - "1.0": { - "vector": [1, 1, 1] - } - } - } - } - }, - "think": { - "animation_length": 1.125, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-51.75329, -56.46179, -33.3055], - "easing": "easeInOutQuad" - }, - "1.0": { - "vector": [-51.75329, -56.46179, -33.3055] - }, - "1.125": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [2, -1, -3], - "easing": "easeInOutQuad" - }, - "1.0": { - "vector": [2, -1, -3] - }, - "1.125": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-45, 0, 0], - "easing": "easeInOutQuad" - }, - "1.0": { - "vector": [-45, 0, 0] - }, - "1.125": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, 0], - "easing": "easeInOutQuad" - }, - "1.0": { - "vector": [0, 0, 0] - }, - "1.125": { - "vector": [0, 0, 0] - } - } - } - } - }, - "askforhelp": { - "animation_length": 1.375, - "bones": { - "right_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-40.25, -43.91, -25.9] - }, - "1.25": { - "vector": [-40.25, -43.91, -25.9] - }, - "1.375": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [1.56, -1.56, -2.33] - }, - "1.25": { - "vector": [1.56, -1.56, -2.33] - }, - "1.375": { - "vector": [0, 0, 0] - } - } - }, - "right_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-70, 0, 0] - }, - "1.25": { - "vector": [-70, 0, 0] - }, - "1.375": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, -2.33] - }, - "1.25": { - "vector": [0, 0, -2.33] - }, - "1.375": { - "vector": [0, 0, 0] - } - } - }, - "left_arm": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-40.44, 44.33, 25.67] - }, - "1.25": { - "vector": [-40.44, 44.33, 25.67] - }, - "1.375": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-1.56, -1.56, -2.33] - }, - "1.25": { - "vector": [-1.56, -1.56, -2.33] - }, - "1.375": { - "vector": [0, 0, 0] - } - } - }, - "left_arm_2": { - "rotation": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [-70, 0, 0] - }, - "1.25": { - "vector": [-70, 0, 0] - }, - "1.375": { - "vector": [0, 0, 0] - } - }, - "position": { - "0.0": { - "vector": [0, 0, 0] - }, - "0.5": { - "vector": [0, 0, -2.33] - }, - "1.25": { - "vector": [0, 0, -2.33] - }, - "1.375": { - "vector": [0, 0, 0] - } - } - } - } - } - } -} \ No newline at end of file + "format_version": "1.8.0", + "animations": { + "animation.custom_model.wave": { + "animation_length": 1.75, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 90, + 122.5 + ], + "easing": "easeInOutSine" + }, + "1.5": { + "vector": [ + 0, + 90, + 122.5 + ] + }, + "1.75": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInOutSine" + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 1, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "1.5": { + "vector": [ + 1, + 0, + 0 + ] + }, + "1.75": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInOutSine" + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "0.6667": { + "vector": [ + -45, + 0, + 0 + ], + "easing": "linear" + }, + "0.8333": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "1.0": { + "vector": [ + -45, + 0, + 0 + ] + }, + "1.1667": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "1.3333": { + "vector": [ + -45, + 0, + 0 + ] + }, + "1.5": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "1.75": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "animation.custom_model.hammer_swing": { + "loop": true, + "animation_length": 2.5, + "bones": { + "body": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.5": { + "vector": [ + -7.5, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInQuad" + } + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + -40, + 0, + 0 + ], + "easing": "linear" + }, + "1.5": { + "vector": [ + -147.5, + 0, + 0 + ], + "easing": "linear" + }, + "2.0": { + "vector": [ + -40, + 0, + 0 + ], + "easing": "easeInQuad" + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.5": { + "vector": [ + -32.5, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInQuad" + } + } + }, + "left_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + -10 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + -10 + ] + } + } + }, + "right_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 10 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + 10 + ] + } + } + } + }, + "particle_effects": {} + }, + "animation.custom_model.idle": { + "loop": true, + "animation_length": 4, + "bones": { + "body": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0.3, + 0 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + 2.5 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + -2.5 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "vector": [ + 0, + 0, + -2.5 + ] + } + }, + "head": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + -2.5, + 0, + 0 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "headwear": { + "rotation": { + "vector": [ + -2.5, + 0, + 0 + ] + } + } + } + }, + "breath_hide_items": { + "loop": true, + "animation_length": 4, + "bones": { + "body": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0.3, + 0 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + 2.5 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + -2.5 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "vector": [ + 0, + 0, + -2.5 + ] + } + }, + "head": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.0": { + "vector": [ + -2.5, + 0, + 0 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "headwear": { + "rotation": { + "vector": [ + -2.5, + 0, + 0 + ] + } + }, + "held_item": { + "scale": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_held_item": { + "scale": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "4.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "idle_hide_items": { + "loop": true, + "bones": { + "held_item": { + "scale": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "left_held_item": { + "scale": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + }, + "animation.custom_model.stomp": { + "animation_length": 1.95833, + "bones": { + "body": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0.2, + 0 + ] + }, + "0.5833": { + "vector": [ + 0, + 0.2, + 0 + ] + }, + "0.7917": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInBounce", + "easingArgs": [ + 0.7 + ] + }, + "1.125": { + "vector": [ + 0, + 0.2, + 0 + ] + }, + "1.2083": { + "vector": [ + 0, + 0.2, + 0 + ] + }, + "1.4167": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInBounce", + "easingArgs": [ + 0.7 + ] + } + } + }, + "left_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -52.5, + 0, + 0 + ] + }, + "0.5833": { + "vector": [ + -52.5, + 0, + 0 + ] + }, + "0.7917": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0417": { + "vector": [ + -52.5, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + -52.5, + 0, + 0 + ] + }, + "1.3333": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_leg_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 42.5, + 0, + 0 + ] + }, + "0.5833": { + "vector": [ + 42.5, + 0, + 0 + ] + }, + "0.7917": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0417": { + "vector": [ + 42.5, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + 42.5, + 0, + 0 + ] + }, + "1.3333": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "animation.custom_model.clap": { + "animation_length": 1.33333, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -60, + -15, + -9 + ] + }, + "0.6667": { + "vector": [ + -61.09179, + 2.45846, + 0.85571 + ] + }, + "0.8333": { + "vector": [ + -60, + -15, + -9 + ] + }, + "0.9167": { + "vector": [ + -60, + -15, + -9 + ] + }, + "1.2083": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 1, + -1, + -1 + ] + }, + "0.6667": { + "vector": [ + 1, + -1, + -1 + ] + }, + "0.8333": { + "vector": [ + 1, + -1, + -1 + ] + }, + "0.9167": { + "vector": [ + 1, + -1, + -1 + ] + }, + "1.2083": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + -30 + ] + }, + "0.6667": { + "vector": [ + 0, + 0, + -17.5 + ] + }, + "0.8333": { + "vector": [ + 0, + 0, + -30 + ] + }, + "0.9167": { + "vector": [ + 0, + 0, + -30 + ] + }, + "1.2083": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.2083": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -60, + 15, + 9 + ] + }, + "0.6667": { + "vector": [ + -61.09179, + -2.45846, + -0.85571 + ] + }, + "0.8333": { + "vector": [ + -60, + 15, + 9 + ] + }, + "0.9167": { + "vector": [ + -60, + 15, + 9 + ] + }, + "1.2083": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -1, + -1, + -1 + ] + }, + "0.6667": { + "vector": [ + -1, + -1, + -1 + ] + }, + "0.8333": { + "vector": [ + -1, + -1, + -1 + ] + }, + "0.9167": { + "vector": [ + -1, + -1, + -1 + ] + }, + "1.2083": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 30 + ] + }, + "0.6667": { + "vector": [ + 0, + 0, + 17.5 + ] + }, + "0.8333": { + "vector": [ + 0, + 0, + 30 + ] + }, + "0.9167": { + "vector": [ + 0, + 0, + 30 + ] + }, + "1.2083": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.2083": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "animation.custom_model.knock": { + "animation_length": 1.58333, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -90, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -90, + 0, + 0 + ] + }, + "1.25": { + "vector": [ + -90, + 0, + 0 + ] + }, + "1.5833": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + -1, + -1 + ] + }, + "0.875": { + "vector": [ + 0, + -1, + -2 + ] + }, + "1.0": { + "vector": [ + 0, + -1, + -1 + ] + }, + "1.125": { + "vector": [ + 0, + -1, + -2 + ] + }, + "1.25": { + "vector": [ + 0, + -1, + -1 + ] + }, + "1.375": { + "vector": [ + 0, + -1, + -2 + ] + }, + "1.5833": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -37.5, + 0, + 0 + ] + }, + "0.875": { + "vector": [ + -20, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -37.5, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + -20, + 0, + 0 + ] + }, + "1.25": { + "vector": [ + -37.5, + 0, + 0 + ] + }, + "1.375": { + "vector": [ + -20, + 0, + 0 + ] + }, + "1.5833": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.25": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.5833": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "animation.custom_model.knock_hard": { + "animation_length": 2.5, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -90, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -90, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + -90, + 0, + 0 + ] + }, + "1.3333": { + "vector": [ + -90, + 0, + 0 + ] + }, + "1.5833": { + "vector": [ + -90, + 0, + 0 + ] + }, + "1.7083": { + "vector": [ + -90, + 0, + 0 + ] + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + -1, + -1 + ] + }, + "1.0": { + "vector": [ + 0, + -1, + -2 + ], + "easing": "easeInQuart" + }, + "1.125": { + "vector": [ + 0, + -1, + -2 + ], + "easing": "easeInQuart" + }, + "1.3333": { + "vector": [ + 0, + -1, + -1 + ] + }, + "1.5833": { + "vector": [ + 0, + -1, + -2 + ], + "easing": "easeInQuart" + }, + "1.7083": { + "vector": [ + 0, + -1, + -2 + ], + "easing": "easeInQuart" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -37.5, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -20, + 0, + 0 + ], + "easing": "easeInQuart" + }, + "1.125": { + "vector": [ + -20, + 0, + 0 + ], + "easing": "easeInQuart" + }, + "1.3333": { + "vector": [ + -37.5, + 0, + 0 + ] + }, + "1.5833": { + "vector": [ + -20, + 0, + 0 + ], + "easing": "easeInQuart" + }, + "1.7083": { + "vector": [ + -20, + 0, + 0 + ], + "easing": "easeInQuart" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.3333": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.5833": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.7083": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "animation.custom_model.brew": { + "loop": true, + "animation_length": 1.45833, + "bones": { + "body": { + "rotation": { + "vector": [ + 17.5, + 0, + 0 + ] + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + -120.02105, + -45.03643, + 93.2303 + ] + }, + "0.125": { + "vector": [ + -100.02, + -45.04, + 93.23 + ] + }, + "0.25": { + "vector": [ + -77.52, + -45.04, + 93.23 + ] + }, + "0.5": { + "vector": [ + -26.92668, + -53.53889, + 69.5686 + ] + }, + "0.875": { + "vector": [ + -94.43, + -53.54, + 69.57 + ] + }, + "1.0833": { + "vector": [ + -120.02105, + -45.03643, + 93.2303 + ] + }, + "1.2917": { + "vector": [ + -137.52, + -45.04, + 93.23 + ] + }, + "1.4583": { + "vector": [ + -120.02105, + -45.03643, + 93.2303 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 2, + -1, + -1 + ] + }, + "0.25": { + "vector": [ + 1.22, + -1, + 0.22 + ] + }, + "0.5": { + "vector": [ + 1.61, + -1, + 1.11 + ] + }, + "0.875": { + "vector": [ + 0, + -1, + 0 + ] + }, + "1.0833": { + "vector": [ + 2, + -1, + -1 + ] + }, + "1.2917": { + "vector": [ + 2, + -1, + -1 + ] + }, + "1.4583": { + "vector": [ + 2, + -1, + -1 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -35, + 0, + 0 + ] + }, + "0.875": { + "vector": [ + -55, + 0, + 0 + ] + }, + "1.0833": { + "vector": [ + -42.5, + 0, + 0 + ] + }, + "1.4583": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.4583": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "head": { + "rotation": { + "vector": [ + 20, + 0, + 0 + ] + } + } + } + }, + "animation.custom_model.run": { + "loop": true, + "animation_length": 1, + "bones": { + "model": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 0, + 1, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 1, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "body": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 30, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -30, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -30, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -30, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -30, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 30, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -30, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -30, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 32.5, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -32.5, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_leg_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 40, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -32.5, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 32.5, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_leg_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 40, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "animation.custom_model.walk": { + "loop": true, + "animation_length": 1, + "bones": { + "model": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 0, + 0.5, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 0.5, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 10, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -10, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -10, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 10, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -10, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 15.5, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -15.5, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_leg_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 20, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -15.5, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 15.5, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_leg_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 20, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "animation.custom_model.brew2": { + "animation_length": 1.33333, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + -50, + -15, + -9 + ] + }, + "0.5": { + "vector": [ + -51.5751, + 2.52446, + 5.25413 + ] + } + }, + "position": { + "vector": [ + 1, + -1, + -1 + ] + } + }, + "right_arm_2": { + "rotation": { + "vector": [ + 0, + 0, + -30 + ] + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + -50, + 15, + 9 + ] + }, + "0.5": { + "vector": [ + -47.02428, + 24.38316, + 17.78628 + ] + } + }, + "position": { + "0.0": { + "vector": [ + -1, + -1, + -1 + ] + }, + "0.5": { + "vector": [ + -2, + -1, + -2 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "vector": [ + 0, + 0, + 30 + ] + } + }, + "item_spoon": { + "rotation": { + "vector": [ + 153.93171, + 0.46081, + 52.87378 + ] + }, + "position": { + "vector": [ + 2, + 0, + 0 + ] + } + } + } + }, + "animation.custom_model.chest_open": { + "animation_length": 1.625, + "bones": { + "body": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.375": { + "vector": [ + 12.5, + 0, + 0 + ] + }, + "0.625": { + "vector": [ + 25, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 25, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + 25, + 0, + 0 + ] + }, + "1.625": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.375": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.625": { + "vector": [ + -40, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -75, + 0, + 0 + ], + "easing": "easeInQuad" + }, + "1.125": { + "vector": [ + -75, + 0, + 0 + ], + "easing": "easeInQuad" + }, + "1.625": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.375": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.625": { + "vector": [ + -23, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -23, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + -23, + 0, + 0 + ] + }, + "1.625": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.375": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.625": { + "vector": [ + -40, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -75, + 0, + 0 + ], + "easing": "easeInQuad" + }, + "1.125": { + "vector": [ + -75, + 0, + 0 + ], + "easing": "easeInQuad" + }, + "1.625": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.375": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.625": { + "vector": [ + -23, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -23, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + -23, + 0, + 0 + ] + }, + "1.625": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "animation.custom_model.chest_take_out": { + "loop": true, + "animation_length": 1, + "bones": { + "body": { + "rotation": { + "0.0": { + "vector": [ + 35, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 35, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 35, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 35, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 35, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 1 + ] + }, + "0.25": { + "vector": [ + 0, + 0, + 1 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 1 + ] + }, + "0.75": { + "vector": [ + 0, + 0, + 1 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 1 + ] + } + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + -87, + -25, + 71 + ] + }, + "0.25": { + "vector": [ + -97.74133, + -34.91799, + 72.47889 + ] + }, + "0.5": { + "vector": [ + -76.72009, + -27.43457, + 70.36655 + ] + }, + "0.75": { + "vector": [ + -97.74133, + -34.91799, + 72.47889 + ] + }, + "1.0": { + "vector": [ + -87, + -25, + 71 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 1, + -1, + -1 + ] + }, + "0.25": { + "vector": [ + 1, + -1, + -1 + ] + }, + "0.5": { + "vector": [ + 1, + -1, + -1 + ] + }, + "0.75": { + "vector": [ + 1, + -1, + -1 + ] + }, + "1.0": { + "vector": [ + 1, + -1, + -1 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -10, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -10, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + -87, + 25, + -71 + ] + }, + "0.25": { + "vector": [ + -79.27637, + 32.48899, + -70.53597 + ] + }, + "0.5": { + "vector": [ + -97.74133, + 34.91799, + -72.47889 + ] + }, + "0.75": { + "vector": [ + -79.27637, + 32.48899, + -70.53597 + ] + }, + "1.0": { + "vector": [ + -87, + 25, + -71 + ] + } + }, + "position": { + "0.0": { + "vector": [ + -1, + -1, + -1 + ] + }, + "0.25": { + "vector": [ + -1, + -1, + -1 + ] + }, + "0.5": { + "vector": [ + -1, + -1, + -1 + ] + }, + "0.75": { + "vector": [ + -1, + -1, + -1 + ] + }, + "1.0": { + "vector": [ + -1, + -1, + -1 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "0.0": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -10, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -10, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -10, + 0, + 0 + ] + } + } + }, + "model": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + -2 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + -2 + ] + } + } + } + } + }, + "animation.custom_model.step": { + "loop": "hold_on_last_frame", + "animation_length": 0.5, + "bones": { + "model": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 0, + 0.5, + -1 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + -2 + ] + } + } + }, + "left_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + -15.5, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_leg_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 15.5, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_leg_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.25": { + "vector": [ + 20, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "item_test": { + "loop": true, + "animation_length": 2, + "bones": { + "right_arm": { + "rotation": { + "vector": [ + -30, + 0, + 0 + ] + } + }, + "right_arm_2": { + "rotation": { + "vector": [ + -27.5, + 0, + 0 + ] + } + }, + "held_item": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 90 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 180 + ] + }, + "1.5": { + "vector": [ + 0, + 0, + 270 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + 360 + ] + } + }, + "position": { + "vector": [ + 0, + 0, + 0 + ] + }, + "scale": { + "vector": [ + 1, + 1, + 1 + ] + } + } + } + }, + "rotate_hand": { + "loop": true, + "bones": { + "right_arm": { + "rotation": { + "vector": [ + "-90+math.cos(query.anim_time * 360)*20", + "math.sin(query.anim_time * 360)*20", + 0 + ] + } + }, + "held_item": { + "rotation": { + "vector": [ + 90, + 0, + 0 + ] + } + }, + "held_item_locator": { + "position": { + "vector": [ + 0, + 0, + -7 + ] + }, + "scale": { + "vector": [ + 0.5, + 0.5, + 0.5 + ] + } + } + }, + "particle_effects": { + "0.0": { + "effect": "loading", + "locator": "held_item" + } + } + }, + "rotate_hand2": { + "loop": "hold_on_last_frame", + "animation_length": 7.58333, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + "-90+math.cos(query.anim_time * 360)*3*query.anim_time", + "math.sin(query.anim_time * 360)*3*query.anim_time", + 0 + ] + }, + "7.0": { + "vector": [ + "-90+math.cos(query.anim_time * 360)*3*query.anim_time", + "math.sin(query.anim_time * 360)*3*query.anim_time", + 0 + ] + }, + "7.0417": { + "vector": [ + -65, + 0, + 0 + ] + }, + "7.5833": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "held_item": { + "rotation": { + "vector": [ + 90, + 0, + 0 + ] + } + }, + "held_item_locator": { + "position": { + "vector": [ + 0, + 0, + -7 + ] + }, + "scale": { + "vector": [ + 0.5, + 0.5, + 0.5 + ] + } + } + }, + "particle_effects": { + "0.0": { + "effect": "draw", + "locator": "held_item", + "pre_effect_script": "140;" + } + } + }, + "float": { + "loop": true, + "animation_length": 2, + "bones": { + "model": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + -1.23, + 0 + ] + }, + "2.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm": { + "rotation": { + "vector": [ + 0, + 0, + "22.5+115" + ] + }, + "position": { + "vector": [ + 2, + 0, + 0 + ] + } + }, + "left_arm": { + "rotation": { + "vector": [ + 0, + 0, + "-22.5-115" + ] + }, + "position": { + "vector": [ + -2, + 0, + 0 + ] + } + }, + "left_leg": { + "rotation": { + "vector": [ + 0, + 0, + -15 + ] + } + }, + "right_leg": { + "rotation": { + "vector": [ + 0, + 0, + 15 + ] + } + }, + "right_arm_2_locator": { + "rotation": { + "vector": [ + 90, + 0, + 0 + ] + }, + "scale": { + "vector": [ + 0.5, + 0.5, + 0.5 + ] + } + }, + "left_arm_2_locator": { + "rotation": { + "vector": [ + 270, + 180, + 0 + ] + }, + "scale": { + "vector": [ + 0.5, + 0.5, + 0.5 + ] + } + }, + "left_leg_2_locator": { + "rotation": { + "vector": [ + 270, + 180, + 0 + ] + }, + "scale": { + "vector": [ + 0.5, + 0.5, + 0.5 + ] + } + }, + "right_leg_2_locator": { + "rotation": { + "vector": [ + 90, + 0, + 0 + ] + }, + "scale": { + "vector": [ + 0.5, + 0.5, + 0.5 + ] + } + } + }, + "particle_effects": { + "0.0": { + "effect": "loading", + "locator": "right_arm_2" + }, + "0.01": { + "effect": "loading", + "locator": "left_arm_2" + }, + "0.02": { + "effect": "loading", + "locator": "left_leg_2" + }, + "0.03": { + "effect": "loading", + "locator": "right_leg_2" + } + } + }, + "show_item_right": { + "animation_length": 2.5, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -37.5, + 72.5, + 0 + ], + "easing": "easeInOutSine" + }, + "2.25": { + "vector": [ + -37.5, + 72.5, + 0 + ], + "easing": "easeInOutSine" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 1, + -1, + 0 + ], + "easing": "easeInOutSine" + }, + "2.25": { + "vector": [ + 1, + -1, + 0 + ], + "easing": "easeInOutSine" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -47.5, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "2.25": { + "vector": [ + -47.5, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0.011, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "2.25": { + "vector": [ + 0.011, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "held_item": { + "rotation": { + "0.75": { + "vector": [ + -45, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -45, + 0, + 0 + ] + } + }, + "position": { + "0.75": { + "vector": [ + 0, + -4, + -4 + ] + }, + "1.0": { + "vector": [ + 0, + -4, + -4 + ] + }, + "2.25": { + "vector": [ + 0, + -4, + -4 + ] + } + }, + "scale": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 1, + 1, + 1 + ], + "easing": "easeOutCubic" + }, + "2.25": { + "vector": [ + 1, + 1, + 1 + ], + "easing": "easeOutCubic" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_held_item": { + "scale": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "show_item_left": { + "animation_length": 2.5, + "bones": { + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -37.5, + -72.5, + 0 + ], + "easing": "easeInOutSine" + }, + "2.25": { + "vector": [ + -37.5, + -72.5, + 0 + ], + "easing": "easeInOutSine" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -1, + -1, + 0 + ], + "easing": "easeInOutSine" + }, + "2.25": { + "vector": [ + -1, + -1, + 0 + ], + "easing": "easeInOutSine" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -47.5, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "2.25": { + "vector": [ + -47.5, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0.011, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "2.25": { + "vector": [ + 0.011, + 0, + 0 + ], + "easing": "easeInOutSine" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_held_item": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + -45, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + -45, + 0, + 0 + ] + } + }, + "position": { + "0.75": { + "vector": [ + 0, + -4, + -4 + ] + }, + "1.0": { + "vector": [ + 0, + -4, + -4 + ] + }, + "2.25": { + "vector": [ + 0, + -4, + -4 + ] + } + }, + "scale": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.75": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 1, + 1, + 1 + ], + "easing": "easeOutCubic" + }, + "2.25": { + "vector": [ + 1, + 1, + 1 + ], + "easing": "easeOutCubic" + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "held_item": { + "scale": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "2.5": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "Happy": { + "animation_length": 1.45833, + "bones": { + "model": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.3333": { + "vector": [ + 0, + 3, + 0 + ], + "easing": "easeOutElastic" + }, + "0.7083": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeOutElastic" + } + } + }, + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.3333": { + "vector": [ + 0, + 0, + 155 + ], + "easing": "easeOutElastic" + }, + "0.5417": { + "vector": [ + 0, + 0, + 155 + ], + "easing": "easeOutElastic" + }, + "0.7083": { + "vector": [ + 0, + 0, + 155 + ], + "easing": "easeOutElastic" + }, + "1.125": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeOutExpo" + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.3333": { + "vector": [ + 2, + -1, + 0 + ], + "easing": "linear" + }, + "0.5417": { + "vector": [ + 2, + -1, + 0 + ], + "easing": "linear" + }, + "0.7083": { + "vector": [ + 2, + -1, + 0 + ], + "easing": "linear" + }, + "0.9167": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.3333": { + "vector": [ + 0, + 0, + -155 + ], + "easing": "easeOutElastic" + }, + "0.5417": { + "vector": [ + 0, + 0, + -155 + ], + "easing": "easeOutElastic" + }, + "0.7083": { + "vector": [ + 0, + 0, + -155 + ], + "easing": "easeOutElastic" + }, + "1.125": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeOutExpo" + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.3333": { + "vector": [ + -2, + -1, + 0 + ], + "easing": "linear" + }, + "0.5417": { + "vector": [ + -2, + -1, + 0 + ], + "easing": "linear" + }, + "0.7083": { + "vector": [ + -2, + -1, + 0 + ], + "easing": "linear" + }, + "0.9167": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.375": { + "vector": [ + 0, + 0, + -7.5 + ], + "easing": "easeOutElastic" + }, + "0.5417": { + "vector": [ + 0, + 0, + -7.5 + ], + "easing": "easeOutElastic" + }, + "0.7083": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_leg": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.375": { + "vector": [ + 0, + 0, + 7.5 + ], + "easing": "easeOutElastic" + }, + "0.5417": { + "vector": [ + 0, + 0, + 7.5 + ], + "easing": "easeOutElastic" + }, + "0.7083": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "Sad": { + "loop": "hold_on_last_frame", + "animation_length": 1.33333, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 5 + ] + }, + "0.625": { + "vector": [ + 0, + 0, + 5 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 1, + 0 + ] + }, + "0.625": { + "vector": [ + 0, + 1, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + -5 + ] + }, + "0.625": { + "vector": [ + 0, + 0, + -5 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 1, + 0 + ] + }, + "0.625": { + "vector": [ + 0, + 1, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "head": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.625": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.0": { + "vector": [ + 20, + 0, + 0 + ], + "easing": "easeOutSine" + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 1, + 0 + ] + }, + "0.625": { + "vector": [ + 0, + 1, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "bodypart": { + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 1, + 0 + ] + }, + "0.625": { + "vector": [ + 0, + 1, + 0 + ] + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "scale": { + "0.0": { + "vector": [ + 1, + 1, + 1 + ] + }, + "0.5": { + "vector": [ + 1, + 1.1, + 1 + ] + }, + "0.625": { + "vector": [ + 1, + 1.1, + 1 + ] + }, + "1.0": { + "vector": [ + 1, + 1, + 1 + ] + } + } + } + } + }, + "think": { + "animation_length": 1.125, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -51.75329, + -56.46179, + -33.3055 + ], + "easing": "easeInOutQuad" + }, + "1.0": { + "vector": [ + -51.75329, + -56.46179, + -33.3055 + ] + }, + "1.125": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 2, + -1, + -3 + ], + "easing": "easeInOutQuad" + }, + "1.0": { + "vector": [ + 2, + -1, + -3 + ] + }, + "1.125": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -45, + 0, + 0 + ], + "easing": "easeInOutQuad" + }, + "1.0": { + "vector": [ + -45, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + 0 + ], + "easing": "easeInOutQuad" + }, + "1.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "1.125": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + }, + "askforhelp": { + "animation_length": 1.375, + "bones": { + "right_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -40.25, + -43.91, + -25.9 + ] + }, + "1.25": { + "vector": [ + -40.25, + -43.91, + -25.9 + ] + }, + "1.375": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 1.56, + -1.56, + -2.33 + ] + }, + "1.25": { + "vector": [ + 1.56, + -1.56, + -2.33 + ] + }, + "1.375": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "right_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -70, + 0, + 0 + ] + }, + "1.25": { + "vector": [ + -70, + 0, + 0 + ] + }, + "1.375": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + -2.33 + ] + }, + "1.25": { + "vector": [ + 0, + 0, + -2.33 + ] + }, + "1.375": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -40.44, + 44.33, + 25.67 + ] + }, + "1.25": { + "vector": [ + -40.44, + 44.33, + 25.67 + ] + }, + "1.375": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -1.56, + -1.56, + -2.33 + ] + }, + "1.25": { + "vector": [ + -1.56, + -1.56, + -2.33 + ] + }, + "1.375": { + "vector": [ + 0, + 0, + 0 + ] + } + } + }, + "left_arm_2": { + "rotation": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + -70, + 0, + 0 + ] + }, + "1.25": { + "vector": [ + -70, + 0, + 0 + ] + }, + "1.375": { + "vector": [ + 0, + 0, + 0 + ] + } + }, + "position": { + "0.0": { + "vector": [ + 0, + 0, + 0 + ] + }, + "0.5": { + "vector": [ + 0, + 0, + -2.33 + ] + }, + "1.25": { + "vector": [ + 0, + 0, + -2.33 + ] + }, + "1.375": { + "vector": [ + 0, + 0, + 0 + ] + } + } + } + } + } + } +} diff --git a/src/main/resources/assets/npcgecko/geo/animfilenotfound.geo.json b/src/main/resources/assets/npcgecko/geo/animfilenotfound.geo.json index 62b30ab..697cfa6 100644 --- a/src/main/resources/assets/npcgecko/geo/animfilenotfound.geo.json +++ b/src/main/resources/assets/npcgecko/geo/animfilenotfound.geo.json @@ -1,400 +1,1450 @@ { - "format_version": "1.12.0", - "minecraft:geometry": [ - { - "description": { - "identifier": "geometry.unknown", - "texture_width": 3000, - "texture_height": 960, - "visible_bounds_width": 4, - "visible_bounds_height": 2.5, - "visible_bounds_offset": [0, 0.75, 0] - }, - "bones": [ - { - "name": "animation_file_not_found", - "pivot": [-13, 2, 0] - }, - { - "name": "animation", - "parent": "animation_file_not_found", - "pivot": [18.212, 7.7834, 0] - }, - { - "name": "a2", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [-12.4492, 7.967, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [0, 66], "uv_size": [84, 120]}, - "south": {"uv": [84, 66], "uv_size": [-84, 120]}, - "up": {"uv": [0, 0], "uv_size": [84, 66]}, - "down": {"uv": [0, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "n2", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [-9.5116, 7.967, 0.6902], - "size": [2.9376, 3.672, 0.017], - "uv": { - "north": {"uv": [1266, 66], "uv_size": [96, 120]}, - "south": {"uv": [1362, 66], "uv_size": [-96, 120]}, - "up": {"uv": [1266, 0], "uv_size": [96, 66]}, - "down": {"uv": [1266, 186], "uv_size": [96, 66]} - } - } - ] - }, - { - "name": "i2", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [-6.2068, 7.967, 0.6902], - "size": [1.1016, 3.672, 0.017], - "uv": { - "north": {"uv": [810, 66], "uv_size": [36, 120]}, - "south": {"uv": [846, 66], "uv_size": [-36, 120]}, - "up": {"uv": [810, 0], "uv_size": [36, 66]}, - "down": {"uv": [810, 186], "uv_size": [36, 66]} - } - } - ] - }, - { - "name": "m", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [-4.738, 7.967, 0.6902], - "size": [3.672, 3.672, 0.017], - "uv": { - "north": {"uv": [1110, 66], "uv_size": [120, 120]}, - "east": {"uv": [6, 804], "uv_size": [3, -6]}, - "south": {"uv": [1230, 66], "uv_size": [-120, 120]}, - "west": {"uv": [6, 804], "uv_size": [3, -6]}, - "up": {"uv": [1110, 0], "uv_size": [120, 66]}, - "down": {"uv": [1110, 186], "uv_size": [120, 66]} - } - } - ] - }, - { - "name": "a", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [-0.6988, 7.967, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [90, 66], "uv_size": [84, 120]}, - "south": {"uv": [174, 66], "uv_size": [-84, 120]}, - "up": {"uv": [90, 0], "uv_size": [84, 66]}, - "down": {"uv": [90, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "t2", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [2.2388, 7.967, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [1830, 66], "uv_size": [84, 120]}, - "south": {"uv": [1914, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1830, 0], "uv_size": [84, 66]}, - "down": {"uv": [1830, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "i3", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [5.1764, 7.967, 0.6902], - "size": [1.1016, 3.672, 0.017], - "uv": { - "north": {"uv": [810, 66], "uv_size": [36, 120]}, - "south": {"uv": [846, 66], "uv_size": [-36, 120]}, - "up": {"uv": [810, 0], "uv_size": [36, 66]}, - "down": {"uv": [810, 186], "uv_size": [36, 66]} - } - } - ] - }, - { - "name": "o2", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [6.6452, 7.967, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [1368, 66], "uv_size": [84, 120]}, - "south": {"uv": [1452, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1368, 0], "uv_size": [84, 66]}, - "down": {"uv": [1368, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "n3", - "parent": "animation", - "pivot": [18.212, 7.7834, 0], - "cubes": [ - { - "origin": [9.5828, 7.967, 0.6902], - "size": [2.9376, 3.672, 0.017], - "uv": { - "north": {"uv": [1266, 66], "uv_size": [96, 120]}, - "south": {"uv": [1362, 66], "uv_size": [-96, 120]}, - "up": {"uv": [1266, 0], "uv_size": [96, 66]}, - "down": {"uv": [1266, 186], "uv_size": [96, 66]} - } - } - ] - }, - { - "name": "file", - "parent": "animation_file_not_found", - "pivot": [-13, 2, 0] - }, - { - "name": "f2", - "parent": "file", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [-17.59, 2.1836, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [540, 66], "uv_size": [84, 120]}, - "south": {"uv": [624, 66], "uv_size": [-84, 120]}, - "up": {"uv": [540, 0], "uv_size": [84, 66]}, - "down": {"uv": [540, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "i", - "parent": "file", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [-14.6524, 2.1836, 0.6902], - "size": [1.1016, 3.672, 0.017], - "uv": { - "north": {"uv": [810, 66], "uv_size": [36, 120]}, - "south": {"uv": [846, 66], "uv_size": [-36, 120]}, - "up": {"uv": [810, 0], "uv_size": [36, 66]}, - "down": {"uv": [810, 186], "uv_size": [36, 66]} - } - } - ] - }, - { - "name": "l", - "parent": "file", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [-13.1836, 2.1836, 0.6902], - "size": [2.2032, 3.672, 0.017], - "uv": { - "north": {"uv": [1032, 66], "uv_size": [72, 120]}, - "south": {"uv": [1104, 66], "uv_size": [-72, 120]}, - "up": {"uv": [1032, 0], "uv_size": [72, 66]}, - "down": {"uv": [1032, 186], "uv_size": [72, 66]} - } - } - ] - }, - { - "name": "e", - "parent": "file", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [-10.6132, 2.1836, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [450, 66], "uv_size": [84, 120]}, - "south": {"uv": [534, 66], "uv_size": [-84, 120]}, - "up": {"uv": [450, 0], "uv_size": [84, 66]}, - "down": {"uv": [450, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "not", - "parent": "animation_file_not_found", - "pivot": [-13, 2, 0] - }, - { - "name": "n4", - "parent": "not", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [-6.9412, 2.1836, 0.6902], - "size": [2.9376, 3.672, 0.017], - "uv": { - "north": {"uv": [1266, 66], "uv_size": [96, 120]}, - "south": {"uv": [1362, 66], "uv_size": [-96, 120]}, - "up": {"uv": [1266, 0], "uv_size": [96, 66]}, - "down": {"uv": [1266, 186], "uv_size": [96, 66]} - } - } - ] - }, - { - "name": "o3", - "parent": "not", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [-3.6364, 2.1836, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [1368, 66], "uv_size": [84, 120]}, - "south": {"uv": [1452, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1368, 0], "uv_size": [84, 66]}, - "down": {"uv": [1368, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "t", - "parent": "not", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [-0.6988, 2.1836, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [1830, 66], "uv_size": [84, 120]}, - "south": {"uv": [1914, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1830, 0], "uv_size": [84, 66]}, - "down": {"uv": [1830, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "found", - "parent": "animation_file_not_found", - "pivot": [-13, 2, 0] - }, - { - "name": "f", - "parent": "found", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [2.9732, 2.1836, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [540, 66], "uv_size": [84, 120]}, - "south": {"uv": [624, 66], "uv_size": [-84, 120]}, - "up": {"uv": [540, 0], "uv_size": [84, 66]}, - "down": {"uv": [540, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "o", - "parent": "found", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [5.9108, 2.1836, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [1368, 66], "uv_size": [84, 120]}, - "south": {"uv": [1452, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1368, 0], "uv_size": [84, 66]}, - "down": {"uv": [1368, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "u", - "parent": "found", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [8.8484, 2.1836, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [1920, 66], "uv_size": [84, 120]}, - "south": {"uv": [2004, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1920, 0], "uv_size": [84, 66]}, - "down": {"uv": [1920, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "n", - "parent": "found", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [11.786, 2.1836, 0.6902], - "size": [2.9376, 3.672, 0.017], - "uv": { - "north": {"uv": [1266, 66], "uv_size": [96, 120]}, - "south": {"uv": [1362, 66], "uv_size": [-96, 120]}, - "up": {"uv": [1266, 0], "uv_size": [96, 66]}, - "down": {"uv": [1266, 186], "uv_size": [96, 66]} - } - } - ] - }, - { - "name": "d", - "parent": "found", - "pivot": [-13, 2, 0], - "cubes": [ - { - "origin": [15.0908, 2.1836, 0.6902], - "size": [2.5704, 3.672, 0.017], - "uv": { - "north": {"uv": [360, 66], "uv_size": [84, 120]}, - "south": {"uv": [444, 66], "uv_size": [-84, 120]}, - "up": {"uv": [360, 0], "uv_size": [84, 66]}, - "down": {"uv": [360, 186], "uv_size": [84, 66]} - } - } - ] - } - ] - } - ] -} \ No newline at end of file + "format_version": "1.12.0", + "minecraft:geometry": [ + { + "description": { + "identifier": "geometry.unknown", + "texture_width": 3000, + "texture_height": 960, + "visible_bounds_width": 4, + "visible_bounds_height": 2.5, + "visible_bounds_offset": [ + 0, + 0.75, + 0 + ] + }, + "bones": [ + { + "name": "animation_file_not_found", + "pivot": [ + -13, + 2, + 0 + ] + }, + { + "name": "animation", + "parent": "animation_file_not_found", + "pivot": [ + 18.212, + 7.7834, + 0 + ] + }, + { + "name": "a2", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + -12.4492, + 7.967, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 0, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 84, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 0, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 0, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "n2", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + -9.5116, + 7.967, + 0.6902 + ], + "size": [ + 2.9376, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1266, + 66 + ], + "uv_size": [ + 96, + 120 + ] + }, + "south": { + "uv": [ + 1362, + 66 + ], + "uv_size": [ + -96, + 120 + ] + }, + "up": { + "uv": [ + 1266, + 0 + ], + "uv_size": [ + 96, + 66 + ] + }, + "down": { + "uv": [ + 1266, + 186 + ], + "uv_size": [ + 96, + 66 + ] + } + } + } + ] + }, + { + "name": "i2", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + -6.2068, + 7.967, + 0.6902 + ], + "size": [ + 1.1016, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 810, + 66 + ], + "uv_size": [ + 36, + 120 + ] + }, + "south": { + "uv": [ + 846, + 66 + ], + "uv_size": [ + -36, + 120 + ] + }, + "up": { + "uv": [ + 810, + 0 + ], + "uv_size": [ + 36, + 66 + ] + }, + "down": { + "uv": [ + 810, + 186 + ], + "uv_size": [ + 36, + 66 + ] + } + } + } + ] + }, + { + "name": "m", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + -4.738, + 7.967, + 0.6902 + ], + "size": [ + 3.672, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1110, + 66 + ], + "uv_size": [ + 120, + 120 + ] + }, + "east": { + "uv": [ + 6, + 804 + ], + "uv_size": [ + 3, + -6 + ] + }, + "south": { + "uv": [ + 1230, + 66 + ], + "uv_size": [ + -120, + 120 + ] + }, + "west": { + "uv": [ + 6, + 804 + ], + "uv_size": [ + 3, + -6 + ] + }, + "up": { + "uv": [ + 1110, + 0 + ], + "uv_size": [ + 120, + 66 + ] + }, + "down": { + "uv": [ + 1110, + 186 + ], + "uv_size": [ + 120, + 66 + ] + } + } + } + ] + }, + { + "name": "a", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + -0.6988, + 7.967, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 90, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 174, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 90, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 90, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "t2", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + 2.2388, + 7.967, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1830, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1914, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1830, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1830, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "i3", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + 5.1764, + 7.967, + 0.6902 + ], + "size": [ + 1.1016, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 810, + 66 + ], + "uv_size": [ + 36, + 120 + ] + }, + "south": { + "uv": [ + 846, + 66 + ], + "uv_size": [ + -36, + 120 + ] + }, + "up": { + "uv": [ + 810, + 0 + ], + "uv_size": [ + 36, + 66 + ] + }, + "down": { + "uv": [ + 810, + 186 + ], + "uv_size": [ + 36, + 66 + ] + } + } + } + ] + }, + { + "name": "o2", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + 6.6452, + 7.967, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1368, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1452, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1368, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1368, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "n3", + "parent": "animation", + "pivot": [ + 18.212, + 7.7834, + 0 + ], + "cubes": [ + { + "origin": [ + 9.5828, + 7.967, + 0.6902 + ], + "size": [ + 2.9376, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1266, + 66 + ], + "uv_size": [ + 96, + 120 + ] + }, + "south": { + "uv": [ + 1362, + 66 + ], + "uv_size": [ + -96, + 120 + ] + }, + "up": { + "uv": [ + 1266, + 0 + ], + "uv_size": [ + 96, + 66 + ] + }, + "down": { + "uv": [ + 1266, + 186 + ], + "uv_size": [ + 96, + 66 + ] + } + } + } + ] + }, + { + "name": "file", + "parent": "animation_file_not_found", + "pivot": [ + -13, + 2, + 0 + ] + }, + { + "name": "f2", + "parent": "file", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + -17.59, + 2.1836, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 540, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 624, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 540, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 540, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "i", + "parent": "file", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + -14.6524, + 2.1836, + 0.6902 + ], + "size": [ + 1.1016, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 810, + 66 + ], + "uv_size": [ + 36, + 120 + ] + }, + "south": { + "uv": [ + 846, + 66 + ], + "uv_size": [ + -36, + 120 + ] + }, + "up": { + "uv": [ + 810, + 0 + ], + "uv_size": [ + 36, + 66 + ] + }, + "down": { + "uv": [ + 810, + 186 + ], + "uv_size": [ + 36, + 66 + ] + } + } + } + ] + }, + { + "name": "l", + "parent": "file", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + -13.1836, + 2.1836, + 0.6902 + ], + "size": [ + 2.2032, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1032, + 66 + ], + "uv_size": [ + 72, + 120 + ] + }, + "south": { + "uv": [ + 1104, + 66 + ], + "uv_size": [ + -72, + 120 + ] + }, + "up": { + "uv": [ + 1032, + 0 + ], + "uv_size": [ + 72, + 66 + ] + }, + "down": { + "uv": [ + 1032, + 186 + ], + "uv_size": [ + 72, + 66 + ] + } + } + } + ] + }, + { + "name": "e", + "parent": "file", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + -10.6132, + 2.1836, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 450, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 534, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 450, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 450, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "not", + "parent": "animation_file_not_found", + "pivot": [ + -13, + 2, + 0 + ] + }, + { + "name": "n4", + "parent": "not", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + -6.9412, + 2.1836, + 0.6902 + ], + "size": [ + 2.9376, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1266, + 66 + ], + "uv_size": [ + 96, + 120 + ] + }, + "south": { + "uv": [ + 1362, + 66 + ], + "uv_size": [ + -96, + 120 + ] + }, + "up": { + "uv": [ + 1266, + 0 + ], + "uv_size": [ + 96, + 66 + ] + }, + "down": { + "uv": [ + 1266, + 186 + ], + "uv_size": [ + 96, + 66 + ] + } + } + } + ] + }, + { + "name": "o3", + "parent": "not", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + -3.6364, + 2.1836, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1368, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1452, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1368, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1368, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "t", + "parent": "not", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + -0.6988, + 2.1836, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1830, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1914, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1830, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1830, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "found", + "parent": "animation_file_not_found", + "pivot": [ + -13, + 2, + 0 + ] + }, + { + "name": "f", + "parent": "found", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + 2.9732, + 2.1836, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 540, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 624, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 540, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 540, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "o", + "parent": "found", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + 5.9108, + 2.1836, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1368, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1452, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1368, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1368, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "u", + "parent": "found", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + 8.8484, + 2.1836, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1920, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 2004, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1920, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1920, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "n", + "parent": "found", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + 11.786, + 2.1836, + 0.6902 + ], + "size": [ + 2.9376, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 1266, + 66 + ], + "uv_size": [ + 96, + 120 + ] + }, + "south": { + "uv": [ + 1362, + 66 + ], + "uv_size": [ + -96, + 120 + ] + }, + "up": { + "uv": [ + 1266, + 0 + ], + "uv_size": [ + 96, + 66 + ] + }, + "down": { + "uv": [ + 1266, + 186 + ], + "uv_size": [ + 96, + 66 + ] + } + } + } + ] + }, + { + "name": "d", + "parent": "found", + "pivot": [ + -13, + 2, + 0 + ], + "cubes": [ + { + "origin": [ + 15.0908, + 2.1836, + 0.6902 + ], + "size": [ + 2.5704, + 3.672, + 0.017 + ], + "uv": { + "north": { + "uv": [ + 360, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 444, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 360, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 360, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + } + ] + } + ] +} diff --git a/src/main/resources/assets/npcgecko/geo/modelnotfound.geo.json b/src/main/resources/assets/npcgecko/geo/modelnotfound.geo.json index cbe5b7d..2de67e3 100644 --- a/src/main/resources/assets/npcgecko/geo/modelnotfound.geo.json +++ b/src/main/resources/assets/npcgecko/geo/modelnotfound.geo.json @@ -1,259 +1,921 @@ { - "format_version": "1.12.0", - "minecraft:geometry": [ - { - "description": { - "identifier": "geometry.unknown", - "texture_width": 3000, - "texture_height": 960, - "visible_bounds_width": 3, - "visible_bounds_height": 2.5, - "visible_bounds_offset": [0, 0.75, 0] - }, - "bones": [ - { - "name": "model_not_found", - "pivot": [-8, 3, 0] - }, - { - "name": "model", - "parent": "model_not_found", - "pivot": [11.323, 8.301, 0] - }, - { - "name": "m", - "parent": "model", - "pivot": [11.323, 8.301, 0], - "cubes": [ - { - "origin": [-7.658, 8.472, -0.0595], - "size": [3.42, 3.42, 0.05], - "uv": { - "north": {"uv": [1110, 66], "uv_size": [120, 120]}, - "east": {"uv": [6, 804], "uv_size": [3, -6]}, - "south": {"uv": [1230, 66], "uv_size": [-120, 120]}, - "west": {"uv": [6, 804], "uv_size": [3, -6]}, - "up": {"uv": [1110, 0], "uv_size": [120, 66]}, - "down": {"uv": [1110, 186], "uv_size": [120, 66]} - } - } - ] - }, - { - "name": "o2", - "parent": "model", - "pivot": [11.323, 8.301, 0], - "cubes": [ - { - "origin": [-3.896, 8.472, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [1368, 66], "uv_size": [84, 120]}, - "south": {"uv": [1452, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1368, 0], "uv_size": [84, 66]}, - "down": {"uv": [1368, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "d2", - "parent": "model", - "pivot": [11.323, 8.301, 0], - "cubes": [ - { - "origin": [-1.16, 8.472, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [360, 66], "uv_size": [84, 120]}, - "south": {"uv": [444, 66], "uv_size": [-84, 120]}, - "up": {"uv": [360, 0], "uv_size": [84, 66]}, - "down": {"uv": [360, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "e", - "parent": "model", - "pivot": [11.323, 8.301, 0], - "cubes": [ - { - "origin": [1.576, 8.472, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [450, 66], "uv_size": [84, 120]}, - "south": {"uv": [534, 66], "uv_size": [-84, 120]}, - "up": {"uv": [450, 0], "uv_size": [84, 66]}, - "down": {"uv": [450, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "l", - "parent": "model", - "pivot": [11.323, 8.301, 0], - "cubes": [ - { - "origin": [4.312, 8.472, -0.0595], - "size": [2.052, 3.42, 0.05], - "uv": { - "north": {"uv": [1032, 66], "uv_size": [72, 120]}, - "south": {"uv": [1104, 66], "uv_size": [-72, 120]}, - "up": {"uv": [1032, 0], "uv_size": [72, 66]}, - "down": {"uv": [1032, 186], "uv_size": [72, 66]} - } - } - ] - }, - { - "name": "not", - "parent": "model_not_found", - "pivot": [-8, 3, 0] - }, - { - "name": "n2", - "parent": "not", - "pivot": [-8, 3, 0], - "cubes": [ - { - "origin": [-11.933, 3.171, -0.0595], - "size": [2.736, 3.42, 0.05], - "uv": { - "north": {"uv": [1266, 66], "uv_size": [96, 120]}, - "south": {"uv": [1362, 66], "uv_size": [-96, 120]}, - "up": {"uv": [1266, 0], "uv_size": [96, 66]}, - "down": {"uv": [1266, 186], "uv_size": [96, 66]} - } - } - ] - }, - { - "name": "o3", - "parent": "not", - "pivot": [-8, 3, 0], - "cubes": [ - { - "origin": [-8.855, 3.171, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [1368, 66], "uv_size": [84, 120]}, - "south": {"uv": [1452, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1368, 0], "uv_size": [84, 66]}, - "down": {"uv": [1368, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "t", - "parent": "not", - "pivot": [-8, 3, 0], - "cubes": [ - { - "origin": [-6.119, 3.171, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [1830, 66], "uv_size": [84, 120]}, - "south": {"uv": [1914, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1830, 0], "uv_size": [84, 66]}, - "down": {"uv": [1830, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "found", - "parent": "model_not_found", - "pivot": [-8, 3, 0] - }, - { - "name": "f", - "parent": "found", - "pivot": [-8, 3, 0], - "cubes": [ - { - "origin": [-2.699, 3.171, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [540, 66], "uv_size": [84, 120]}, - "south": {"uv": [624, 66], "uv_size": [-84, 120]}, - "up": {"uv": [540, 0], "uv_size": [84, 66]}, - "down": {"uv": [540, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "o", - "parent": "found", - "pivot": [-8, 3, 0], - "cubes": [ - { - "origin": [0.037, 3.171, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [1368, 66], "uv_size": [84, 120]}, - "south": {"uv": [1452, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1368, 0], "uv_size": [84, 66]}, - "down": {"uv": [1368, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "u", - "parent": "found", - "pivot": [-8, 3, 0], - "cubes": [ - { - "origin": [2.773, 3.171, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [1920, 66], "uv_size": [84, 120]}, - "south": {"uv": [2004, 66], "uv_size": [-84, 120]}, - "up": {"uv": [1920, 0], "uv_size": [84, 66]}, - "down": {"uv": [1920, 186], "uv_size": [84, 66]} - } - } - ] - }, - { - "name": "n", - "parent": "found", - "pivot": [-8, 3, 0], - "cubes": [ - { - "origin": [5.509, 3.171, -0.0595], - "size": [2.736, 3.42, 0.05], - "uv": { - "north": {"uv": [1266, 66], "uv_size": [96, 120]}, - "south": {"uv": [1362, 66], "uv_size": [-96, 120]}, - "up": {"uv": [1266, 0], "uv_size": [96, 66]}, - "down": {"uv": [1266, 186], "uv_size": [96, 66]} - } - } - ] - }, - { - "name": "d", - "parent": "found", - "pivot": [-8, 3, 0], - "cubes": [ - { - "origin": [8.587, 3.171, -0.0595], - "size": [2.394, 3.42, 0.05], - "uv": { - "north": {"uv": [360, 66], "uv_size": [84, 120]}, - "south": {"uv": [444, 66], "uv_size": [-84, 120]}, - "up": {"uv": [360, 0], "uv_size": [84, 66]}, - "down": {"uv": [360, 186], "uv_size": [84, 66]} - } - } - ] - } - ] - } - ] -} \ No newline at end of file + "format_version": "1.12.0", + "minecraft:geometry": [ + { + "description": { + "identifier": "geometry.unknown", + "texture_width": 3000, + "texture_height": 960, + "visible_bounds_width": 3, + "visible_bounds_height": 2.5, + "visible_bounds_offset": [ + 0, + 0.75, + 0 + ] + }, + "bones": [ + { + "name": "model_not_found", + "pivot": [ + -8, + 3, + 0 + ] + }, + { + "name": "model", + "parent": "model_not_found", + "pivot": [ + 11.323, + 8.301, + 0 + ] + }, + { + "name": "m", + "parent": "model", + "pivot": [ + 11.323, + 8.301, + 0 + ], + "cubes": [ + { + "origin": [ + -7.658, + 8.472, + -0.0595 + ], + "size": [ + 3.42, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1110, + 66 + ], + "uv_size": [ + 120, + 120 + ] + }, + "east": { + "uv": [ + 6, + 804 + ], + "uv_size": [ + 3, + -6 + ] + }, + "south": { + "uv": [ + 1230, + 66 + ], + "uv_size": [ + -120, + 120 + ] + }, + "west": { + "uv": [ + 6, + 804 + ], + "uv_size": [ + 3, + -6 + ] + }, + "up": { + "uv": [ + 1110, + 0 + ], + "uv_size": [ + 120, + 66 + ] + }, + "down": { + "uv": [ + 1110, + 186 + ], + "uv_size": [ + 120, + 66 + ] + } + } + } + ] + }, + { + "name": "o2", + "parent": "model", + "pivot": [ + 11.323, + 8.301, + 0 + ], + "cubes": [ + { + "origin": [ + -3.896, + 8.472, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1368, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1452, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1368, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1368, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "d2", + "parent": "model", + "pivot": [ + 11.323, + 8.301, + 0 + ], + "cubes": [ + { + "origin": [ + -1.16, + 8.472, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 360, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 444, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 360, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 360, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "e", + "parent": "model", + "pivot": [ + 11.323, + 8.301, + 0 + ], + "cubes": [ + { + "origin": [ + 1.576, + 8.472, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 450, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 534, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 450, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 450, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "l", + "parent": "model", + "pivot": [ + 11.323, + 8.301, + 0 + ], + "cubes": [ + { + "origin": [ + 4.312, + 8.472, + -0.0595 + ], + "size": [ + 2.052, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1032, + 66 + ], + "uv_size": [ + 72, + 120 + ] + }, + "south": { + "uv": [ + 1104, + 66 + ], + "uv_size": [ + -72, + 120 + ] + }, + "up": { + "uv": [ + 1032, + 0 + ], + "uv_size": [ + 72, + 66 + ] + }, + "down": { + "uv": [ + 1032, + 186 + ], + "uv_size": [ + 72, + 66 + ] + } + } + } + ] + }, + { + "name": "not", + "parent": "model_not_found", + "pivot": [ + -8, + 3, + 0 + ] + }, + { + "name": "n2", + "parent": "not", + "pivot": [ + -8, + 3, + 0 + ], + "cubes": [ + { + "origin": [ + -11.933, + 3.171, + -0.0595 + ], + "size": [ + 2.736, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1266, + 66 + ], + "uv_size": [ + 96, + 120 + ] + }, + "south": { + "uv": [ + 1362, + 66 + ], + "uv_size": [ + -96, + 120 + ] + }, + "up": { + "uv": [ + 1266, + 0 + ], + "uv_size": [ + 96, + 66 + ] + }, + "down": { + "uv": [ + 1266, + 186 + ], + "uv_size": [ + 96, + 66 + ] + } + } + } + ] + }, + { + "name": "o3", + "parent": "not", + "pivot": [ + -8, + 3, + 0 + ], + "cubes": [ + { + "origin": [ + -8.855, + 3.171, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1368, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1452, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1368, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1368, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "t", + "parent": "not", + "pivot": [ + -8, + 3, + 0 + ], + "cubes": [ + { + "origin": [ + -6.119, + 3.171, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1830, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1914, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1830, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1830, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "found", + "parent": "model_not_found", + "pivot": [ + -8, + 3, + 0 + ] + }, + { + "name": "f", + "parent": "found", + "pivot": [ + -8, + 3, + 0 + ], + "cubes": [ + { + "origin": [ + -2.699, + 3.171, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 540, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 624, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 540, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 540, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "o", + "parent": "found", + "pivot": [ + -8, + 3, + 0 + ], + "cubes": [ + { + "origin": [ + 0.037, + 3.171, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1368, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 1452, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1368, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1368, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "u", + "parent": "found", + "pivot": [ + -8, + 3, + 0 + ], + "cubes": [ + { + "origin": [ + 2.773, + 3.171, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1920, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 2004, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 1920, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 1920, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + }, + { + "name": "n", + "parent": "found", + "pivot": [ + -8, + 3, + 0 + ], + "cubes": [ + { + "origin": [ + 5.509, + 3.171, + -0.0595 + ], + "size": [ + 2.736, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 1266, + 66 + ], + "uv_size": [ + 96, + 120 + ] + }, + "south": { + "uv": [ + 1362, + 66 + ], + "uv_size": [ + -96, + 120 + ] + }, + "up": { + "uv": [ + 1266, + 0 + ], + "uv_size": [ + 96, + 66 + ] + }, + "down": { + "uv": [ + 1266, + 186 + ], + "uv_size": [ + 96, + 66 + ] + } + } + } + ] + }, + { + "name": "d", + "parent": "found", + "pivot": [ + -8, + 3, + 0 + ], + "cubes": [ + { + "origin": [ + 8.587, + 3.171, + -0.0595 + ], + "size": [ + 2.394, + 3.42, + 0.05 + ], + "uv": { + "north": { + "uv": [ + 360, + 66 + ], + "uv_size": [ + 84, + 120 + ] + }, + "south": { + "uv": [ + 444, + 66 + ], + "uv_size": [ + -84, + 120 + ] + }, + "up": { + "uv": [ + 360, + 0 + ], + "uv_size": [ + 84, + 66 + ] + }, + "down": { + "uv": [ + 360, + 186 + ], + "uv_size": [ + 84, + 66 + ] + } + } + } + ] + } + ] + } + ] +} diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 0e12184..cf03c3f 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -1,21 +1,26 @@ { - "modListVersion": 2, - "modList": [{ - "modid": "${modId}", - "name": "${modName}", - "description": "A mod that is made for integrating GeckoLib3 and CustomNPC", - "version": "${modVersion}", - "mcversion": "${minecraftVersion}", - "url": "https://github.com/KAMKEEL/CustomNPC-Gecko-Addon", - "updateUrl": "", - "authorList": ["Goodbird","KAMKEEL"], - "credits": "", - "logoFile": "", - "screenshots": [], - "parent": "", - "requiredMods": [], - "dependencies": [], - "dependants": [], - "useDependencyInformation": false - }] + "modListVersion": 2, + "modList": [ + { + "modid": "${modId}", + "name": "${modName}", + "description": "A mod that is made for integrating GeckoLib3 and CustomNPC", + "version": "${modVersion}", + "mcversion": "${minecraftVersion}", + "url": "https://github.com/KAMKEEL/CustomNPC-Gecko-Addon", + "updateUrl": "", + "authorList": [ + "Goodbird", + "KAMKEEL" + ], + "credits": "", + "logoFile": "", + "screenshots": [], + "parent": "", + "requiredMods": [], + "dependencies": [], + "dependants": [], + "useDependencyInformation": false + } + ] }