Skip to content

Commit

Permalink
Add Valkyrie Magister Staff
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsoltMolnarrr committed Dec 21, 2024
1 parent 541a313 commit a4c5bad
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.2.0

- Add new weapons, obtainable only as loot from Aether dungeons
- Valkyrie Magister Staff

# 2.1.1

- Udpdate Russian translation, thanks to @Heimdallr
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fabric_api_version=0.102.0+1.21.1
# Mod
maven_group=net
archives_base_name=wizards
mod_version=2.1.1
mod_version=2.2.0
minecraft_compat_version=1.21

# Dependencies
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/net/wizards/item/Weapons.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ private static Supplier<Ingredient> ingredient(String idString, boolean requirem
}
}

private static final String AETHER = "aether";
private static final String BETTER_END = "betterend";
private static final String BETTER_NETHER = "betternether";

Expand Down Expand Up @@ -138,6 +139,15 @@ public static void register(Map<String, ItemConfig.Weapon> configs) {
Weapon.CustomMaterial.matching(ToolMaterials.NETHERITE, repair))
.attribute(ItemConfig.Attribute.bonus(SpellSchools.FROST.id, 7));
}
if (WizardsMod.tweaksConfig.value.ignore_items_required_mods || FabricLoader.getInstance().isModLoaded(AETHER)) {
var repair = ingredient("aether:ambrosium_shard", FabricLoader.getInstance().isModLoaded(AETHER), Items.NETHERITE_INGOT);
staff("aether_wizard_staff",
Weapon.CustomMaterial.matching(ToolMaterials.NETHERITE, repair))
.attribute(ItemConfig.Attribute.bonus(SpellSchools.ARCANE.id, 7))
.attribute(ItemConfig.Attribute.bonus(SpellSchools.FIRE.id, 7))
.attribute(ItemConfig.Attribute.bonus(SpellSchools.FROST.id, 7));
}


Weapon.register(configs, entries, Group.KEY);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/wizards/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"item.wizards.staff_crystal_arcane": "Crystal Arcane Staff",
"item.wizards.staff_ruby_fire": "Ruby Fire Staff",
"item.wizards.staff_smaragdant_frost": "Smaragdant Frost Staff",
"item.wizards.aether_wizard_staff": "Valkyrie Magister Staff",
"item.wizards.wizard_robe_head": "Wizard Hat",
"item.wizards.wizard_robe_chest": "Wizard Robe Top",
"item.wizards.wizard_robe_legs": "Wizard Robe Bottom",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "wizards:item/medium_staff",
"textures": {
"layer0": "wizards:item/aether_wizard_staff"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"replace": false,
"values": [
{
"id": "wizards:aether_wizard_staff",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"is_proxy": true,
"spell_ids": [ "wizards:arcane_bolt" ]
}
4 changes: 4 additions & 0 deletions src/main/resources/data/wizards/tags/item/staves.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
{
"id": "wizards:staff_smaragdant_frost",
"required": false
},
{
"id": "wizards:aether_wizard_staff",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "bettercombat:staff"
}

0 comments on commit a4c5bad

Please sign in to comment.