Skip to content

Commit

Permalink
仅在增加挖掘标签的十秒内显示粒子效果
Browse files Browse the repository at this point in the history
  • Loading branch information
xBoyMinemc committed Aug 29, 2024
1 parent 868a32d commit ea44818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/xTerrain/plugins/breakBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const breaks = (awa = 'awa') => world.getPlayers({ tags: [SIGN.AUTO_BREAKBLOCK_S
const whatCanISee = Vector_addition(headLocation, Vector_multiplication_dot(viewDirection, time % 3 + 1));
const dimension = man.dimension;
const block = dimension.getBlock(testWorldLocation["worldBlockLocation"](Vector_subtract(whatCanISee, testWorldLocation)));
dimension.spawnParticle('minecraft:endrod', Vector_addition(block.location, { x: 0.5, y: 0.5, z: 0.5 }));
time < 600 && dimension.spawnParticle('minecraft:endrod', Vector_addition(block.location, { x: 0.5, y: 0.5, z: 0.5 }));
if (block.isValid() && !block.isLiquid && !block.isAir) {
man.breakBlock(Vector_subtract(whatCanISee, testWorldLocation));
}
Expand Down
2 changes: 1 addition & 1 deletion tscripts/xTerrain/plugins/breakBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const breaks = (awa:awa='awa')=>

const block = dimension.getBlock(testWorldLocation["worldBlockLocation"](Vector_subtract(whatCanISee, testWorldLocation)))

dimension.spawnParticle('minecraft:endrod',Vector_addition(block.location, {x:0.5,y:0.5,z:0.5}))
time < 600 && dimension.spawnParticle('minecraft:endrod',Vector_addition(block.location, {x:0.5,y:0.5,z:0.5}))
if (block.isValid() && !block.isLiquid && !block.isAir){
man.breakBlock(Vector_subtract(whatCanISee, testWorldLocation))
} else {
Expand Down

0 comments on commit ea44818

Please sign in to comment.