{
	"name": {
		"text": "Pyronite"
	},
	
	"icon": {
		"type": "texture",
		"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix.png"
	},
	
	"creative_tab": "ben10",
	
	"max_level": 30,
	
	"capsule_color" : 33333,
	
	"effects": [
		{
			"type": "glowing_hand",
			"color": [1, 0.3, 0.0],
			"size": 1.3,
			"conditions": [
				{
					"type": "ability_enabled",
					"ability": "lucraftcore:flight"
				},
				{
					"type": "always"
				}
			]
		},
		
		{
		"type": "skin_change",
        "texture": "ben_ten:textures/models/transformations/pyronite.png"
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/pyronite_glow.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "always"
				}
			]
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/pyronite_to.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "ability_enabled",
					"ability": "heroesexpansion:precision"
				}
			]
		}
	],
	
	"abilities": {
		"normal_sizepyronite": {
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "Normal Size"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"commands": ["sizechange @s 1 pymtech:pym_particles"]
		},
		"pyrokinetic flight": {
			"ability": "lucraftcore:flight",
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/pyronite_flight.png" },
			"required_level": 12,
			"show_in_bar": true,
			"title": {"text":"Pyrokinetic Flight"},
			"bar_color": "orange",				
			"speed": 0.5,
			"sprint_speed": 1.0,
			"rotate_arms": false
		},
		"Flight particles": {
			"ability": "lucraftcore:command_held",
			"parent_ability": "pyrokinetic flight",
			"show_in_bar": false,
			"title": {"text": "Flight Particles"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"commands": [
"/execute @s[ry=-21,rym=-69] ~ ~ ~ particle flame ~0.3 ~0.6 ~-0.3 0.03 0.03 0.03 0 50",
"/execute @s[ry=-21,rym=-69] ~ ~ ~ particle flame ~-0.3 ~0.6 ~0.3 0.03 0.03 0.03 0 50",

 "/execute @s[ry=-70,rym=-110] ~ ~ ~ particle flame ~ ~0.6 ~0.4 0.03 0.03 0.03 0 50",
 "/execute @s[ry=-70,rym=-110] ~ ~ ~ particle flame ~ ~0.6 ~-0.4 0.03 0.03 0.03 0 50",

 "/execute @s[ry=-111,rym=-159] ~ ~ ~ particle flame ~0.3 ~0.6 ~0.3 0.03 0.03 0.03 0 50", 
 "/execute @s[ry=-111,rym=-159] ~ ~ ~ particle flame ~-0.3 ~0.6 ~-0.3 0.03 0.03 0.03 0 50", 

 "/execute @s[ry=-160,rym=160] ~ ~ ~ particle flame ~0.4 ~0.6 ~ 0.03 0.03 0.03 0 50",
 "/execute @s[ry=-160,rym=160] ~ ~ ~ particle flame ~-0.4 ~0.6 ~ 0.03 0.03 0.03 0 50",

 "/execute @s[ry=159,rym=109] ~ ~ ~ particle flame ~-0.3 ~0.6 ~0.3 0.03 0.03 0.03 0 50", 
 "/execute @s[ry=159,rym=109] ~ ~ ~ particle flame ~0.3 ~0.6 ~-0.3 0.03 0.03 0.03 0 50", 

"/execute @s[ry=110,rym=70] ~ ~ ~ particle flame ~ ~0.6 ~0.4 0.03 0.03 0.03 0 50",
"/execute @s[ry=110,rym=70] ~ ~ ~ particle flame ~ ~0.6 ~-0.4 0.03 0.03 0.03 0 50",

 "/execute @s[ry=71,rym=19] ~ ~ ~ particle flame ~0.3 ~0.6 ~0.3 0.03 0.03 0.03 0 50",
 "/execute @s[ry=71,rym=19] ~ ~ ~ particle flame ~-0.3 ~0.6 ~-0.3 0.03 0.03 0.03 0 50",

 "/execute @s[ry=20,rym=-20] ~ ~ ~ particle flame ~0.4 ~0.6 ~ 0.03 0.03 0.03 0 50",
 "/execute @s[ry=20,rym=-20] ~ ~ ~ particle flame ~-0.4 ~0.6 ~ 0.03 0.03 0.03 0 50"]
		},
		"fireballpyro": {
			"ability": "lucraftcore:energy_blast",
			"cooldown": 30,
			"show_in_bar": true,
			"damage": 8.0,
			"color": [255, 0, 0],
			"title": {"translate":"Fireball Generation"},
			"bar_color": "orange",
			"icon": {"type": "texture","texture": "ben_ten:textures/gui/powers/fireball.png"}
		},
		"throw ball": {
			"ability": "lucraftcore:set_punch",
			"show_in_bar": false,
			"title": {"translate":"fireball command"},
			"parent_ability": "fireballpyro",
			"arm": 0,
			"reach_distance": 0.0,
			"damage": -1.0
		},
		"fireballpyrocom": {
			"ability": "lucraftcore:command",
			"show_in_bar": false,
			"title": {"translate":"fireball command"},
			"icon": { "type": "internal" },
			"parent_ability": "fireballpyro",
			"bar_color": "light_gray",
			"commands": ["scoreboard players tag @e[type=lucraftcore:energy_blast,r=3] add fireshot",
			"superpowerxp 2 @s"]
		},
		"pyrokinesis": {
            "ability": "heroesexpansion:photon_blast",
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/pyrokinesis.png" },
			"cooldown": 30,
            "frequency": 20,
			"bar_color": "orange",
			"title": {"text":"Pyrokinesis"},
			"uuid": "68305d2f-8a3c-43f0-913c-5d40c9b6549c"	
		},
		"pyrokinetic punch": {
			"ability": "lucraftcore:fire_punch",
			"cooldown": 0,
			"show_in_bar": true,
			"title": {"text":"Pyrokinetic Punch"},
            "icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/pyrokinetic_punch.png" },
            "bar_color": "orange"
		},
		"heat absorption": {	
	        "ability": "lucraftcore:command",		
			"cooldown": 0,
            "show_in_bar": true,	
            "title": {"text":"Heat Absorption"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/heat_absorption.png" },
            "bar_color": "orange",				
			"commands": ["/particle smoke ~ ~-1 ~ 2 2 2 0 500",
			"/fill ~-3 ~ ~-3 ~3 ~ ~3 air 0 replace fire",
			"/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 air 0 replace fire",
			"/fill ~-3 ~1 ~-3 ~3 ~1 ~3 air 0 replace fire",
			"/fill ~-3 ~2 ~-3 ~3 ~2 ~3 air 0 replace fire", "/fill ~-3 ~3 ~-3 ~3 ~3 ~3 air 0 replace fire"]
		},
		"detransformpyro": {	
	        "ability": "lucraftcore:command",		
			"required_level": 27,
            "show_in_bar": true,	
            "title": {"text":"Detransform"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_white.png" },
            "bar_color": "light_gray",
 			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "MasterControl"}]}],	
			"commands": ["/superpower @s ben_ten:prototype_omnitrix",
			"playsound ben_ten:prototype_transformation player @a ~ ~ ~",
			"/particle reddust ~ ~1 ~ 0.3 0.5 0.3 0 3000",
			"replaceitem entity @s slot.armor.head air",
			"replaceitem entity @s slot.armor.chest air",
			"replaceitem entity @s slot.armor.legs air",
			"replaceitem entity @s slot.armor.feet air",
			"scoreboard players set @s NoArmor 0"]
		},
		"selectorpyromc": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Selector"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix.png" },
            "bar_color": "green",	
			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "MasterControl"}],			
			"commands": ["/superpower @s ben_ten:pyronite_selector"]
		},
		"detransformpyromc": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Detransform"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_white.png" },
            "bar_color": "light_gray",	
			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "MasterControl"}],			
			"commands": ["replaceitem entity @s slot.armor.head air",
			"replaceitem entity @s slot.armor.chest air",
			"replaceitem entity @s slot.armor.legs air",
			"replaceitem entity @s slot.armor.feet air",
			"scoreboard players set @s NoArmor 0",
			"/superpower @s ben_ten:prototype_omnitrix",
			"playsound ben_ten:prototype_transformation player @a ~ ~ ~",
			"/particle reddust ~ ~1 ~ 0.3 0.5 0.3 0 3000"]
		},
		"timerpyro":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Timer"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_red.png"},
			"commands": ["scoreboard players add @s Timer 1",
			"execute @e[type=lucraftcore:energy_blast,tag=fireshot] ~ ~ ~ particle flame ~ ~ ~ 0.2 0.2 0.2 0 5000",
			"execute @e[type=lucraftcore:energy_blast,tag=fireshot] ~ ~ ~ /fill ~ ~ ~ ~ ~1 ~ fire 0 keep",
			"scoreboard players add @s[score_Timer=12000,score_Timer_min=12000,tag=!MasterControl] NoArmor 1",
			"replaceitem entity @s[score_Timer=11998,score_Timer_min=0] slot.armor.head ben_ten:invis_suit_helmet 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[score_Timer=11998,score_Timer_min=0] slot.armor.chest ben_ten:invis_suit_chest 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[score_Timer=11998,score_Timer_min=0] slot.armor.legs ben_ten:invis_suit_legs 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[score_Timer=11998,score_Timer_min=0] slot.armor.feet ben_ten:invis_suit_boots 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.head ben_ten:invis_suit_helmet 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.chest ben_ten:invis_suit_chest 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.legs ben_ten:invis_suit_legs 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.feet ben_ten:invis_suit_boots 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[score_NoArmor=1,score_NoArmor_min=1] slot.armor.head air",
			"replaceitem entity @s[score_NoArmor=1,score_NoArmor_min=1] slot.armor.chest air",
			"replaceitem entity @s[score_NoArmor=1,score_NoArmor_min=1] slot.armor.legs air",
			"replaceitem entity @s[score_NoArmor=1,score_NoArmor_min=1] slot.armor.feet air",
			"execute @s ~ ~ ~ detect ~ ~1 ~ minecraft:water 0 playsound minecraft:block.fire.extinguish master @a ~ ~ ~",
			"execute @s ~ ~ ~ detect ~ ~1 ~ minecraft:water 0 superpower @s ben_ten:pyronite_ex",
			"execute @s[score_Timer_min=12000,tag=!MasterControl] ~ ~ ~ /superpower @s ben_ten:prototype_omnitrix_timeout", 
			"execute @s[score_Timer_min=12000,tag=!MasterControl] ~ ~ ~ /particle reddust ~ ~1 ~ 0.3 0.5 0.3 0 3000", 
			"execute @s[score_Timer=11940,score_Timer_min=11940,tag=!MasterControl] ~ ~ ~ /playsound ben_ten:prototype_timeout-detransform master @a ~ ~ ~",
			"scoreboard players set @s[score_NoArmor_min=1] NoArmor 0",
			"effect @s[tag=MasterControl] minecraft:luck 1 0 true",
			"effect @s[score_Timer=11940,score_Timer_min=11940,tag=!MasterControl] heroesexpansion:kryptonite_poison 1 0 true",
			"effect @s[score_Timer=11965,score_Timer_min=11965,tag=!MasterControl] heroesexpansion:kryptonite_poison 1 0 true",
			"effect @s[score_Timer=12000,score_Timer_min=11990,tag=!MasterControl] heroesexpansion:kryptonite_poison 1 0 true",
			"superpower @s[score_DoD=1,score_DoD_min=1,tag=MasterControl] ben_10_addon:prototype_omnitrix",
			"superpower @s[score_DoD=1,score_DoD_min=1,tag=!MasterControl] ben_ten:prototype_omnitrix_timeout",
			"scoreboard players set @s[score_DoD_min=1] DoD 0"],
			"hidden": true
		},
		"timeoutwarning": {
			"ability": "heroesexpansion:precision",
			"cooldown": 0,
			"conditions": [{"type": "lucraftcore:not",
				"conditions": [{"type": "lucraftcore:potion_weakness",
						"potion": "heroesexpansion:kryptonite_poison"}]}],	
			"show_in_bar": false,
			"title": {"translate":"Color Warning"},
			"icon": { "type": "internal" }
		},
		"fire resistance": {
			"ability": "lucraftcore:fire_resistance"
		},
		"enhanced strength": {	
			"ability": "lucraftcore:strength",				
            "show_in_bar": false,		
            "title": {"text":"Enhanced Strength"},							
			"amount": 8,
			"operation": 0,
			"uuid": "7d706001-8484-44fd-8fe3-ae93e2efe315"
		},
		"defense": {
			"ability": "lucraftcore:resistance",			
            "show_in_bar": false,		
            "title": {"text":"Durability"},						
			"amount": 16,
			"operation": 0,
			"uuid": "8e327f4a-2a25-457f-82b9-03b5b6f17118"
		},
		"fall resistance": {
			"ability": "lucraftcore:fall_resistance",
			"show_in_bar": false,
			"title": {"text":"Fall Resistance"},
			"amount": 200,
			"operation": 0,
			"uuid": "d22e1d91-2a5c-488f-a9ec-df4a577987e8"
		},
		"cold resistance": {
			"ability": "the-fifth-world:potion_immunity",
			"show_in_bar": false,
			"potion": "heroesexpansion:frozen",
			"title": {"text":"Cold Resistance"},
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/powers/cold_resistance.png"}
		},
		"pyrokinesis XP": {
            "ability": "lucraftcore:command_held",
            "cooldown": 0,
			"parent_ability": "pyrokinesis",
            "show_in_bar": false,
            "title": {"text":"Pyrokinesis XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
		    "commands": ["/superpowerxp 4 @s"],
		    "hidden": true
		},
		"pyrokinetic punch XP": {
            "ability": "lucraftcore:command_toggle",
            "cooldown": 0,
			"parent_ability": "pyrokinetic punch",
            "show_in_bar": false,
            "title": {"text":"Pyrokinetic Punch XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
		    "commands": ["/superpowerxp 1 @s"],
		    "hidden": true	
			
		}
	}
}