I did it, the Timeout system crashed my game, why do you think?
StartupEvents.registry('palladium:abilities', (event) => {
event.create('dhp/magnet_attraction')
.icon(palladium.createItemIcon('palladium:vibranium_circuit'))
.documentationDescription('I rule over all things')
.tick((entity, entry, holder, enabled) => {
setTimeout(() => {
if (enabled) {
entity.runCommandSilent('tp @e[type=item,distance=..5.425] ~ ~ ~');
}
}, 1000);
});
});```