#Is it possible to change an enderpearls cooldown using script api?

1 messages · Page 1 of 1 (latest)

keen canopy
#

no

quasi wind
#

thought so

fickle moth
#

player.startItemCooldown('ender_pearl', 0)

#

would mae it infinetly spammable if it's run every tick for example

keen canopy
#

if that works smart idea

quasi wind
# fickle moth player.startItemCooldown('ender_pearl', 0)

what like,
import { world } from '@minecraft/server';
world.beforeEvents.itemUse.subscribe(data => {
const source = data.source
if (!(source instanceof Player)) return;
if (data.itemStack.typeId === 'minecraft:ender_pearl') system.run(() => {
source.startItemCooldown('ender_pearl', 0)

    })

})

fickle moth
#

if that works yes

quasi wind
#

ill try