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

	"icon": {
		"type": "texture",
		"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix.png"
	},
	
	"creative_tab": "ben10",
	
	"max_level": 30,
	
	"capsule_color" : 33333,
	
	"effects": [
        {
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/omnitrix/blank.png",
            "size": 0,
            "glow": false,
            "conditions": [
            	{
            		"type": "always"
				}
			]
	    }
    ],

	"abilities": {
	"Omnitrix control_rc": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard objectives add OmnitrixOn dummy",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:recal_proto_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p1_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p2_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p3_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p4_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p5_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p6_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p7_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p8_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p9_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p10_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p11_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p12_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p13_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p14_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p15_chest",
 "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:proto_recal_p16_chest",
 "/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] slot.weapon.offhand ben_10_addon:recal_proto_chest",
 "/kill @e[name=item.item.ben_10_addon:recal_proto_chestplate,r=5]", 

"/kill @e[name=item.item.ben_10_addon:proto_recal_p1_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p2_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p3_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p4_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p5_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p6_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p7_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p8_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p9_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p10_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p11_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p12_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p13_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p14_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p15_chestplate,r=5]",
"/kill @e[name=item.item.ben_10_addon:proto_recal_p16_chestplate,r=5]",

"/scoreboard players remove @s[score_OmnitrixOn_min=1] OmnitrixOn 1", "/clear @s ben_ten:invis_suit_boots", "/clear @s ben_ten:invis_suit_chest", "/clear @s ben_ten:invis_suit_legs", "/clear @s ben_ten:invis_suit_helmet", "/scoreboard objectives add WatchOn dummy", "/scoreboard players set @s WatchOn 1"]
		},
	"no omnitrix check_rc": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:recal_proto_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p1": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p1_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p2": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p2_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p3": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p3_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p4": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p4_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p5": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p5_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p6": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p6_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p7": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p7_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p8": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p8_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p9": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p9_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p10": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p10_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p11": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p11_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p12": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p12_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p13": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p13_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p14": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p14_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p15": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p15_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_p16": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:proto_recal_p16_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"]
		},
		"activate": {
			"ability": "lucraftcore:command",
			"required_level": 0,
			"show_in_bar": true,
			"title": {"text":"Activate"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix.png" },
            "bar_color": "green",				
			"commands":["stopsound @s",
			"playsound ben_ten:recalibration_activate master @a ~ ~ ~"]
		},
		"timer":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Recalibration"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/recalibrating_omnitrix.png"},
			"commands":["scoreboard objectives add Recalibration dummy", 
			"scoreboard players add @s Recalibration 1", "/execute @s[score_Recalibration_min=6000] ~ ~ ~ /superpower @s ben_10_addon_af:recal_omnitrix",
			"execute @s[score_Recalibration=5930,score_Recalibration_min=5930] ~ ~ ~ /playsound ben_ten:recalibration_finish master @a ~ ~ ~", 
"/replaceitem entity @s[score_Recalibration=5930,score_Recalibration_min=5930] slot.weapon.offhand ben_10_addon:proto_recal_p1_chest",
"/replaceitem entity @s[score_Recalibration=5934,score_Recalibration_min=5934] slot.weapon.offhand ben_10_addon:proto_recal_p2_chest",
"/replaceitem entity @s[score_Recalibration=5938,score_Recalibration_min=5938] slot.weapon.offhand ben_10_addon:proto_recal_p3_chest",
"/replaceitem entity @s[score_Recalibration=5942,score_Recalibration_min=5942] slot.weapon.offhand ben_10_addon:proto_recal_p4_chest",
"/replaceitem entity @s[score_Recalibration=5946,score_Recalibration_min=5946] slot.weapon.offhand ben_10_addon:proto_recal_p5_chest",
"/replaceitem entity @s[score_Recalibration=5950,score_Recalibration_min=5950] slot.weapon.offhand ben_10_addon:proto_recal_p6_chest",
"/replaceitem entity @s[score_Recalibration=5954,score_Recalibration_min=5954] slot.weapon.offhand ben_10_addon:proto_recal_p7_chest",
"/replaceitem entity @s[score_Recalibration=5958,score_Recalibration_min=5958] slot.weapon.offhand ben_10_addon:proto_recal_p8_chest",
"/replaceitem entity @s[score_Recalibration=5962,score_Recalibration_min=5962] slot.weapon.offhand ben_10_addon:proto_recal_p9_chest",
"/replaceitem entity @s[score_Recalibration=5966,score_Recalibration_min=5966] slot.weapon.offhand ben_10_addon:proto_recal_p10_chest",
"/replaceitem entity @s[score_Recalibration=5970,score_Recalibration_min=5970] slot.weapon.offhand ben_10_addon:proto_recal_p11_chest",
"/replaceitem entity @s[score_Recalibration=5974,score_Recalibration_min=5974] slot.weapon.offhand ben_10_addon:proto_recal_p12_chest",
"/replaceitem entity @s[score_Recalibration=5978,score_Recalibration_min=5978] slot.weapon.offhand ben_10_addon:proto_recal_p13_chest",
"/replaceitem entity @s[score_Recalibration=5982,score_Recalibration_min=5982] slot.weapon.offhand ben_10_addon:proto_recal_p14_chest",
"/replaceitem entity @s[score_Recalibration=5986,score_Recalibration_min=5986] slot.weapon.offhand ben_10_addon:proto_recal_p15_chest",
"/replaceitem entity @s[score_Recalibration=5990,score_Recalibration_min=5990] slot.weapon.offhand ben_10_addon:proto_recal_p16_chest",




"execute @s[score_Recalibration_min=6000] ~ ~ ~ scoreboard players tag @s remove Os", "execute @s[score_Recalibration_min=6000] ~ ~ ~ scoreboard players tag @s add Af"],
			"hidden": true
		}
	}
}
