Posted January 2, 20178 yr I saw this commit while googling around from RainWarrior https://github.com/MinecraftForge/MinecraftForge/pull/2331/commits/0710bdf3f5a64e5fe1c725a30421b2c7523dca44 I was wondering if anyone has an example of an animated TE json model. Thanks
January 2, 20178 yr You can see the animation test mod here and its assets here. The Mana Pump and Coporea Crystal Cube from Botania both use the animation system. You can see the assets here. Edit: There's also an explanation of the Animation State Machine format here. Edit 2: Updated Botania links. Edited August 29, 20178 yr by Choonster Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
January 2, 20178 yr Author thanks, for the informative response. This is really difficult to follow though. I'm seeing four parts? - The model class? - the tile class? - the animation manager json? - the pump animation json? @Choonster
January 2, 20178 yr thanks, for the informative response. This is really difficult to follow though. I'm seeing four parts? - The model class? - the tile class? - the animation manager json? - the pump animation json? @Choonster For a JSON model, you need an Armatures file to specify the joints and clips for the model. For a B3D model, the joints and clips are specified in the model itself. It looks like OBJ models aren't supported by Forge's animation system. You also need an Animation State Machine file to specify how the model should be animated. For a block model, your TileEntity needs to provide CapabilityAnimation.ANIMATION_CAPABILITY and have an instance of AnimationTESR registered as its TESR . Your Block needs to have the Properties.AnimationProperty unlisted property and it can optionally have the Properties.StaticProperty property, which will be set to false when the model is being rendered by AnimationTESR . For an entity model, your Entity needs to provide CapabilityAnimation.ANIMATION_CAPABILITY and use a ModelBase that renders the animated model (like AnimationModelBase ). For an item model, your Item needs to provide CapabilityAnimation.ANIMATION_CAPABILITY (from the provider returned by Item#initCapabilities ). Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.