#How would I add custom item animations?

6 messages · Page 1 of 1 (latest)

full elbow
#

Using sprite sheets, how would I add an animated texture to a custom item?

// priority: 0

console.info('Hello, World! (You will only see this line once in console, during startup)')

onEvent('item.registry', event => {
    // Register new items here
    event.create("hardtoken").displayName("Hard Quest Token").rarity("Epic").tooltip("Complete all hard quests").unstackable()

    
})

Using default settings the entire sprite sheet is used as the texture and is squished. Maybe I'm blind but I have looked online and on the docs and found nothing..
If someone could help me then that would be amazing! Thanks!

ionic domeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

dawn shale
#

same way you animate any texture in minecraft

#

with a .mcmeta file

#

put a file in the same dir as the texture with the same name, just with .mcmeta appended (include the file extension. so hardtoken.png.mcmeta)
then in there goes a json for texture metadata including animations. the vanilla wiki will have a page on it

full elbow
#

Thanks! I just got it working.👍