Add bad omen, raid omen and raids
Drinking an ominous bottle gives Bad Omen; inside a village it turns into Raid Omen, and when that runs out a raid starts, or grows, around the village points villagers have claimed (the raid_trigger statistic and the voluntary exile trigger fire on the first omen). Raids are saved in data/minecraft/raids.dat and send waves of pillagers, vindicators, evokers, witches and ravagers (ravagers carrying pillagers, evokers or vindicators) by difficulty and omen level, from a ring that closes in as the countdown runs down, with the raid horn and a red notched boss bar that shows the raiders left, Victory or Defeat. Raiders walk to the village, move between beds, take back a dropped captain banner, celebrate a lost village, are enchanted with Quick Charge or Sharpness at high omen levels and are dropped from the raid when idle or far away. Killing one makes the player a hero; a won raid grants Hero of the Village and the hero_of_the_village trigger. Villagers hide in their beds during a wave, ring the bell before one, celebrate a victory with fireworks, and toss gifts to a hero. /raid start, stop, check, spawnleader, setomen, glow and sound are available. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -111,6 +111,28 @@ pub fn build() -> Dispatcher {
|
||||
d.executes(dur, "weather");
|
||||
}
|
||||
|
||||
// raid start <omenlvl> | stop | check | sound <type> | spawnleader | setomen <level> | glow
|
||||
let raid = d.literal(root, "raid");
|
||||
d.requires(raid, 3);
|
||||
let start = d.literal(raid, "start");
|
||||
let level = d.argument(start, "omenlvl", integer(0));
|
||||
d.executes(level, "raid.start");
|
||||
for (name, id) in [
|
||||
("stop", "raid.stop"),
|
||||
("check", "raid.check"),
|
||||
("spawnleader", "raid.spawnleader"),
|
||||
("glow", "raid.glow"),
|
||||
] {
|
||||
let n = d.literal(raid, name);
|
||||
d.executes(n, id);
|
||||
}
|
||||
let sound = d.literal(raid, "sound");
|
||||
let kind = d.argument(sound, "type", ArgType::Greedy);
|
||||
d.executes(kind, "raid.sound");
|
||||
let setomen = d.literal(raid, "setomen");
|
||||
let level = d.argument(setomen, "level", integer(0));
|
||||
d.executes(level, "raid.setomen");
|
||||
|
||||
// kill [<targets>]
|
||||
let kill = d.literal(root, "kill");
|
||||
d.requires(kill, GAMEMASTERS);
|
||||
|
||||
Reference in New Issue
Block a user