#Cooldown for Punching
7 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
you mean changing the base attack speed when you dont have anything equipped?
yeye
impossible
jk here you go ```js
PlayerEvents.tick(event => {
const { player } = event
//makes this run once every 5 ticks
if (!(player.age % 5 == 0)) return
if (player.mainHandItem == 'air') {
//halfs player attack speed when air is in main hand
player.modifyAttribute('minecraft:generic.attack_speed', '-123924,1111,155221,-3120', -0.5, 'multiply_total')
} else player.removeAttribute('minecraft:generic.attack_speed', '-123924,1111,155221,-3120')
})```
this goes in server scripts