#Recreating BTW Knitting

5 messages · Page 1 of 1 (latest)

wary tiger
#

I want to make an item that requires players to hold right click to increase a progress bar until they create a new item or two.

alpine crystalBOT
#

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

wary tiger
#

Idek how to go about creating this so any help would be appreciated!

wary tiger
#
    event.create("lttw:unfinished_white_knit")
        .maxDamage(16)
        .maxStackSize(1)
        .use(() => true)
        .useAnimation("brush")
        .useDuration(() => 64)
        .finishUsing((item, level, entity) => {
            item.damageValue--
            if (item.damageValue <= 0) {
                let player = level.getPlayerByUUID(entity.uuid)
                player.give('lttw:white_knit')
                player.give('lttw:knitting_needles')
                item.count--
            }
            return item
        })```
#

figured it out