Skip to content

Commit

Permalink
backport weapon parts
Browse files Browse the repository at this point in the history
  • Loading branch information
iron431 committed Aug 10, 2024
1 parent c276251 commit 3ec88df
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public AmethystRapierItem(SpellDataRegistryHolder[] imbuedSpells) {
Map.of(
// AttributeRegistry.COOLDOWN_REDUCTION.get(), new AttributeModifier(UUID.fromString("412b5a66-2b43-4c18-ab05-6de0bb4d64d3"), "Weapon Modifier", .15, AttributeModifier.Operation.MULTIPLY_BASE)
),
ItemPropertiesHelper.hidden(1).rarity(Rarity.EPIC));
ItemPropertiesHelper.equipment(1).rarity(Rarity.EPIC));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public SpellbreakerItem(SpellDataRegistryHolder[] imbuedSpells) {
Map.of(
AttributeRegistry.COOLDOWN_REDUCTION.get(), new AttributeModifier(UUID.fromString("412b5a66-2b43-4c18-ab05-6de0bb4d64d3"), "Weapon Modifier", .15, AttributeModifier.Operation.MULTIPLY_BASE)
),
ItemPropertiesHelper.hidden(1).rarity(Rarity.EPIC));
ItemPropertiesHelper.equipment(1).rarity(Rarity.EPIC));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public static void register(IEventBus eventBus) {
public static final RegistryObject<Item> FROSTED_HELVE = ITEMS.register("frosted_helve", () -> new Item(ItemPropertiesHelper.material().rarity(Rarity.COMMON)));
public static final RegistryObject<Item> ICE_CRYSTAL = ITEMS.register("permafrost_shard", () -> new Item(ItemPropertiesHelper.material().rarity(Rarity.RARE)));
public static final RegistryObject<Item> ENERGIZED_CORE = ITEMS.register("energized_core", () -> new EnergizedCoreItem(ItemPropertiesHelper.material(1).rarity(Rarity.UNCOMMON)));
public static final RegistryObject<Item> WEAPON_PARTS = ITEMS.register("weapon_parts", () -> new Item(ItemPropertiesHelper.material().rarity(Rarity.RARE)));

/**
* Block Items
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/irons_spellbooks/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"item.irons_spellbooks.arcane_essence": "Arcane Essence",
"item.irons_spellbooks.cinder_essence": "Cinder Essence",
"item.irons_spellbooks.cinder_essence.guide": "Dropped from Ancient Knights.",
"item.irons_spellbooks.weapon_parts": "Weapon Parts",
"item.irons_spellbooks.dev_staff": "Staff of Testing",
"item.irons_spellbooks.staff_of_the_nines": "Staff of the Nines",
"item.irons_spellbooks.arcane_salvage": "Arcane Salvage",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "irons_spellbooks:item/weapon_parts"
}
}
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,23 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" A",
"CA ",
"WC "
],
"key": {
"A": {
"item": "minecraft:amethyst_shard"
},
"C": {
"item": "minecraft:chain"
},
"W": {
"item": "irons_spellbooks:weapon_parts"
}
},
"result": {
"item": "irons_spellbooks:amethyst_rapier",
"count": 1
}
}
23 changes: 23 additions & 0 deletions src/main/resources/data/irons_spellbooks/recipes/spellbreaker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" M",
"DM ",
"WD "
],
"key": {
"M": {
"item": "irons_spellbooks:arcane_salvage"
},
"D": {
"tag": "forge:gems/diamond"
},
"W": {
"item": "irons_spellbooks:weapon_parts"
}
},
"result": {
"item": "irons_spellbooks:spellbreaker",
"count": 1
}
}
20 changes: 20 additions & 0 deletions src/main/resources/data/irons_spellbooks/recipes/weapon_parts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" IM",
" MI",
"M "
],
"key": {
"M": {
"item": "irons_spellbooks:arcane_salvage"
},
"I": {
"item": "irons_spellbooks:arcane_ingot"
}
},
"result": {
"item": "irons_spellbooks:weapon_parts",
"count": 1
}
}

0 comments on commit 3ec88df

Please sign in to comment.