{
	"format_version": "1.16.100",
	"minecraft:item": {
		"description": {
			"identifier": "dotvi:sword_endgame",
			"category": "equipment"
		},
		"components": {
			"minecraft:creative_category": {
				"parent": "itemGroup.name.sword"
			},
			"minecraft:max_stack_size": 1,
			"minecraft:hand_equipped": true,
			"minecraft:durability": {
				"max_durability": 2500,
				"damage_chance": {
					"min": 100,
					"max": 100
				}
			},
			"minecraft:damage": 17,
			"minecraft:icon": {
				"texture": "dotvi_sword_endgame"
			},
			"minecraft:enchantable": {
				"value": 14,
				"slot": "sword"
			},
			"minecraft:can_destroy_in_creative": false,
			"minecraft:digger": {
				"use_efficiency": true,
				"destroy_speeds": [
					{
						"block": "minecraft:web",
						"speed": 12
					},
					{
						"block": "minecraft:bamboo",
						"speed": 8
					}
				]
			},
			"minecraft:weapon": {
				"on_hurt_entity": {
					"target": "self",
					"event": "dotvi:onhit_player"
				}
			},
			"tag:minecraft:is_sword": {},
			"minecraft:cooldown": {
				"category": "endgamesword",
				"duration": 1
			},
			"minecraft:on_use": {
				"on_use": {
					"target": "self",
					"event": "dotvi:on_use"
				}
			},
			"minecraft:render_offsets": {
				"main_hand": {
					"first_person": {
						"scale": [
							0.017,
							0.017,
							0.017
						]
					},
					"third_person": {
						"scale": [
							0.049,
							0.049,
							0.049
						]
					}
				}
			},
			"minecraft:foil": true,
			"minecraft:display_name": {
				"value": "§4§1Hirudo\n§4\"I'm not that kind of god.\"\n\n§9• When an enemy is struck with this weapon, the user gains §dregeneration§9.\n§9• When a §edisciple §9is struck, they are §4incapacitated §9for the rest of their existence.\n§9• When the user §acrouches and uses §9this weapon, the sword goes absolutely §4BONKERS§9.\n§9• §4...use responsibly\n"
			}
		},
		"events": {
			"dotvi:on_use": {
				"run_command": {
					"target": "self",
					"command": [
						"function supersword_attack_1"
					]
				}
			},
			"dotvi:onhit_player": {
				"sequence": [
					{
						"add_mob_effect": {
							"target": "self",
							"effect": "regeneration",
							"duration": 5,
							"amplifier": 5
						}
					},
					{
						"run_command": {
							"command": [
								"effect @e[family=disciplevoli, r=5, tag=!disciplecursed] slowness 1800 50",
								"effect @e[family=disciplevoli, r=5, tag=!disciplecursed] weakness 1800 50",
								"execute @e[family=disciplevoli, r=5, tag=!disciplecursed] ~~~ /summon lightning_bolt",
								"tag @e[family=disciplevoli, r=5, tag=!disciplecursed] add disciplecursed"
							],
							"target": "self"
						}
					}
				],
				"run_command": {
					"command": [
						"particle dotvi:endgamesword ~~~"
					]
				}
			}
		}
	}
}