You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
466 B
JavaScript
13 lines
466 B
JavaScript
// features/break_particle.js custom block break particle
|
|
|
|
import { system } from "../core/mc.js";
|
|
|
|
system.beforeEvents.startup.subscribe(({ blockComponentRegistry }) => {
|
|
blockComponentRegistry.registerCustomComponent("rzb_dcs:breakblock_particle", {
|
|
onPlayerBreak(event) {
|
|
const { block } = event;
|
|
try { block.dimension.runCommand(`particle rzb_dcs:breakdeco ${block.location.x} ${block.location.y + 0.5} ${block.location.z}`); } catch {}
|
|
},
|
|
});
|
|
});
|