Add Chinese translation to the Addon

@wed150
This commit is contained in:
2025-12-20 18:39:45 +08:00
Unverified
parent 668ae3185e
commit 874eff29d4
7 changed files with 1005 additions and 16 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ function handleWaterlogging(block, structureBlock) {
function playBlockPlacementSound(player, block, structureBlock) {
const blockId = structureBlock.type.id.replace('minecraft:', '');
const blockData = blocks[blockId];
let blockSound = blockData['sound'] || 'stone';
let blockSound = blockData?.sound || 'stone';//fix error with missing sound
let blockSoundId = block_sounds[blockSound].events.place?.sound
|| block_sounds[block_sounds[blockSound].base].events.place?.sound;
player.dimension.playSound(blockSoundId, block.location);