Create a Hunger Wand!

MCreator

Use the new concepts you've learned in the "Magic Wand" lesson to create a magic wand that casts different effects based on your hunger bar instead of your health! Your wand should give these effects:

  • Full hunger: Launches the entity hit by the projectile.
  • Between Full Hunger and Half Hunger: Poisons the entity hit by the projectile.
  • Between Half Hunger and 5 Hunger: Grants the entity hit by the projectile the Speed potion effect.
  • Between 5 Hunger and 0 Hunger: Instantly defeats the entity hit by the projectile.

Hint: This is similar to how you created your heart wand during the lesson, so remember what you've learned and look back at your heart wand code!