UltimateChristmas 4.0 Wiki

UltimateChristmas / Snowballs

Snowballs

Snowball fights that pay out, plus trick snowballs with effects — perfect chaos for spawn and lobby areas.

module id: snowball config: modules/snowball.yml

Hit rewards

Landing a snowball on another player (plain or trick) rolls a reward from the hit-rewards table, on a per-player cooldown so it can't be farmed:

reward-cooldown-seconds: 30   # seconds between rewarded hits, per player
reward-mob-hits: true         # reward hitting mobs too, not only players
infinite-snowballs: false     # keep trick snowballs when thrown

hit-rewards:
  small:
    weight: 70
    shards: 5-15
    messages: ["&aNice shot! +shards"]
  big:
    weight: 30
    shards: 20-40
    messages: ["&aGreat throw!"]
    sound: ENTITY_ARROW_HIT_PLAYER

Remove the hit-rewards section entirely to disable hit rewards. Earning them is gated by ultimatechristmas.snowball.reward (default: everyone), and hits feed the snowballs_hit stat for quests and leaderboards.

Trick snowballs

Tagged snowballs with potion effects for the victim, extra knockback, naughty/nice changes, and optional on-hit rewards:

kinds:
  frost:
    material: SNOWBALL
    name: "&b&lFrost Snowball"
    lore: ["&7Chills whoever it hits."]
    glow: true
    knockback: 0.3
    on-hit:
      effects: ["SLOWNESS:80:1"]

  blizzard:
    name: "&f&lBlizzard Snowball"
    knockback: 0.6
    on-hit:
      effects: ["SLOWNESS:100:2", "BLINDNESS:60:0"]

  coal:
    name: "&8&lCoal Snowball"
    naughty-points: -2            # marks the THROWER down the nice list
    on-hit:
      shards: 5
      effects: ["WEAKNESS:100:0"]

  lucky:
    name: "&6&lLucky Snowball"
    glow: true
    on-hit:
      shards: 25-75               # rewards the thrower for a good shot
      messages: ["&6Lucky hit! Shards for you."]
KeyMeaning
knockbackExtra knockback applied to the victim.
naughty-pointsStanding change for the thrower (negative = naughty).
on-hitA standard reward for the thrower, plus effects applied to the victim.

Commands

/christmas snowball                          list the trick snowballs (players)
/christmas snowball give <kind> [player] [amount]   hand them out (admin)

Permissions: ultimatechristmas.snowball (list), ultimatechristmas.admin.snowball (give). Trick snowballs also make great shop items — sell a stack of blizzard for event nights.