Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.20.1' into 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Aug 24, 2023
2 parents effc2cc + 09c4a41 commit cc47d64
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public LaserNodeBlockEntity(BlockPos pos, BlockState state) {

public void updateState(boolean toggle) {
assert level != null;
level.playSound(null, worldPosition, toggle ? PortalCubedSounds.LASER_NODE_ACTIVATE_EVENT : PortalCubedSounds.LASER_NODE_DEACTIVATE_EVENT, SoundSource.BLOCKS, 0.5f, 1f);
level.playSound(null, worldPosition, toggle ? PortalCubedSounds.LASER_NODE_ACTIVATE_EVENT : PortalCubedSounds.LASER_NODE_DEACTIVATE_EVENT, SoundSource.BLOCKS, 0.3f, 1f);
level.setBlockAndUpdate(worldPosition, level.getBlockState(worldPosition).setValue(BlockStateProperties.ENABLED, toggle));
setChanged();
}
Expand Down
25 changes: 20 additions & 5 deletions src/main/resources/assets/portalcubed/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,31 +259,46 @@

"laser/emitter_activate": {
"sounds": [
"portalcubed:laser/laser_activation_01"
{
"name": "portalcubed:laser/laser_activation_01",
"volume": 0.3
}
],
"subtitle": "subtitles.portalcubed.laser.activate"
},
"laser/beam_music": {
"sounds": [
"portalcubed:laser/laser_beam_lp_02"
{
"name": "portalcubed:laser/laser_beam_lp_02",
"volume": 0.3
}
],
"subtitle": "subtitles.portalcubed.laser.ambiance"
},
"laser/node_music": {
"sounds": [
"portalcubed:laser/laser_node_lp_01"
{
"name": "portalcubed:laser/laser_node_lp_01",
"volume": 0.3
}
],
"subtitle": "subtitles.portalcubed.laser.node_sing"
},
"laser/node_activate": {
"sounds": [
"portalcubed:laser/laser_node_power_on"
{
"name": "portalcubed:laser/laser_node_power_on",
"volume": 0.3
}
],
"subtitle": "subtitles.portalcubed.laser.node_activate"
},
"laser/node_deactivate": {
"sounds": [
"portalcubed:laser/laser_node_power_off"
{
"name": "portalcubed:laser/laser_node_power_off",
"volume": 0.3
}
],
"subtitle": "subtitles.portalcubed.laser.node_deactivate"
},
Expand Down

0 comments on commit cc47d64

Please sign in to comment.