mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Added advancements for pegasi
This commit is contained in:
parent
3b4b0e66a1
commit
f4e20d13e7
8 changed files with 255 additions and 2 deletions
|
@ -15,6 +15,7 @@ public interface UCriteria {
|
|||
CustomEventCriterion.Trigger FEED_TRICK_APPLE = CUSTOM_EVENT.createTrigger("feed_trick_apple");
|
||||
CustomEventCriterion.Trigger SCREECH_SELF = CUSTOM_EVENT.createTrigger("screech_self");
|
||||
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) {
|
||||
return MixinCriteria.register(obj);
|
||||
|
|
|
@ -317,6 +317,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
|
|||
if (entity.world.random.nextInt(9000) == 0) {
|
||||
entity.dropItem(UItems.PEGASUS_FEATHER);
|
||||
entity.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 0.3F, 1);
|
||||
UCriteria.SHED_FEATHER.trigger(entity);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -438,5 +438,14 @@
|
|||
"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_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",
|
||||
}
|
||||
|
|
|
@ -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" ]
|
||||
]
|
||||
}
|
|
@ -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" ]
|
||||
]
|
||||
}
|
|
@ -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" ]
|
||||
]
|
||||
}
|
|
@ -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" ]
|
||||
]
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "unicopia:pegasus_feather"
|
||||
"item": "unicopia:gryphon_feather"
|
||||
},
|
||||
"title": {
|
||||
"translate": "advancements.unicopia.root.title"
|
||||
|
|
Loading…
Reference in a new issue