(4.0.0 - 4.21.1) 3.0.3 (4.0.0 - 4.21.1) 3.0.2 (4.0.0 - 4.21.1) 3.0.1 (4.0.0 - 4.21.1) 3.0.0 (4.0.0 - 4.21.1) 2.0.0 (4.0.0 - 4.21.1) 1.0.0 (5.0.0 - 5.16.0) 3.0.4
Update | State |
---|---|
Can be set to work or not | |
added sound when hitting or archery hits the enemy | |
Can access to KillDeathSound | |
Generates blood particles when killed, killed, punched, and hit by archery | |
It is possible for all entities to bleed when punching, arching, killing, dying | |
Customizable Add Blood Particle to attacker |
|
add addBlood() and addBloodAt() for Developer |
- Usually when you download a new update, when using the plugin, the game will error.
- Here's how to fix that:
- Step 1: Go to
plugin_data
file- Step 2: Delete the file named
KillDeathSound
- Step 3: Restart the server and experience the plugin
- When the player is killed and dies, the sound will work
- Generates blood particles when killed, killed, punched, and hit by archery
- added sound when hitting or archery hits the enemy
---
# config.yml
#
# ██╗░░██╗██╗██╗░░░░░██╗░░░░░██████╗░███████╗░█████╗░████████╗██╗░░██╗░██████╗░█████╗░██╗░░░██╗███╗░░██╗██████╗░
# ██║░██╔╝██║██║░░░░░██║░░░░░██╔══██╗██╔════╝██╔══██╗╚══██╔══╝██║░░██║██╔════╝██╔══██╗██║░░░██║████╗░██║██╔══██╗
# █████═╝░██║██║░░░░░██║░░░░░██║░░██║█████╗░░███████║░░░██║░░░███████║╚█████╗░██║░░██║██║░░░██║██╔██╗██║██║░░██║
# ██╔═██╗░██║██║░░░░░██║░░░░░██║░░██║██╔══╝░░██╔══██║░░░██║░░░██╔══██║░╚═══██╗██║░░██║██║░░░██║██║╚████║██║░░██║
# ██║░╚██╗██║███████╗███████╗██████╔╝███████╗██║░░██║░░░██║░░░██║░░██║██████╔╝╚█████╔╝╚██████╔╝██║░╚███║██████╔╝
# ╚═╝░░╚═╝╚═╝╚══════╝╚══════╝╚═════╝░╚══════╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝╚═════╝░░╚════╝░░╚═════╝░╚═╝░░╚══╝╚═════╝░
#
# You can see the list of sound effects at this link: "https://www.digminecraft.com/lists/sound_list_pe.php"
# Player Death
death:
addsound: true
blood: true
blood-all-entity: true # Add Blood Particle to all entity hit, arching
sound: # Sound name
- "random.explode"
volume: 1 # Volume sounds
pitch: 1 # Pitch sounds
# Player Kills
kill:
addsound: true
blood: true
blood-all-entity: true # Add Blood Particle to all entity hit, arching
sound: # Sound name
- "random.levelup"
- "random.totem"
volume: 1 # Volume sounds
pitch: 1 # Pitch sounds
particle: # Particle death
# Player Hit & Archery
hit:
addsound: true
blood: true
blood-all-entity: true # Add Blood Particle to all entity hit, arching
blood-to-attacker: false # Add Blood Particle to attacker
sound: # Sound name
- "random.orb"
volume: 1 # Volume sounds
pitch: 1 # Pitch sounds
...
- You can access to KillDeathSound by using
KillDeathSound::getInstance()
- Add sound usage:
$player = $event->getPlayer();
$soundName = "random.explode";
$volume = 1;
$pitch = 1;
KillDeathSound::getInstance()->playSound($player, $soundName, $volume, $pitch);
- Add Blood Particle usage:
$position = $event->getPlayer()->getPosition();
KillDeathSound::getInstance()->addBlood($position);
// or
$x = $event->getPlayer()->getPosition()->getX();
$y = $event->getPlayer()->getPosition()->getY();
$z = $event->getPlayer()->getPosition()->getZ();
$world = $event->getPlayer()->getPosition()->getWorld();
KillDeathSound::getInstance()->addBloodAt($x, $y, $z, $world);
- Step 1: Click the
Direct Download
button to download the plugin- Step 2: move the file
KillDeathSound.phar
into the fileplugins
- Step 3: Restart server for plugins to work