Implement java independent custom enchantments
This commit is contained in:
parent
132c06c854
commit
43fa1b57d1
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"enchantment.mc_rebalance.stepping": "Stepping",
|
||||
"enchantment.mc_rebalance.bound": "Bound",
|
||||
"enchantment.mc_rebalance.clutch": "Clutch",
|
||||
"enchantment.mc_rebalance.whallop": "Whallop",
|
||||
"enchantment.mc_rebalance.trowel": "Trowel"
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"anvil_cost": 1,
|
||||
"description": {
|
||||
"translate": "enchantment.mc_rebalance.stepping"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:attributes": [
|
||||
{
|
||||
"amount": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 0.4,
|
||||
"per_level_above_first": 0.5
|
||||
},
|
||||
"attribute": "generic.step_height",
|
||||
"id": "mc_rebalance:enchantment.stepping",
|
||||
"operation": "add_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/capability",
|
||||
"max_cost": {
|
||||
"base": 51,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"max_level": 3,
|
||||
"min_cost": {
|
||||
"base": 1,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"slots": [
|
||||
"feet"
|
||||
],
|
||||
"supported_items": "#minecraft:enchantable/foot_armor",
|
||||
"weight": 10
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"anvil_cost": 1,
|
||||
"description": {
|
||||
"translate": "enchantment.mc_rebalance.trowel"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:attributes": [
|
||||
{
|
||||
"amount": 1024,
|
||||
"attribute": "player.mining_efficiency",
|
||||
"id": "mc_rebalance:enchantment.trowel",
|
||||
"operation": "add_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/capability",
|
||||
"max_cost": {
|
||||
"base": 51,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"max_level": 1,
|
||||
"min_cost": {
|
||||
"base": 1,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"slots": [
|
||||
"mainhand"
|
||||
],
|
||||
"supported_items": "#mc_rebalance:enchantable/shovel",
|
||||
"weight": 10
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"anvil_cost": 1,
|
||||
"description": {
|
||||
"translate": "enchantment.mc_rebalance.whallop"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:knockback": [
|
||||
{
|
||||
"effect": {
|
||||
"type": "minecraft:add",
|
||||
"value": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 5.0,
|
||||
"per_level_above_first": 5.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/capability",
|
||||
"max_cost": {
|
||||
"base": 51,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"max_level": 1,
|
||||
"min_cost": {
|
||||
"base": 1,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"slots": [
|
||||
"mainhand"
|
||||
],
|
||||
"supported_items": "#mc_rebalance:enchantable/shovel",
|
||||
"weight": 10
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"values": [
|
||||
"minecraft:respiration",
|
||||
"minecraft:thorns",
|
||||
"minecraft:frost_walker",
|
||||
"minecraft:swift_sneak",
|
||||
"mc_rebalance:stepping",
|
||||
"minecraft:feather_falling",
|
||||
"minecraft:fire_aspect",
|
||||
"minecraft:sweeping_edge",
|
||||
"minecraft:channeling",
|
||||
"minecraft:riptide",
|
||||
"minecraft:density",
|
||||
"minecraft:breach",
|
||||
"minecraft:wind_burst",
|
||||
"minecraft:flame",
|
||||
"minecraft:piercing",
|
||||
"minecraft:multishot",
|
||||
"minecraft:quick_charge",
|
||||
"minecraft:efficiency",
|
||||
"mc_rebalance:trowel",
|
||||
"mc_rebalance:whallop",
|
||||
"minecraft:luck_of_the_sea"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"values": [
|
||||
"minecraft:mending",
|
||||
"minecraft:unbreaking"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"#minecraft:shovels"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
"anvil_cost": 2,
|
||||
"description": {
|
||||
"translate": "enchantment.mc_rebalance.clutch"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:damage_protection": [
|
||||
{
|
||||
"effect": {
|
||||
"type": "minecraft:add",
|
||||
"value": {"type": "minecraft:linear", "base": 4.0, "per_level_above_first": 4.0}
|
||||
},
|
||||
"requirements": {
|
||||
"condition": "minecraft:damage_source_properties",
|
||||
"predicate": {
|
||||
"tags": [
|
||||
{"expected": true, "id": "minecraft:is_fall"},
|
||||
{"expected": false, "id": "minecraft:bypasses_invulnerability"}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"minecraft:damage_immunity": [{
|
||||
"effect": {},
|
||||
"requirements": {
|
||||
"condition": "minecraft:all_of",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:location_check",
|
||||
"offsetY": -1,
|
||||
"predicate": {
|
||||
"block": {"blocks": "minecraft:frosted_ice"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"condition": "minecraft:damage_source_properties",
|
||||
"predicate": {
|
||||
"tags": [
|
||||
{"expected": true, "id": "minecraft:is_fall"},
|
||||
{"expected": false, "id": "minecraft:bypasses_invulnerability"}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"legs": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [{"enchantments": "minecraft:frost_walker"}]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/capability",
|
||||
"max_cost": {
|
||||
"base": 11,
|
||||
"per_level_above_first": 6
|
||||
},
|
||||
"max_level": 4,
|
||||
"min_cost": {
|
||||
"base": 5,
|
||||
"per_level_above_first": 6
|
||||
},
|
||||
"slots": [
|
||||
"armor"
|
||||
],
|
||||
"supported_items": "#minecraft:enchantable/foot_armor",
|
||||
"weight": 5
|
||||
}
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"anvil_cost": 4,
|
||||
"description": {
|
||||
"translate": "enchantment.minecraft.frost_walker"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:damage_immunity": [
|
||||
{
|
||||
"effect": {},
|
||||
"requirements": {
|
||||
"condition": "minecraft:damage_source_properties",
|
||||
"predicate": {
|
||||
"tags": [
|
||||
{
|
||||
"expected": true,
|
||||
"id": "minecraft:burn_from_stepping"
|
||||
},
|
||||
{
|
||||
"expected": false,
|
||||
"id": "minecraft:bypasses_invulnerability"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"minecraft:location_changed": [
|
||||
{
|
||||
"effect": {
|
||||
"type": "minecraft:replace_disk",
|
||||
"block_state": {
|
||||
"type": "minecraft:simple_state_provider",
|
||||
"state": {
|
||||
"Name": "minecraft:frosted_ice",
|
||||
"Properties": {
|
||||
"age": "0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"height": 1.0,
|
||||
"offset": [
|
||||
0,
|
||||
-1,
|
||||
0
|
||||
],
|
||||
"predicate": {
|
||||
"type": "minecraft:all_of",
|
||||
"predicates": [
|
||||
{
|
||||
"type": "minecraft:matching_block_tag",
|
||||
"offset": [
|
||||
0,
|
||||
1,
|
||||
0
|
||||
],
|
||||
"tag": "minecraft:air"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:matching_blocks",
|
||||
"blocks": "minecraft:water"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:matching_fluids",
|
||||
"fluids": "minecraft:water"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:unobstructed"
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "minecraft:clamped",
|
||||
"max": 16.0,
|
||||
"min": 0.0,
|
||||
"value": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 3.0,
|
||||
"per_level_above_first": 1.0
|
||||
}
|
||||
},
|
||||
"trigger_game_event": "minecraft:block_place"
|
||||
},
|
||||
"requirements": {
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"flags": {
|
||||
"is_on_ground": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/capability",
|
||||
"max_cost": {
|
||||
"base": 25,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"max_level": 2,
|
||||
"min_cost": {
|
||||
"base": 10,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"slots": [
|
||||
"legs"
|
||||
],
|
||||
"supported_items": "#minecraft:enchantable/leg_armor",
|
||||
"weight": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"anvil_cost": 4,
|
||||
"description": {
|
||||
"translate": "enchantment.minecraft.mending"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:repair_with_xp": [
|
||||
{
|
||||
"effect": {
|
||||
"type": "minecraft:multiply",
|
||||
"factor": 2.0
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/durability",
|
||||
"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
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"anvil_cost": 4,
|
||||
"description": {
|
||||
"translate": "enchantment.minecraft.respiration"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:attributes": [
|
||||
{
|
||||
"amount": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 1.0,
|
||||
"per_level_above_first": 1.0
|
||||
},
|
||||
"attribute": "minecraft:generic.oxygen_bonus",
|
||||
"id": "minecraft:enchantment.respiration",
|
||||
"operation": "add_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/capability",
|
||||
"max_cost": {
|
||||
"base": 40,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"max_level": 3,
|
||||
"min_cost": {
|
||||
"base": 10,
|
||||
"per_level_above_first": 10
|
||||
},
|
||||
"slots": [
|
||||
"head"
|
||||
],
|
||||
"supported_items": "#minecraft:enchantable/head_armor",
|
||||
"weight": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"anvil_cost": 8,
|
||||
"description": {
|
||||
"translate": "enchantment.minecraft.swift_sneak"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:attributes": [
|
||||
{
|
||||
"amount": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 0.15,
|
||||
"per_level_above_first": 0.15
|
||||
},
|
||||
"attribute": "minecraft:player.sneaking_speed",
|
||||
"id": "minecraft:enchantment.swift_sneak",
|
||||
"operation": "add_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/capability",
|
||||
"max_cost": {
|
||||
"base": 75,
|
||||
"per_level_above_first": 25
|
||||
},
|
||||
"max_level": 3,
|
||||
"min_cost": {
|
||||
"base": 25,
|
||||
"per_level_above_first": 25
|
||||
},
|
||||
"slots": [
|
||||
"legs"
|
||||
],
|
||||
"supported_items": "#minecraft:enchantable/leg_armor",
|
||||
"weight": 1
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"anvil_cost": 8,
|
||||
"description": {
|
||||
"translate": "enchantment.minecraft.thorns"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:post_attack": [
|
||||
{
|
||||
"affected": "attacker",
|
||||
"effect": {
|
||||
"type": "minecraft:all_of",
|
||||
"effects": [
|
||||
{
|
||||
"type": "minecraft:damage_entity",
|
||||
"damage_type": "minecraft:thorns",
|
||||
"max_damage": 5.0,
|
||||
"min_damage": 1.0
|
||||
},
|
||||
{
|
||||
"type": "minecraft:damage_item",
|
||||
"amount": 2.0
|
||||
}
|
||||
]
|
||||
},
|
||||
"enchanted": "victim",
|
||||
"requirements": {
|
||||
"chance": {
|
||||
"type": "minecraft:enchantment_level",
|
||||
"amount": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 0.15,
|
||||
"per_level_above_first": 0.15
|
||||
}
|
||||
},
|
||||
"condition": "minecraft:random_chance"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/capability",
|
||||
"max_cost": {
|
||||
"base": 60,
|
||||
"per_level_above_first": 20
|
||||
},
|
||||
"max_level": 3,
|
||||
"min_cost": {
|
||||
"base": 10,
|
||||
"per_level_above_first": 20
|
||||
},
|
||||
"slots": [
|
||||
"chest"
|
||||
],
|
||||
"supported_items": "#minecraft:enchantable/chest_armor",
|
||||
"weight": 1
|
||||
}
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
"anvil_cost": 2,
|
||||
"description": {
|
||||
"translate": "enchantment.minecraft.unbreaking"
|
||||
},
|
||||
"effects": {
|
||||
"minecraft:item_damage": [
|
||||
{
|
||||
"effect": {
|
||||
"type": "minecraft:remove_binomial",
|
||||
"chance": {
|
||||
"type": "minecraft:fraction",
|
||||
"denominator": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 10.0,
|
||||
"per_level_above_first": 5.0
|
||||
},
|
||||
"numerator": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 2.0,
|
||||
"per_level_above_first": 2.0
|
||||
}
|
||||
}
|
||||
},
|
||||
"requirements": {
|
||||
"condition": "minecraft:match_tool",
|
||||
"predicate": {
|
||||
"items": "#minecraft:enchantable/armor"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"effect": {
|
||||
"type": "minecraft:remove_binomial",
|
||||
"chance": {
|
||||
"type": "minecraft:fraction",
|
||||
"denominator": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 2.0,
|
||||
"per_level_above_first": 1.0
|
||||
},
|
||||
"numerator": {
|
||||
"type": "minecraft:linear",
|
||||
"base": 1.0,
|
||||
"per_level_above_first": 1.0
|
||||
}
|
||||
}
|
||||
},
|
||||
"requirements": {
|
||||
"condition": "minecraft:inverted",
|
||||
"term": {
|
||||
"condition": "minecraft:match_tool",
|
||||
"predicate": {
|
||||
"items": "#minecraft:enchantable/armor"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"exclusive_set": "#mc_rebalance:exclusive_set/durability",
|
||||
"max_cost": {
|
||||
"base": 55,
|
||||
"per_level_above_first": 8
|
||||
},
|
||||
"max_level": 3,
|
||||
"min_cost": {
|
||||
"base": 5,
|
||||
"per_level_above_first": 8
|
||||
},
|
||||
"slots": [
|
||||
"any"
|
||||
],
|
||||
"supported_items": "#minecraft:enchantable/durability",
|
||||
"weight": 5
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"values": [
|
||||
"mc_rebalance:stepping",
|
||||
"mc_rebalance:bound"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue