Download:
https://pastebin.com/cDPxepWG
Example:
Code: Select all
-- customblockanim.register is the only thing you can call in this library. It takes an ID and several optional arguments and will transform all blocks of the specified ID into what you set them to be. It will adjust width and height or all blocks of the ID to image.width and image.height/frames automatically.
customblockanim.register(id, {
frames = #, --default 4
framespeed = #, --default 8
opacity = #, --default 1
priority = #, --default -65
img = imageresource, --defaults to standard image of the block id, will make block automatically invisible if left unchanged
})