Added advancements for pegasi

This commit is contained in:
Sollace 2021-09-02 20:12:09 +02:00
parent 3b4b0e66a1
commit f4e20d13e7
8 changed files with 255 additions and 2 deletions

View file

@ -15,6 +15,7 @@ public interface UCriteria {
CustomEventCriterion.Trigger FEED_TRICK_APPLE = CUSTOM_EVENT.createTrigger("feed_trick_apple"); CustomEventCriterion.Trigger FEED_TRICK_APPLE = CUSTOM_EVENT.createTrigger("feed_trick_apple");
CustomEventCriterion.Trigger SCREECH_SELF = CUSTOM_EVENT.createTrigger("screech_self"); CustomEventCriterion.Trigger SCREECH_SELF = CUSTOM_EVENT.createTrigger("screech_self");
CustomEventCriterion.Trigger SCREECH_TWENTY_MOBS = CUSTOM_EVENT.createTrigger("screech_twenty_mobs"); CustomEventCriterion.Trigger SCREECH_TWENTY_MOBS = CUSTOM_EVENT.createTrigger("screech_twenty_mobs");
CustomEventCriterion.Trigger SHED_FEATHER = CUSTOM_EVENT.createTrigger("shed_feather");
private static <T extends Criterion<?>> T register(T obj) { private static <T extends Criterion<?>> T register(T obj) {
return MixinCriteria.register(obj); return MixinCriteria.register(obj);

View file

@ -317,6 +317,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
if (entity.world.random.nextInt(9000) == 0) { if (entity.world.random.nextInt(9000) == 0) {
entity.dropItem(UItems.PEGASUS_FEATHER); entity.dropItem(UItems.PEGASUS_FEATHER);
entity.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 0.3F, 1); entity.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 0.3F, 1);
UCriteria.SHED_FEATHER.trigger(entity);
} }
} }

View file

@ -438,5 +438,14 @@
"advancements.unicopia.screech_twenty_mobs.title": "Terror From The Skies", "advancements.unicopia.screech_twenty_mobs.title": "Terror From The Skies",
"advancements.unicopia.screech_twenty_mobs.description": "Rain down terror on at least 20 mobs at once", "advancements.unicopia.screech_twenty_mobs.description": "Rain down terror on at least 20 mobs at once",
"advancements.unicopia.screech_self.title": "Jeepers!", "advancements.unicopia.screech_self.title": "Jeepers!",
"advancements.unicopia.screech_self.description": "Be so terrifying that you even scared your self a little" "advancements.unicopia.screech_self.description": "Be so terrifying that you even scared your self a little",
"advancements.unicopia.molting_season_1.title": "Molting Season",
"advancements.unicopia.molting_season_1.description": "Drop a feather whilst flying",
"advancements.unicopia.molting_season_2.title": "Molting Season 2",
"advancements.unicopia.molting_season_2.description": "Drop 5 feathers whilst flying",
"advancements.unicopia.molting_season_3.title": "Molting Season 3",
"advancements.unicopia.molting_season_3.description": "Drop 15 feathers whilst flying",
} }

View file

@ -0,0 +1,29 @@
{
"parent": "unicopia:unicopia/pegasus/sky_route",
"display": {
"icon": {
"item": "unicopia:pegasus_feather"
},
"title": {
"translate": "advancements.unicopia.molting_season_1.title"
},
"description": {
"translate": "advancements.unicopia.molting_season_1.description"
},
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": true
},
"criteria": {
"shed_feather": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
}
},
"requirements": [
[ "shed_feather" ]
]
}

View file

@ -0,0 +1,57 @@
{
"parent": "unicopia:unicopia/pegasus/molting_season_1",
"display": {
"icon": {
"item": "unicopia:pegasus_feather"
},
"title": {
"translate": "advancements.unicopia.molting_season_2.title"
},
"description": {
"translate": "advancements.unicopia.molting_season_2.description"
},
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": true
},
"criteria": {
"shed_feather_1": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_2": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_3": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_4": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_5": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
}
},
"requirements": [
[ "shed_feather_1" ],
[ "shed_feather_2" ],
[ "shed_feather_3" ],
[ "shed_feather_4" ],
[ "shed_feather_5" ]
]
}

View file

@ -0,0 +1,127 @@
{
"parent": "unicopia:unicopia/pegasus/molting_season_1",
"display": {
"icon": {
"item": "unicopia:pegasus_feather"
},
"title": {
"translate": "advancements.unicopia.molting_season_3.title"
},
"description": {
"translate": "advancements.unicopia.molting_season_3.description"
},
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": true
},
"criteria": {
"shed_feather_1": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_2": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_3": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_4": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_5": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_6": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_7": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_8": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_9": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_10": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_11": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_12": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_13": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_14": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
},
"shed_feather_15": {
"trigger": "unicopia:custom",
"conditions": {
"event": "shed_feather"
}
}
},
"requirements": [
[ "shed_feather_1" ],
[ "shed_feather_2" ],
[ "shed_feather_3" ],
[ "shed_feather_4" ],
[ "shed_feather_5" ],
[ "shed_feather_6" ],
[ "shed_feather_7" ],
[ "shed_feather_8" ],
[ "shed_feather_9" ],
[ "shed_feather_10" ],
[ "shed_feather_11" ],
[ "shed_feather_12" ],
[ "shed_feather_13" ],
[ "shed_feather_14" ],
[ "shed_feather_15" ]
]
}

View file

@ -0,0 +1,29 @@
{
"parent": "unicopia:unicopia/root",
"display": {
"icon": {
"item": "unicopia:pegasus_feather"
},
"title": {
"translate": "advancements.unicopia.sky_route.title"
},
"description": {
"translate": "advancements.unicopia.sky_route.description"
},
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": false
},
"criteria": {
"be_birb": {
"trigger": "unicopia:player_change_race",
"conditions": {
"race": "pegasus"
}
}
},
"requirements": [
[ "be_birb" ]
]
}

View file

@ -1,7 +1,7 @@
{ {
"display": { "display": {
"icon": { "icon": {
"item": "unicopia:pegasus_feather" "item": "unicopia:gryphon_feather"
}, },
"title": { "title": {
"translate": "advancements.unicopia.root.title" "translate": "advancements.unicopia.root.title"