โ„๏ธ Snowball Event โ€” Villager Shoot

Players throw snowballs at villagers for quick festive rewardsโ€”perfect for hubs. Ties into the shards economy and other events.

๐ŸŽฎ What happens in-game?

โš™๏ธ Configuration (YAML)

# Configuration for snowball hitting mechanics
villager-shoot:
  rewards:
    default:
      cooldown: 30 # Cooldown per player (seconds)

      # Reward 1: Small shard prize
      small_prize:
        chance: 80
        commands:
          - "shards give %player% 5"
        messages:
          - "&aHit! The villager is stunned and drops 5 shards."
        event:
          firework: false
          sound: "BLOCK_SNOW_PLACE"

      # Reward 2: Large shard prize
      large_prize:
        chance: 20
        commands:
          - "shards give %player% 25"
        messages:
          - "&aCritical Hit! The villager drops 25 shards!"
        event:
          firework: true
          sound: "ENTITY_ARROW_HIT_PLAYER"

Keys explained

๐Ÿงญ Enabling

  1. Register listener for ProjectileHitEvent.
  2. Check snowball โ†’ villager, shooter is player.
  3. Apply cooldown, roll reward from config, run commands/FX.
  4. (Optional) Restrict to named villagers (e.g., โ€œElfโ€).

๐ŸŽฏ Balancing tips

๐Ÿงช Variations

medium_prize:
  chance: 15
  commands:
    - "shards give %player% 12"
  messages:
    - "&aSolid hit! &f+12 shards"
  event:
    firework: false
    sound: "ENTITY_EXPERIENCE_ORB_PICKUP"

cosmetic_hat:
  chance: 5
  commands:
    - "give %player% leather_helmet 1"
  messages:
    - "&dFestive bonus! &fYou found a Santa hat!"
  event:
    firework: true
    sound: "ENTITY_PLAYER_LEVELUP"

๐Ÿงฐ Troubleshooting

โœ… Why players love it