{
	"name": {
		"text": "Recalibrated Omnitrix"
	},

	"icon": {
		"type": "texture",
		"texture": "ben_10_addon_af:textures/gui/logo3.png"
	},

	"creative_tab": "ben_10_addon",
	
	"max_level": 40,
	
	"capsule_color": 33333,
	
    "effects": [
    ],
	
	"abilities": {
	"Cycling to Recharge Mode": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": [
			"/clear @s ben_10_addon_af:crypto_blade_chest",
			"/clear @s ben_10_addon_af:rath_claws_chest",
			"clear @s ben_ten:alien_x_suit_helmet",
			"clear @s ben_ten:alien_x_suit_chest",
			"clear @s ben_ten:alien_x_suit_legs",
			"clear @s ben_ten:alien_x_suit_boots",

			"clear @s ben_ten:invis_suit_x_helmet",
			"clear @s ben_ten:invis_suit_x_chest",
			"clear @s ben_ten:invis_suit_x_legs",
			"clear @s ben_ten:invis_suit_x_boots",

			"clear @s ben_ten:invis_suit_helmet",
			"clear @s ben_ten:invis_suit_chest",
			"clear @s ben_ten:invis_suit_legs",
			"clear @s ben_ten:invis_suit_boots",

			"clear @s ben_ten:u_invis_suit_helmet",
			"clear @s ben_ten:u_invis_suit_chest",
			"clear @s ben_ten:u_invis_suit_legs",
			"clear @s ben_ten:u_invis_suit_boots",

"/scoreboard objectives add OmnitrixOn dummy",
"/clear @s[score_OmnitrixOn=2,score_Inverted=0] ben_10_addon_af:recal_omnitrix_timedout_chest",
"/clear @s[score_OmnitrixOn=2,score_Inverted_min=1] ben_10_addon_af:recal_omnitrix_timedout_iv_chest",
"/replaceitem entity @s[score_OmnitrixOn=2,score_Inverted=0] slot.weapon.offhand ben_10_addon_af:recal_omnitrix_timedout_chest",
"/replaceitem entity @s[score_OmnitrixOn=2,score_Inverted_min=1] slot.weapon.offhand ben_10_addon_af:recal_omnitrix_timedout_iv_chest",
"/scoreboard players remove @s OmnitrixOn 2",
"/kill @e[name=item.item.ben_10_addon_af:recal_omnitrix_timedout_chestplate]",
"/kill @e[name=item.item.ben_10_addon_af:recal_omnitrix_timedout_iv_chestplate]",
"clear @s ben_ten:invis_wings_chest",
"clear @s ben_ten:necrofriggian_wings_chest"]
		},
		"no omnitrix check_1a2": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon_af:recal_omnitrix_timedout_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
		"no omnitrix check_1a22": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon_af:recal_omnitrix_timedout_iv_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"NO INJECTIONS": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "lucraftcore:injection",
              		"hand": "main_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/replaceitem entity @s slot.weapon.mainhand lucraftcore:injection"]
		},
		"Radiation immunity":{
			"ability": "the-fifth-world:potion_immunity",
			"show_in_bar": false,
			"potion": "lucraftcore:radiation",
			"title": {"text":"Radiation Immunity"},
			"icon": {"type": "internal"}
		},
		"Chitauri Virus immunity":{
			"ability": "the-fifth-world:potion_immunity",
			"show_in_bar": false,
			"potion": "heroesexpansion:chitauri_virus",
			"title": {"text":"Chitauri Virus Immunity"},
			"icon": {"type": "internal"}
		},
		"Timer_af_timedout":{
			"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,
			"icon": {"type": "texture","texture": "ben_10_addon_af:textures/gui/logo3.png"},
			"commands": [
"/clear @s ben_ten:u_invis_suit_boots",
"/clear @s ben_ten:u_invis_suit_chest",
"/clear @s ben_ten:u_invis_suit_helmet",
"/clear @s ben_ten:u_invis_suit_legs",
"/clear @s ben_ten:nanochip_wings_chest",
"/clear @s ben_ten:aerophibian_wings_chest",
"/clear @s ben_ten:necrofriggian_wings_chest",
"scoreboard players remove @s[score_Timer_min=2] Timer 2",
			"superpower @s[score_Timer=0,score_Timer_min=0] ben_10_addon_af:recal_omnitrix",
			"superpower @s[score_Timer=1,score_Timer_min=1] ben_10_addon_af:recal_omnitrix",
			"execute @s[score_Timer=6,score_Timer_min=6] ~ ~ ~ /playsound ben_ten:recalibrated_recharge master @a ~ ~ ~",
			"execute @s[score_Timer=7,score_Timer_min=7] ~ ~ ~ /playsound ben_ten:recalibrated_recharge master @a ~ ~ ~"]
		},
		"normal_size_1": {
			"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"]
		}
	}
}