{
	"name": {
		"text": "Charm Of Electrokinesis"
	},
	
	"creative_tab": "charms",
	
	"armor_material": {
		"durability": 0,
		"damage_reduction_amounts": [0, 6, 1, 0],
		"enchantibility": 15,
		"toughness": 0.0,
		"sound": "item.armor.equip_leather"
	},
    "effects": [
		{
            "type": "skin_overlay",
            "texture": "charmsofbezel:textures/models/charm_of_resurrection_g.png",
            "size": 0.25,
            "glow": true,
		  "conditions": [
				{
					"type": "ability_enabled",
					"ability": "resurr charm",
					"use_key": true
				}
			]
        },
		{
			"type": "glowing_hand",
			"color": [1.0, 1.0, 0.0],
			"size": 1.4,
		  "conditions": [
				{
					"type": "ability_enabled",
					"ability": "resurr charm",
					"use_key": true
				}
			]
        }
		],
			"abilities": {
		"resurrection charm": {
			"ability": "lucraftcore:health",
			"amount": 20.0,
			"show_in_bar": false,	
			"bar_color": "blue"
		  	},
		"resurr charm": {
			"ability": "lucraftcore:toggle_power",
              		"title": {"text":"Enable Charm"},
			"show_in_bar": true,	
			"bar_color": "yellow",
			"icon": {
						"type": "texture",
						"texture": "charmsofbezel:textures/gui/charm_of_resurrection.png"}
		  	},
		"heal": {
			"ability": "lucraftcore:command",
              		"title": {"text":"Resurrection : Self Heal"},
               		"cooldown": 300,
			"commands": [
			"effect @s clear", 
			"effect @s regeneration 2 50 true", 
			"/effect @s minecraft:saturation 1 255 true",
			"scoreboard players remove @s[score_mana_min=25] mana 25"],
               		"required_ability": "resurr charm",	
			"bar_color": "green",
			"icon": {
						"type": "texture",
						"texture": "charmsofbezel:textures/gui/charm_of_resurrection_heal.png"
					},
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "min_mana"}]
		  	},
		"heal_ally": {
			"ability": "lucraftcore:command",
              		"title": {"text":"Resurrection : Ally Heal"},
               		"cooldown": 400,
			"commands": [
			"effect @e[r=5] clear", "effect @e[r=5] regeneration 2 50 true", 
			"effect @s regeneration 0 0",
			"/effect @e[r=5] minecraft:saturation 1 255 true",
			"scoreboard players remove @s[score_mana_min=50] mana 50"],
               		"required_ability": "resurr charm",	
			"bar_color": "green",
			"icon": {
						"type": "texture",
						"texture": "charmsofbezel:textures/gui/charm_of_resurrection_heal_ally.png"
					},
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "min_mana"}]
		  	},
		"revivestone": {
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,	
			"commands": [
		"/scoreboard objectives add cooldownmagic dummy",
		"/scoreboard objectives add resurrection health",
		"/gamerule commandBlockOutput false",
		"/scoreboard players remove @s[score_cooldownmagic_min=1] cooldownmagic 1",
		"/scoreboard players set @s[score_cooldownmagic=0,score_cooldownmagic_min=-100] cooldownmagic 0",
		"/scoreboard objectives add resurrection health", 
		"/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ effect @s lucraftcore:knock_out 15 255 true", 
		"/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ effect @s minecraft:saturation 1 255 true", 
		"/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ /playsound minecraft:item.totem.use ambient @s", 
		"/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ /effect @s minecraft:regeneration 2 255 true", 
		"/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ /effect @s minecraft:resistance 15 255 true", 
		"/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ /effect @s minecraft:slowness 15 255 true", 
		"/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ /effect @s minecraft:blindness 15 255 true", 
		"/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ /scoreboard players set @s cooldownmagic 12000", "/execute @s[score_resurrection=8,score_resurrection_min=0,score_cooldownmagic=0,score_mana_min=70] ~ ~ ~ /scoreboard players remove @s mana 70",
		 "/effect @s[score_cooldownmagic=11720] lucraftcore:knock_out 0"],
			"bar_color": "blue",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "min_mana"}]
		  	},
		"mana system_res": {
			"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,		
			"commands": [
		"/gamerule commandBlockOutput false",
		"/scoreboard players set @s manabar 5",
		"/scoreboard objectives add mana_display dummy",
		"/scoreboard players set @s[tag=!mana_upgrade] mana_display 0",
		"scoreboard players tag @s remove min_mana",
		"scoreboard players tag @s[score_mana_min=3] add min_mana", 
		"/scoreboard objectives add mana dummy", 
		"/scoreboard objectives add mana_recharge dummy", 
		"/scoreboard players add @s mana_recharge 1", 
		"/scoreboard players add @s[score_mana_recharge_min=100] mana 3", 
		"/scoreboard players set @s[score_mana_recharge_min=100] mana_recharge 1", 
		"/scoreboard players set @s[score_mana_min=201,score_mana_display=0] mana 200",
		"/execute @s[score_mana_min=0,score_mana=0,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=1,score_mana=20,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=21,score_mana=40,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=41,score_mana=60,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=61,score_mana=80,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=81,score_mana=100,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=101,score_mana=120,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=121,score_mana=140,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=141,score_mana=160,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=161,score_mana=180,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=181,score_mana=200,score_mana_display=0] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gold\"},{\"text\":\"\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]"],
			"icon": {
						"type": "texture",
						"texture": "charmsofbezel:textures/gui/charm_of_electrokinesis.png"
					}
			},
		"key charm": {
			"ability": "lucraftcore:toggle_power",
              		"title": {"text":"Enable Charm"},
			"show_in_bar": true,	
			"bar_color": "red",
			"icon": {
			"type": "texture",
			"texture": "charmsofbezel:textures/gui/keystone_of_bezel.png"},
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "charmsofbezel:keystone_of_bezel_braclet_chest",
              		"hand": "off_hand"}]
		  	},
		"keystone_strenght": {
			"ability": "lucraftcore:strength",
			"hidden": true,
			"amount": 10.0,
			"show_in_bar": false,	
			"required_ability": "key charm",
			"bar_color": "blue",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "min_mana"},
			{
             	 	"type": "lucraftcore:held_item",
              		"item": "charmsofbezel:keystone_of_bezel_braclet_chest",
              		"hand": "off_hand"}]
		  	},
		"keystone_speed": {
			"ability": "lucraftcore:sprint",
			"hidden": true,
			"required_ability": "key charm",
			"amount": 3.0,
			"show_in_bar": false,	
			"bar_color": "blue",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "min_mana"},
			{
             	 	"type": "lucraftcore:held_item",
              		"item": "charmsofbezel:keystone_of_bezel_braclet_chest",
              		"hand": "off_hand"}]
		  	},
		"fall resis key": {
			"ability": "lucraftcore:fall_resistance",
			"show_in_bar": false,
			"required_ability": "key charm",	
			"amount": 15.0,
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "min_mana"},
			{
             	 	"type": "lucraftcore:held_item",
              		"item": "charmsofbezel:keystone_of_bezel_braclet_chest",
              		"hand": "off_hand"}]
		  	},
		"res": {
			"ability": "lucraftcore:resistance",
			"show_in_bar": false,
			"required_ability": "key charm",	
			"amount": 8.0,
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "min_mana"},
			{
             	 	"type": "lucraftcore:held_item",
              		"item": "charmsofbezel:keystone_of_bezel_braclet_chest",
              		"hand": "off_hand"}]
		  	},
		"keystone_jump": {
			"ability": "lucraftcore:jump_boost",
			"required_ability": "key charm",
			"amount": 1.2,
			"show_in_bar": false,	
			"bar_color": "blue",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "min_mana"},
			{
             	 	"type": "lucraftcore:held_item",
              		"item": "charmsofbezel:keystone_of_bezel_braclet_chest",
              		"hand": "off_hand"}]
		  	},
	"mana system keystone": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": [
		"scoreboard players tag @s add mana_upgrade",
		"scoreboard players set @s[tag=mana_upgrade_min=2]",
		"scoreboard players set @s mana_display 1",
		"/effect @s minecraft:jump_boost 1 1 true",
		"/gamerule commandBlockOutput false",
		"scoreboard players tag @s remove min_mana",
		"/scoreboard players set @s[tag=!mana_upgrade] mana_display 0",
		"scoreboard players tag @s[score_mana_min=3] add min_mana",
		"/scoreboard objectives add mana dummy", 
		"/scoreboard objectives add mana_recharge dummy", 
		"/scoreboard players add @s mana_recharge 1", 
		"/scoreboard players add @s[score_mana_recharge_min=100] mana 6", 
		"/scoreboard players set @s[score_mana_recharge_min=100] mana_recharge 1", 		
		"/scoreboard players set @s[score_mana_min=601] mana 600",

		"/execute @s[score_mana_min=0,score_mana=0,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"\",\"color\":\"red\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=1,score_mana=60,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋\",\"color\":\"red\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=61,score_mana=120,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋\",\"color\":\"red\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=121,score_mana=180,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋\",\"color\":\"red\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=181,score_mana=240,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋\",\"color\":\"red\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=241,score_mana=300,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋\",\"color\":\"red\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=301,score_mana=360,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"red\"},{\"text\":\"▋▋▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=361,score_mana=420,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"red\"},{\"text\":\"▋▋▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=421,score_mana=480,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"red\"},{\"text\":\"▋▋▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=481,score_mana=540,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"red\"},{\"text\":\"▋▋\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
		"/execute @s[score_mana_min=541,score_mana=600,score_mana_display_min=1,score_mana_display=2] ~ ~ ~ title @s actionbar [{\"text\":\"\",\"color\":\"dark_gray\"},{\"text\":\"▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋\",\"color\":\"red\"},{\"text\":\"\",\"color\":\"gray\"},{\"text\":\"\",\"color\":\"dark_gray\"}]",
			"effect @s jump_boost 1 1 true"],
 			"conditions": [
			{
             	 	"type": "lucraftcore:held_item",
              		"item": "charmsofbezel:keystone_of_bezel_braclet_chest",
              		"hand": "off_hand"}]
			},
	"remove tag": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,		
			"commands": [
			"scoreboard players tag @s remove mana_upgrade",
			"scoreboard players remove @s mana_display 1"],
			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "charmsofbezel:keystone_of_bezel_braclet_chest",
              		"hand": "off_hand"}]}]
			}
		},
	"armor_parts": {
		"chest": {
			"openable": false,
			"glow": false,
			"armor_model_scale": 0.25,
			"name": {
				"text": "Charm Of Resurrection"
			},
			"textures": {
				"normal": "charmsofbezel:textures/models/charm_of_resurrection.png"
			},
			"item_texture": {
				"blockstate": "charmsofbezel:charm_of_resurrection"
			}
		}
	}
}
