SnowyEgret Posted June 15, 2015 Posted June 15, 2015 Given a reference to a block, how can I look up the name of the sound that is played when the block is placed. More specifically, If I have Block block, at runtime, how can I get String sound for: getWorld().getWorld().playSoundAtEntity(player, sound, 1f, 1f); I want the sound which is played when the block is placed. Quote
EverythingGames Posted June 18, 2015 Posted June 18, 2015 Hi There is a list of sounds for Minecraft, just look them up. Preferably use the Minecraft Wiki. For EG: Some simple sounds are below. * random.click * fireworks.blast * fireworks.largeBlast Quote Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.