This commit is contained in:
Ryan
2022-11-19 17:57:19 +02:00
parent a66c27ddce
commit b4a025bae1
4 changed files with 44 additions and 43 deletions

View File

@@ -12,4 +12,5 @@
## 1.19-1.0.2-unstable ## 1.19-1.0.2-unstable
- added stupidium armour - added stupidium armour
- added textures for stupidium stuff - added textures for stupidium stuff
- fixed weem haybale - fixed weem haybale
- fixed fucked audio blocks

View File

@@ -17,18 +17,18 @@ public class Damon extends Block{
super(settings); super(settings);
} }
@Override // @Override
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) { // public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
if (!world.isClient) { // if (!world.isClient) {
world.playSound( // world.playSound(
null, // Player - if non-null, will play sound for every nearby player *except* the specified player // null, // Player - if non-null, will play sound for every nearby player *except* the specified player
blockPos, // The position of where the sound will come from // blockPos, // The position of where the sound will come from
sounds.MATT_SOUND_EVENT, // The sound that will play // sounds.MATT_SOUND_EVENT, // The sound that will play
SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound // SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc // 1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc // 1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
); // );
} // }
return ActionResult.FAIL; // return ActionResult.FAIL;
} // }
} }

View File

@@ -40,21 +40,21 @@ public class WeemCropBlock extends CropBlock {
return AGE_TO_SHAPE[(Integer)state.get(this.getAgeProperty())]; return AGE_TO_SHAPE[(Integer)state.get(this.getAgeProperty())];
} }
@Override // @Override
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) { // public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
if (!world.isClient) { // if (!world.isClient) {
world.playSound( // world.playSound(
null, // Player - if non-null, will play sound for every nearby player *except* the specified player // null, // Player - if non-null, will play sound for every nearby player *except* the specified player
blockPos, // The position of where the sound will come from // blockPos, // The position of where the sound will come from
sounds.SNIFF_SOUND_EVENT, // The sound that will play // sounds.SNIFF_SOUND_EVENT, // The sound that will play
SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound // SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc // 1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc // 1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
); // );
} // }
return ActionResult.FAIL; // return ActionResult.FAIL;
} // }
} }

View File

@@ -17,18 +17,18 @@ public class elon extends Block{
super(settings); super(settings);
} }
@Override // @Override
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) { // public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
if (!world.isClient) { // if (!world.isClient) {
world.playSound( // world.playSound(
null, // Player - if non-null, will play sound for every nearby player *except* the specified player // null, // Player - if non-null, will play sound for every nearby player *except* the specified player
blockPos, // The position of where the sound will come from // blockPos, // The position of where the sound will come from
sounds.ELON_SOUND_EVENT, // The sound that will play // sounds.ELON_SOUND_EVENT, // The sound that will play
SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound // SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc // 1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc // 1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
); // );
} // }
return ActionResult.FAIL; // return ActionResult.FAIL;
} // }
} }