Skip to content

Commit

Permalink
mending multiplier, remove mending, elytra ignores unbreaking
Browse files Browse the repository at this point in the history
  • Loading branch information
RhythmicSys committed Jun 18, 2024
1 parent 21dbe26 commit 26c2859
Show file tree
Hide file tree
Showing 12 changed files with 302 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
{
"description": {
"translate": "enchantment.minecraft.unbreaking"
},
"supported_items": "#purpur:enchantable/durability",
"weight": 5,
"max_level": 3,
"min_cost": {
"base": 5,
"per_level_above_first": 8
},
"max_cost": {
"base": 55,
"per_level_above_first": 8
},
"anvil_cost": 2,
"slots": [
"any"
],
"effects": {
"minecraft:item_damage": [
{
"effect": {
"type": "minecraft:remove_binomial",
"chance": {
"type": "minecraft:fraction",
"numerator": {
"type": "minecraft:linear",
"base": 2,
"per_level_above_first": 2
},
"denominator": {
"type": "minecraft:linear",
"base": 10,
"per_level_above_first": 5
}
}
},
"requirements": [
{
"condition": "minecraft:all_of",
"terms": [
{
"condition": "minecraft:match_tool",
"predicate": {
"items": "#minecraft:enchantable/armor"
}
},
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"items": "minecraft:elytra"
}
}
}
]
}
]
},
{
"effect": {
"type": "minecraft:remove_binomial",
"chance": {
"type": "minecraft:fraction",
"numerator": {
"type": "minecraft:linear",
"base": 1,
"per_level_above_first": 1
},
"denominator": {
"type": "minecraft:linear",
"base": 2,
"per_level_above_first": 1
}
}
},
"requirements": [
{
"condition": "minecraft:all_of",
"terms": [
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"items": "#minecraft:enchantable/armor"
}
}
},
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"items": "minecraft:elytra"
}
}
}
]
}
]
},
{
"effect": {
"type": "minecraft:remove_binomial",
"chance": {
"type": "minecraft:fraction",
"numerator": {
"type": "minecraft:linear",
"base": 0,
"per_level_above_first": 0
},
"denominator": {
"type": "minecraft:linear",
"base": 1,
"per_level_above_first": 0
}
}
},
"requirements": {
"condition": "minecraft:match_tool",
"predicate": {
"items": "minecraft:elytra"
}
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"replace": true,
"values": [
"#minecraft:foot_armor",
"#minecraft:leg_armor",
"#minecraft:chest_armor",
"#minecraft:head_armor",
"minecraft:shield",
"#minecraft:swords",
"#minecraft:axes",
"#minecraft:pickaxes",
"#minecraft:shovels",
"#minecraft:hoes",
"minecraft:bow",
"minecraft:crossbow",
"minecraft:trident",
"minecraft:flint_and_steel",
"minecraft:shears",
"minecraft:brush",
"minecraft:fishing_rod",
"minecraft:carrot_on_a_stick",
"minecraft:warped_fungus_on_a_stick",
"minecraft:mace"
]
}
10 changes: 10 additions & 0 deletions packs/elytra-ignores-unbreaking/modrinth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "1.0",
"version_number": "1.0",
"changelog": "",
"game_versions": [
"1.21"
],
"version_type": "release",
"project_id": ""
}
7 changes: 7 additions & 0 deletions packs/elytra-ignores-unbreaking/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pack": {
"pack_format": 48,
"description": "Disables Unbreaking From Working On Elytra",
"supported_formats": {"min_inclusive": 48, "max_inclusive": 48}
}
}
30 changes: 30 additions & 0 deletions packs/mending_multiplier/data/minecraft/enchantment/mending.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"anvil_cost": 4,
"description": {
"translate": "enchantment.minecraft.mending"
},
"effects": {
"minecraft:repair_with_xp": [
{
"effect": {
"type": "minecraft:multiply",
"factor": 2.0
}
}
]
},
"max_cost": {
"base": 75,
"per_level_above_first": 25
},
"max_level": 1,
"min_cost": {
"base": 25,
"per_level_above_first": 25
},
"slots": [
"any"
],
"supported_items": "#minecraft:enchantable/durability",
"weight": 2
}
8 changes: 8 additions & 0 deletions packs/mending_multiplier/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"pack": {
"pack_format": 48,
"description": "Allows you to alter the mending multiplier",
"supported_formats": {"min_inclusive": 48, "max_inclusive": 48}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"replace": true,
"values": [
"#minecraft:non_treasure",
"minecraft:binding_curse",
"minecraft:vanishing_curse",
"minecraft:frost_walker"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"replace": true,
"values": [
"minecraft:binding_curse",
"minecraft:vanishing_curse",
"minecraft:riptide",
"minecraft:channeling",
"minecraft:wind_burst",
"minecraft:frost_walker",
"minecraft:sharpness",
"minecraft:smite",
"minecraft:bane_of_arthropods",
"minecraft:impaling",
"minecraft:power",
"minecraft:density",
"minecraft:breach",
"minecraft:piercing",
"minecraft:sweeping_edge",
"minecraft:multishot",
"minecraft:fire_aspect",
"minecraft:flame",
"minecraft:knockback",
"minecraft:punch",
"minecraft:protection",
"minecraft:blast_protection",
"minecraft:fire_protection",
"minecraft:projectile_protection",
"minecraft:feather_falling",
"minecraft:fortune",
"minecraft:looting",
"minecraft:silk_touch",
"minecraft:luck_of_the_sea",
"minecraft:efficiency",
"minecraft:quick_charge",
"minecraft:lure",
"minecraft:respiration",
"minecraft:aqua_affinity",
"minecraft:soul_speed",
"minecraft:swift_sneak",
"minecraft:depth_strider",
"minecraft:thorns",
"minecraft:loyalty",
"minecraft:unbreaking",
"minecraft:infinity"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"replace": true,
"values": [
"#minecraft:non_treasure",
"minecraft:binding_curse",
"minecraft:vanishing_curse",
"minecraft:frost_walker"
]
}
11 changes: 11 additions & 0 deletions packs/remove_mending/data/minecraft/tags/enchantment/treasure.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"replace": true,
"values": [
"minecraft:binding_curse",
"minecraft:vanishing_curse",
"minecraft:swift_sneak",
"minecraft:soul_speed",
"minecraft:frost_walker",
"minecraft:wind_burst"
]
}
8 changes: 8 additions & 0 deletions packs/remove_mending/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"pack": {
"pack_format": 48,
"description": "",
"supported_formats": {"min_inclusive": 48, "max_inclusive": 48}
}
}

8 changes: 8 additions & 0 deletions util/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"pack": {
"pack_format": 48,
"description": "",
"supported_formats": {"min_inclusive": 48, "max_inclusive": 48}
}
}

0 comments on commit 26c2859

Please sign in to comment.