I'm trying to have a block emit particles idly, and apparently I need to register it as a block entity and spawn particles as part of it ticking server-side. I've tried plenty of ways to accomplish this but nothing I do seems to work. I'm using ProbeJS but I can't figure out what I am doing wrong.
Current implementation (testing to see if I can get anything in console first):
StartupEvents.registry('block', event => {
event.create("mymod:testblock", "slab")
.mapColor("GOLD").soundType("METAL")
.blockEntity(be => {
be.serverTicking();
be.tickFrequency(20);
be.eventHandler(0, event => {
console.info("Hello???")
});
});
})