mojira.dev
MC-163921

Placing a block while looking at redstone ore plays no sound

The bug

When a block is placed by using the item on one of the faces of a redstone ore block, the block placement sound is not played. Things like item frames play the sound as expected.

How to reproduce

Simply place some redstone ore and then click on it to place another one. The first ore will light up and the block will be placed, but no block sound is played.

Related issues

MC-164925 Redstone Ore sound bug MC-165867 placing sound is mute while placing a block on redstone ore MC-167378 Placing blocks on redstone ores will place the block then emit particles MC-167491 Lantern placement sound dosent happen when placed on top or hanging under redstone ore MC-167792 Blocks placed on redstone ore do not make a sound when placed. MC-167809 Redstone Ore block placing sound not playing MC-168032 Carpet not producing noise when placed on redstone ore MC-168058 When placing redstone ore on redstone ore, no placing sound plays MC-168284 No block placement sounds when placing on redstone ore MC-168380 Block placing sound doesn't not play when placing Redstone ore on Redstone ore MC-168688 Placing blocks against redstone ore blocks ends up in no sound of block placement MC-168898 Torch Placement Sound Bug MC-169068 Lack of sound when placing a block against redstone ore MC-169380 No sound when placing block onto lit redstone ore. MC-170283 Redstone ores don't produce the placing sound when placed over other redtone ore MC-171149 When right clicking on redstone ore it place the block with no soun MC-172183 Placing Redstone Ore on each other doesn't make a placing sound MC-172455 when placing redstone ore on redstone ore it makes no noise MC-173088 When placing any block on a redstone ore, no sound will play MC-173142 When placing blocks next to lit redstone ore they don't make any sound. MC-173489 No sound when placing blocks on redstone_ore MC-173700 Redstone Ore Sounds MC-173960 Redstone Ore placement sound doesn't always play MC-174218 No sound when placing a block with Restone Ore MC-174431 Sounds MC-174538 No sound when placing blocks on redstone ore MC-174576 Blocks placed on redstone ore don't make a noise MC-174631 error-bug snapshot 20w11a MC-174652 Redstone ore doesn't make a sound when placed MC-175521 Placing blocks on lit redstone ore won't make a sound MC-175618 No sound plays when placing any block on redstone ore MC-177245 Not important but bug MC-178785 Bug with block placement sound MC-178799 Block placing sound on redstone ore doesn't play MC-178960 Placing block next to redstone ore (facing at it) doesn't play sound MC-179073 No place sound when placing any block on redstone ore MC-179300 No Block Placing Noise MC-180007 No sound of placing down blocks when placing redstone ore. MC-180635 Sound for red stone ore blocks dose not work correctly/doesn't play MC-180833 Redstone ore does not make a sound when placed on top of another redstone ore. MC-181196 Placing blocks against lit redstone ore doesn't make the block placing sound MC-182671 no "place" sound for redstone ore MC-183111 Redstone Ore block makes no sound when placed on another Redstone Ore block. MC-183761 Error with the sound of placing blocks on redstone ores MC-183938 Sound missing placing blocks onto Redstone Ore MC-184062 placing blocks on redstone ore makes no sound MC-184131 Sound For placing redstone ore on redstone ore does not make a sound in 20w20b MC-184454 No audio plays when torch is placed on Redstone Ore MC-184547 Block sound not executed when placed directly on top of redstone ore. MC-188084 Placing torches on redstone ore doesn't make a sound

Attachments

Comments

migrated
[media]
migrated

Can confirm and added short video example. It seems to activate the redstone while simultaneously placing a block but there is no block placement sound.

violine1101

Probably caused by the fix for MC-161151.

muzikbike

Relates to MC-129112

muzikbike

Definitely does closely relate to MC-129112 - these are both cases of a block being placed successfully and playing a hand animation, but with the sound not playing.

migrated

Affects 19w46b

SPGoding

Confirmed for 1.15-pre2.

migrated

Same thing happens for me in 1.15.2, can confirm

EDIT: It makes sound when I am sneaking and place it

migrated

Affects 20w12a

C_moneySmith

Related to MC-165510 and confirmed for 20w13a

Jayceebee

20w16a

migrated

20w17a

migrated

it does play the sound if you are crouching when you place the block though

 

migrated

Still present 20w19a

migrated

still an issue in 20w20b (no sound when standing, plays ok whilst crouching)

migrated

Confirmed on 20w21a

pupnewfster

While looking into a bug that got reported to Mekanism about a similar issue with block placement sounds not being properly played I think I found the cause of this issue with redstone ore. Using my debugger I tracked it down to this block of code (in PlayerController#func_217292_a):

boolean flag = !p_217292_1_.getHeldItemMainhand().doesSneakBypassUse(p_217292_2_,blockpos,p_217292_1_) || !p_217292_1_.getHeldItemOffhand().doesSneakBypassUse(p_217292_2_,blockpos,p_217292_1_);
boolean flag1 = p_217292_1_.isSecondaryUseActive() && flag;
if (event.getUseBlock() != net.minecraftforge.eventbus.api.Event.Result.DENY && !flag1) {
   ActionResultType actionresulttype = p_217292_2_.getBlockState(blockpos).onBlockActivated(p_217292_2_, p_217292_1_, p_217292_3_, p_217292_4_);
   if (actionresulttype.isSuccessOrConsume()) {
      this.connection.sendPacket(new CPlayerTryUseItemOnBlockPacket(p_217292_3_, p_217292_4_));
      return actionresulttype;
   }
}

Looking at forge's patches the only part they added to the above snippet is the event result check. onBlockActivated for RedstoneOre is implemented as such:

 

if (worldIn.isRemote) {
   spawnParticles(worldIn, pos);
   return ActionResultType.SUCCESS;
} else {
   activate(state, worldIn, pos);
   return ActionResultType.PASS;
}

 

Which means that on the client it will always return success, thus having isSuccessOrConsume be true, and exiting the method func_217292_a. The placement sound code is lower down in that method where itemstack#onItemUse gets called so that BlockItem#tryPlace gets fired.

Jack McKalling

Confirm fixed in 1.16 pre3

tryashtar

Felix Jones

Confirmed

Normal

Sound

hand-animation

19w42a, 19w44a, 19w45b, 19w46b, 1.15 Pre-Release 2, ..., 20w20b, 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2

1.16 Pre-release 3

Retrieved