yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Block suffix inconsistency for block sound group names

Open haykam821 opened this issue 3 years ago • 6 comments

Some fields in the BlockSoundGroup class are suffixed with 'block'. Their sound events may or not have the suffix as well. Should this suffix be dropped entirely, or added to all necessary fields?

The following fields are affected:

Field Name Break Sound Step Sound Place Sound Hit Sound Fall Sound
SLIME BLOCK_SLIME_BLOCK_BREAK BLOCK_SLIME_BLOCK_STEP BLOCK_SLIME_BLOCK_PLACE BLOCK_SLIME_BLOCK_HIT BLOCK_SLIME_BLOCK_FALL
HONEY BLOCK_HONEY_BLOCK_BREAK BLOCK_HONEY_BLOCK_STEP BLOCK_HONEY_BLOCK_PLACE BLOCK_HONEY_BLOCK_HIT BLOCK_HONEY_BLOCK_FALL
CORAL BLOCK_CORAL_BLOCK_BREAK BLOCK_CORAL_BLOCK_STEP BLOCK_CORAL_BLOCK_PLACE BLOCK_CORAL_BLOCK_HIT BLOCK_CORAL_BLOCK_FALL
WART_BLOCK BLOCK_WART_BLOCK_BREAK BLOCK_WART_BLOCK_STEP BLOCK_WART_BLOCK_PLACE BLOCK_WART_BLOCK_HIT BLOCK_WART_BLOCK_FALL
BONE BLOCK_BONE_BLOCK_BREAK BLOCK_BONE_BLOCK_STEP BLOCK_BONE_BLOCK_PLACE BLOCK_BONE_BLOCK_HIT BLOCK_BONE_BLOCK_FALL
NETHERITE BLOCK_NETHERITE_BLOCK_BREAK BLOCK_NETHERITE_BLOCK_STEP BLOCK_NETHERITE_BLOCK_PLACE BLOCK_NETHERITE_BLOCK_HIT BLOCK_NETHERITE_BLOCK_FALL
AMETHYST_BLOCK BLOCK_AMETHYST_BLOCK_BREAK BLOCK_AMETHYST_BLOCK_STEP BLOCK_AMETHYST_BLOCK_PLACE BLOCK_AMETHYST_BLOCK_HIT BLOCK_AMETHYST_BLOCK_FALL
DRIPSTONE_BLOCK BLOCK_DRIPSTONE_BLOCK_BREAK BLOCK_DRIPSTONE_BLOCK_STEP BLOCK_DRIPSTONE_BLOCK_PLACE BLOCK_DRIPSTONE_BLOCK_HIT BLOCK_DRIPSTONE_BLOCK_FALL
MOSS_BLOCK BLOCK_MOSS_BREAK BLOCK_MOSS_STEP BLOCK_MOSS_PLACE BLOCK_MOSS_HIT BLOCK_MOSS_FALL

haykam821 avatar Jun 05 '21 01:06 haykam821

These emerge as a result of stitch's handling of block.bone_block.break into BLOCK_BONE_BLOCK_BREAK. Imo this propagation logic is fine. I propose to keep it as-is, without adding or removing.

liach avatar Jun 05 '21 03:06 liach

@liach The sound event field names are fine, but they are inconsistently reflected in the block sound group field names.

haykam821 avatar Jun 05 '21 03:06 haykam821

My bad! Then imo we should consider this together with #402.

In there, I voted to remove duplicate Block suffix. Here, I feel I am even more compelled to do so given this is a BlockSoundGroup. Which emoji should I leave for "dropped entirely" option?

liach avatar Jun 05 '21 03:06 liach

Given that there are fewer blocks with the BLOCK_ prefix, I'd be happy to create a PR which gets rid of the prefix altogether, as from context in #402 it seems that prefixes are not particularly Yarn-like now anyway.

mounderfod avatar Jun 22 '21 17:06 mounderfod

Given that there are fewer blocks with the BLOCK_ prefix, I'd be happy to create a PR which gets rid of the prefix altogether, as from context in #402 it seems that prefixes are not particularly Yarn-like now anyway.

I'd also be happy to fix #402 in the same PR if a consensus is reached on both.

mounderfod avatar Jun 22 '21 17:06 mounderfod

Given that there are fewer blocks with the BLOCK_ prefix, I'd be happy to create a PR which gets rid of the prefix altogether, as from context in #402 it seems that prefixes are not particularly Yarn-like now anyway.

@redcreeper14385 But we're not talking about prefixes, though? The BLOCK_ prefixes are autogenerated by Stitch and match the IDs (so just fine), but the _BLOCK suffixes in sound groups are just useless.

Juuxel avatar Jun 22 '21 19:06 Juuxel