fix
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user