Hello Minecraft Team. I make small addons. And I like the idea of making custom enchantments. So I have made some prototype code what a sharpness enchant could look like in the addon code. I don't know if this post is in the right place.
{
"format_version": "1.17.0",
"minecraft:enchant": {
"description": {
"identifier": "minecraft:sharpness"
},
"components": {
"minecraft:enchant_values": {
"slot": "sword",
"max_level": 5
},
"minecraft:display_name": {
"value": "Sharpness"
},
"minecraft:enchant_event": {
"event": "minecraft:damage",
"target": "self",
"change_per_level": true
}
},
"events": [
"minecraft:damage": {
"damage": {
"base_damage": 1
}
}
]
}
}
Please sign in to leave a comment.
0 Comments