#Trying to remove all fuel, certain items aren't working. Any way to fix this?

5 messages · Page 1 of 1 (latest)

scarlet tundra
#

The wildcard removes everything besides the items I manually entered into remains. Now when I try to remove the rest through this, I see the attached error:

wicked wolfBOT
#

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

scarlet tundra
#
    function fuel(item, time) {
        event.modify(item, item => {item.setBurnTime(time)})
    }
    
    let remains = [
        'corn_delight:corncob',
        'lolmbv:spruce_bookshelf',
        'lolmbv:birch_bookshelf',
        'lolmbv:jungle_bookshelf',
        'lolmbv:acacia_bookshelf',
        'lolmbv:dark_oak_bookshelf',
        'lolmbv:mangrove_bookshelf',
        'lolmbv:cherry_bookshelf',
        'lolmbv:bamboo_bookshelf',
        'lolmcv:oak_chest',
        'lolmcv:spruce_chest',
        'lolmcv:birch_chest',
        'lolmcv:jungle_chest',
        'lolmcv:acacia_chest',
        'lolmcv:dark_oak_chest',
        'lolmcv:mangrove_chest',
        'lolmcv:cherry_chest',
        'lolmcv:bamboo_chest',
        'lolmcv:oak_trapped_chest',
        'lolmcv:spruce_trapped_chest',
        'lolmcv:birch_trapped_chest',
        'lolmcv:jungle_trapped_chest',
        'lolmcv:acacia_trapped_chest',
        'lolmcv:dark_oak_trapped_chest',
        'lolmcv:mangrove_trapped_chest',
        'lolmcv:cherry_trapped_chest',
        'lolmcv:bamboo_trapped_chest'
    ]
    
    fuel('*', 0)
    remains.forEach(item => {
        fuel(item, 0)
    })
    fuel('farmersdelight:straw', 100)
    fuel('brewery:dried_wheat', 100)
    fuel('minecraft:dried_kelp', 100)
    fuel('minecraft:dried_kelp_block', 100)
    fuel('croptopia:corn_husk', 100)

})```

The code in the image
#

I changed the item variable name to input, and now it doesn't crash anymore, but the remaining items still aren't removed...

#

okay nvm its complete chance if it happens or not