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
- added stupidium armour
- 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);
}
@Override
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
if (!world.isClient) {
world.playSound(
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
sounds.MATT_SOUND_EVENT, // The sound that will play
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 // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
);
}
return ActionResult.FAIL;
}
// @Override
// public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
// if (!world.isClient) {
// world.playSound(
// 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
// sounds.MATT_SOUND_EVENT, // The sound that will play
// 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 // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
// );
// }
// return ActionResult.FAIL;
// }
}

View File

@@ -40,21 +40,21 @@ public class WeemCropBlock extends CropBlock {
return AGE_TO_SHAPE[(Integer)state.get(this.getAgeProperty())];
}
@Override
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
if (!world.isClient) {
world.playSound(
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
sounds.SNIFF_SOUND_EVENT, // The sound that will play
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 // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
);
}
return ActionResult.FAIL;
// @Override
// public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
// if (!world.isClient) {
// world.playSound(
// 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
// sounds.SNIFF_SOUND_EVENT, // The sound that will play
// 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 // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
// );
// }
// return ActionResult.FAIL;
}
// }
}

View File

@@ -17,18 +17,18 @@ public class elon extends Block{
super(settings);
}
@Override
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
if (!world.isClient) {
world.playSound(
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
sounds.ELON_SOUND_EVENT, // The sound that will play
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 // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
);
}
return ActionResult.FAIL;
}
// @Override
// public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
// if (!world.isClient) {
// world.playSound(
// 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
// sounds.ELON_SOUND_EVENT, // The sound that will play
// 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 // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
// );
// }
// return ActionResult.FAIL;
// }
}