StartupEvents.registry('palladium:abilities', (event) => {
event.create('dhp/thunder_clap')
.icon(palladium.createItemIcon('palladium:vibranium_circuit'))
.documentationDescription('Sonic Boom')
.tick((entity, entry, holder, enabled) => {
const { player, entity } = event const newdamagesource = entity.damageSources().playerAttack(player)
if (enabled) {
entity.runCommandSilent('tag @p add dark0');
entity.runCommandSilent('execute at @e[tag=!dark0] run particle minecraft:sonic_boom ~ ~ ~ 0 0 0 10 10');
entity.attack(newdamagesource, 10);
entity.runCommandSilent('gamerule sendcommandfeedback false');
} else {
player.runCommandSilent('tag @p remove dark0');
}
});
});```
#What is the damage problem?
2 messages · Page 1 of 1 (latest)