โ๏ธ 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?
- On hit โ per-player cooldown check โ roll a reward by chance.
- Reward executes console commands, sends messages, optional sound/firework.
- Pairs well with Shards, Advent, and Santa.
โ๏ธ 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
cooldownโ per-player seconds to prevent spam.chanceโ weight for random pick across entries.commandsโ console side;%player%supported.messagesโ color codes allowed.event.firework/event.soundโ feedback FX.
๐งญ Enabling
- Register listener for
ProjectileHitEvent. - Check snowball โ villager, shooter is player.
- Apply cooldown, roll reward from config, run commands/FX.
- (Optional) Restrict to named villagers (e.g., โElfโ).
๐ฏ Balancing tips
- Common 3โ10 shards; rare 20โ50.
- Cooldown 30โ60s works well.
- Always use sounds; fireworks for rare wins.
- Rotate rewards weekly.
๐งช 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
- Nothing happens โ verify listener registration and config path.
- Spammy โ raise cooldown, lower chances/values.
- No sound/firework โ confirm sound ID and WG flags.
โ Why players love it
- Zero friction mini-event.
- Constant feedback (messages/FX).
- On-theme and synergistic with the whole event loop.
