{
	"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": {
	"Omnitrix control_1a2": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": [
			"scoreboard players tag @s remove Ultimatrix",
			"/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 players set @s cooldown 0",
			"scoreboard players set @s debate 0",
			"scoreboard players set @s debate_act 0",
			"/scoreboard objectives add Omni:Adap dummy",
			"/scoreboard objectives add Omni:Cd dummy",
			"/scoreboard players set @s Omni:Cd 0",
			"/scoreboard players set @s Omni:Adap 0",
"/clear @s ben_ten:cryptosapien_wings_chest",
"/scoreboard objectives add Omni:1 dummy",
"/scoreboard objectives add Omni:2 dummy",
"/scoreboard objectives add Omni:3 dummy",
"/scoreboard objectives add Omni:4 dummy",
"/scoreboard objectives add Omni:5 dummy",
"/scoreboard players set @s Omni:5 0",
"/scoreboard players set @s Omni:4 0",
"/scoreboard players set @s Omni:3 0",
"/scoreboard players set @s Omni:2 0",
"/scoreboard players set @s Omni:1 0",
"/scoreboard players set @s rath_claws 0",
"/scoreboard players set @s Omni:Kin_speed 0",
"/scoreboard players set @s Recalibration 0",
"/scoreboard objectives add OmnitrixOn dummy",
"/clear @s[score_OmnitrixOn=2] ben_10_addon_af:recal_omnitrix_chest",
"/clear @s[score_OmnitrixOn=2] ben_10_addon_af:recal_omnitrix_iv_chest",
"/replaceitem entity @s[score_OmnitrixOn=2,score_Inverted=0] slot.weapon.offhand ben_10_addon_af:recal_omnitrix_chest",
"/replaceitem entity @s[score_OmnitrixOn=2,score_Inverted_min=1] slot.weapon.offhand ben_10_addon_af:recal_omnitrix_iv_chest",
"/scoreboard players remove @s OmnitrixOn 2",
"/kill @e[name=item.item.ben_10_addon_af:recal_omnitrix_chestplate]",
"/kill @e[name=item.item.ben_10_addon_af:recal_omnitrix_iv_chestplate]",
"scoreboard players remove @s[score_Timer_min=2] Timer 2",
"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 ~ ~ ~",
"superpower @s[score_Timer_min=12000,tag=!MasterControl] ben_10_addon_af:recal_omnitrix_timedout",
"scoreboard players set @s NoArmor 0",
"scoreboard players tag @s add RecalBearer",
"scoreboard players tag @s[score_ECTDNA=0,score_ECTDNA_min=0] add NOECTDNA",
"execute @e[name=Zs'Skayr,r=1] ~ ~ ~ playsound ben_ten:recal_scan master @a[score_ECTDNA=0,score_ECTDNA_min=0] ~ ~ ~",
"execute @e[name=Zs'Skayr,r=1] ~ ~ ~ scoreboard players tag @p[score_ECTDNA=0,score_ECTDNA_min=0] remove NOECTDNA",
"execute @e[name=Zs'Skayr,r=1] ~ ~ ~ scoreboard players set @p[score_ECTDNA=0,score_ECTDNA_min=0] ECTDNA 1",
"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_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_1as": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon_af:recal_omnitrix_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"}
		},
		"normal_size_1_recal": {
			"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"]
		},



	"open faceplate_16": {
		"ability": "lucraftcore:command",
			"title": {"translate": "Activate"},	
			"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/logo3.png"
					},
			"show_in_bar": true,
			"bar_color": "white",		
			"commands": ["stopsound @s",
			"superpower @s ben_10_addon_af:dial_1",
			"playsound ben_ten:recalibrated_activate master @a ~ ~ ~"]
		},
	"setts": {
		"ability": "lucraftcore:command",
			"title": {"translate": "Settings Mode"},	
			"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/vc1.png"
					},
			"show_in_bar": true,
			"bar_color": "white",		
			"commands": ["superpower @s ben_10_addon_af:recal_settings",
			"playsound ben_ten:recalibrated_activate master @a ~ ~ ~"]
		}
	}
}