Piranhas are hostile mobs that spawn in bodies of water in jungles.
Piranhas are based on the red-bellied piranha, and are dark grey in color, with a red underside and pectoral fins, and a dark red anal fin.
Piranhas are naturally hostile to players. When attacking, they will swim towards targets and deal 2 hearts (4 HP) of damage in addition to penetrating any kind of armor upon contact; they will turn any player they kill into a skeleton named after the slain player. When not attacking, they will swim around aimlessly in a similar manner to fish.
In addition to indiscriminately targeting players, piranhas will also occasionally prey on any mob that enters the water, with the exception of skeletons, skeleton horses, and other piranhas; any horses they kill will turn into skeleton horses. This behavior is influenced by how hungry they are.
|Upon spawning, this predatory mob will have an initial hunger defined by the sum of 10 and a random number (from 0-49); every second, this hunger goes up by a single number. In addition to this, it has a hunger threshold of 80; this threshold is vital for its effective hunger, which is 0 when below the threshold and equal to the difference between the hunger and the threshold when above it. If the effective hunger is greater than or equal to 100, the mob will immediately attack a prey animal; otherwise, its chance of predation is determined by the quotient of 1 and the difference between 100 and its effective hunger.|
Piranhas can be caught by using a water bucket on them; when this bucket is used on a block, it immediately empties, placing a source of water with the piranha inside of it.
If a piranha gets beached on land, it will start suffocating after 20 seconds. While on land, piranhas will flop around erratically in an attempt to get back into the water.
- Predation of other mobs is now determined by a newly-added hunger mechanic.
- Mobs killed by piranhas no longer drop items (unless said piranhas were placed with buckets).