Skip to content

Commit

Permalink
Add wings as a craftable modifier
Browse files Browse the repository at this point in the history
First modifier that costs more than 1 slot (this costs 2 ability slots). Takes advantage of the armor wings model being on all chestplates
  • Loading branch information
KnightMiner committed May 17, 2024
1 parent 1c65ba8 commit d7be910
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"item": "minecraft:elytra"
}
],
"level": 1,
"result": "tconstruct:wings",
"slots": {
"abilities": 2
},
"tools": {
"tag": "tconstruct:modifiable/armor/chestplate"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "tconstruct:modifier_salvage",
"modifier": "tconstruct:wings",
"slots": {
"abilities": 2
},
"tools": {
"tag": "tconstruct:modifiable/armor/chestplate"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"values": [
"tconstruct:ambidextrous",
"tconstruct:reach",
"tconstruct:strength"
"tconstruct:strength",
"tconstruct:wings"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected void addTags() {
// armor
this.tag(GENERAL_ARMOR_ABILITIES).add(ModifierIds.protection, TinkerModifiers.bursting.getId(), TinkerModifiers.wetting.getId());
this.tag(HELMET_ABILITIES).add(ModifierIds.aquaAffinity, TinkerModifiers.slurping.getId());
this.tag(CHESTPLATE_ABILITIES).add(TinkerModifiers.ambidextrous.getId(), ModifierIds.reach, ModifierIds.strength);
this.tag(CHESTPLATE_ABILITIES).add(TinkerModifiers.ambidextrous.getId(), ModifierIds.reach, ModifierIds.strength, ModifierIds.wings);
this.tag(LEGGING_ABILITIES).add(ModifierIds.pockets, ModifierIds.toolBelt);
this.tag(BOOT_ABILITIES).add(
TinkerModifiers.bouncy.getId(), TinkerModifiers.doubleJump.getId(), ModifierIds.longFall,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,13 @@ private void addModifierRecipes(Consumer<FinishedRecipe> consumer) {
.setSlots(SlotType.ABILITY, 1)
.saveSalvage(consumer, prefix(ModifierIds.strength, abilitySalvage))
.save(consumer, prefix(ModifierIds.strength, abilityFolder));
ModifierRecipeBuilder.modifier(ModifierIds.wings)
.setTools(TinkerTags.Items.CHESTPLATES)
.setMaxLevel(1).checkTraitLevel()
.addInput(Items.ELYTRA)
.setSlots(SlotType.ABILITY, 2)
.saveSalvage(consumer, prefix(ModifierIds.wings, abilitySalvage))
.save(consumer, prefix(ModifierIds.wings, abilityFolder));

// leggings
ModifierRecipeBuilder.modifier(ModifierIds.pockets)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"modifier_id": "tconstruct:wings",
"text": [
{
"text": "Allows you to glide by jumping while in mid air. Slowly damages the chestplate while gliding."
}
],
"more_text_space": true,
"effects": [
"Maximum of 1 level",
"Requires 2 ability slots"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"modifier_id": "tconstruct:wings",
"text": [
{
"text": "This isn't flying, this is falling! With style!"
}
],
"effects": [
"Allows gliding by jumping whil in air",
"Single level",
"Requires 2 ability slots"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"tconstruct:reflecting": "tconstruct:gui/modifiers/armor/reflecting",
"tconstruct:snowdrift": "tconstruct:gui/modifiers/armor/snowdrift",
"tconstruct:soulspeed": "tconstruct:gui/modifiers/armor/soulspeed",
"tconstruct:wings": [ "minecraft:item/elytra", "tconstruct:gui/modifiers/plus" ],

"tconstruct:gilded": ["minecraft:item/golden_apple", "tconstruct:gui/modifiers/plus"],
"tconstruct:writable": ["minecraft:item/writable_book", "tconstruct:gui/modifiers/plus"],
Expand Down

0 comments on commit d7be910

Please sign in to comment.