Piranhas are hostile mobs that spawn in bodies of water in jungles.

Appearance

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.

Behavior

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.

Predator Hunger
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.

History

  • 10.0.0:
    • Introduced.
  • 10.1.0:
    • 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).

Trivia

  • Piranhas are one of the few mobs in the mod that can prevent their targets from dropping items, alongside lampreys, sharks, barracudas, and octopuses. However, they will lose this ability upon being caught in a bucket.
Community content is available under CC-BY-SA unless otherwise noted.