Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

lumonexu

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by lumonexu

  1. Hey everyone, I'm trying to play a sound based on the given block.

    Although, I'm not sure how to get the SoundEvent of a block.

    Can anyone tell me how?

    To be specific, I need to get the block placed sound of the block.

     

    Here's my code, if it's even useful at all:

    e.getWorld().playSound(null, pos, /* soundevent of blockstate */, SoundCategory.BLOCKS, 1, 1);

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.