Skip to content

Commit

Permalink
Now particles appear in every corner of the block
Browse files Browse the repository at this point in the history
  • Loading branch information
HirziDevs committed Jul 4, 2024
1 parent 118f042 commit 339e0ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,12 @@ function Generator(
);
}

if (enableParticle && particle)
if (enableParticle && particle) {
dimension.spawnParticle(particle.toLowerCase(), { x: location.x, y: location.y + 1.5, z: location.z });
dimension.spawnParticle(particle.toLowerCase(), { x: location.x + 1, y: location.y + 1.5, z: location.z });
dimension.spawnParticle(particle.toLowerCase(), { x: location.x + 1, y: location.y + 1.5, z: location.z + 1 });
dimension.spawnParticle(particle.toLowerCase(), { x: location.x, y: location.y + 1.5, z: location.z + 1 });
}
if (enableSound && sound)
dimension.playSound(sound.toLowerCase(), location)
dimension.runCommand(
Expand Down

0 comments on commit 339e0ca

Please sign in to comment.