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

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

	"creative_tab": "ben_10_addon",
	
	"max_level": 40,
	
	"capsule_color": 33333,
	
    "effects": [
    ],
	
	"abilities": {
	"Omnitrix control_vc": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": [
"scoreboard players set @s[score_MasterControl_min=2] MasterControl 0",
"scoreboard players tag @s[score_MasterControl_min=1] add MasterControl",
"scoreboard players tag @s[score_MasterControl=0] remove MasterControl",
"/scoreboard objectives add Inverted dummy",
"scoreboard players set @s[score_Inverted_min=2] Inverted 0",
"scoreboard players tag @s[score_Inverted_min=1,score_Inverted=1] add Inverted",
"scoreboard players tag @s[score_Inverted_min=0,score_Inverted=0] remove Inverted",
"/scoreboard objectives add Omni:Sneak stat.sneakTime",
"/scoreboard players tag @s[score_Omni:Sneak_min=1] add Sneaking",
"/scoreboard players tag @s[score_Omni:Sneak=0] remove Sneaking",
"/scoreboard players set @s[score_Omni:Sneak_min=1] Omni:Sneak 0",
"/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",
"/title @s actionbar [\"\",{\"text\":\"< \",\"color\":\"black\"},{\"score\":{\"name\":\"@s\",\"objective\":\"Omni:1\"},\"color\":\"green\"},{\"text\":\" \",\"color\":\"green\"},{\"score\":{\"name\":\"@s\",\"objective\":\"Omni:2\"},\"color\":\"green\"},{\"text\":\" \",\"color\":\"green\"},{\"score\":{\"name\":\"@s\",\"objective\":\"Omni:3\"},\"color\":\"green\"},{\"text\":\" \",\"color\":\"green\"},{\"score\":{\"name\":\"@s\",\"objective\":\"Omni:4\"},\"color\":\"green\"},{\"text\":\" \",\"color\":\"green\"},{\"score\":{\"name\":\"@s\",\"objective\":\"Omni:5\"},\"color\":\"green\"},
{\"text\":\" >\",\"color\":\"black\"}]",


"/scoreboard objectives add OmnitrixOn dummy",
"/clear @s[score_OmnitrixOn=2,tag=!Inverted] ben_10_addon_af:recal_omnitrix_vc_chest",
"/replaceitem entity @s[score_OmnitrixOn=2,tag=!Inverted] slot.weapon.offhand ben_10_addon_af:recal_omnitrix_vc_chest",
"/scoreboard players remove @s OmnitrixOn 2",
"/kill @e[name=item.item.ben_10_addon_af:recal_omnitrix_vc_chestplate]",

"/clear @s[score_OmnitrixOn=2,tag=Inverted] ben_10_addon_af:recal_omnitrix_vc_iv_chest",
"/replaceitem entity @s[score_OmnitrixOn=2,tag=Inverted] slot.weapon.offhand ben_10_addon_af:recal_omnitrix_vc_iv_chest",
"/kill @e[name=item.item.ben_10_addon_af:recal_omnitrix_vc_iv_chestplate]"]
		},
	"n1": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/+1.png"
					},
			"title": {"text":"Increase Number 1"},
			"commands": ["/scoreboard players add @s Omni:1 1",
				     "/scoreboard players set @s[score_Omni:1_min=10] Omni:1 0"],
			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]}]
		},
	"n1-": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/-1.png"
					},
			"title": {"text":"Decrease Number 1"},
			"commands": ["/scoreboard players remove @s[score_Omni:1_min=1] Omni:1 1"],
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]
		},

	"n2": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/+1.png"
					},
			"title": {"text":"Increase Number 2"},
			"commands": ["/scoreboard players add @s Omni:2 1",
				     "/scoreboard players set @s[score_Omni:2_min=10] Omni:2 0"],
			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]}]
		},
	"n2-": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/-1.png"
					},
			"title": {"text":"Decrease Number 2"},
			"commands": ["/scoreboard players remove @s[score_Omni:2_min=1] Omni:2 1"],
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]
		},

	"n3": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/+1.png"
					},
			"title": {"text":"Increase Number 3"},
			"commands": ["/scoreboard players add @s Omni:3 1",
				     "/scoreboard players set @s[score_Omni:3_min=10] Omni:3 0"],
			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]}]
		},
	"n3-": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/-1.png"
					},
			"title": {"text":"Decrease Number 3"},
			"commands": ["/scoreboard players remove @s[score_Omni:3_min=1] Omni:3 1"],
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]
		},

	"n4": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/+1.png"
					},
			"title": {"text":"Increase Number 4"},
			"commands": ["/scoreboard players add @s Omni:4 1",
				     "/scoreboard players set @s[score_Omni:4_min=10] Omni:4 0"],
			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]}]
		},
	"n4-": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/-1.png"
					},
			"title": {"text":"Decrease Number 4"},
			"commands": ["/scoreboard players remove @s[score_Omni:4_min=1] Omni:4 1"],
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]
		},
	"n5": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/+1.png"
					},
			"title": {"text":"Increase Number 5"},
			"commands": ["/scoreboard players add @s Omni:5 1",
				     "/scoreboard players set @s[score_Omni:5_min=10] Omni:5 0"],
			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]}]
		},
	"n5-": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/-1.png"
					},
			"title": {"text":"Decrease Number 5"},
			"commands": ["/scoreboard players remove @s[score_Omni:5_min=1] Omni:5 1"],
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]
		},
	"entier button": {
		"ability": "lucraftcore:command",	
				"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/enter.png"
					},
			"title": {"text":"Confirm Code"},
			"bar_color": "white",	
			"commands": [
"scoreboard objectives add MasterControl dummy",
"/title @s actionbar \" \"",
"execute @s[score_Omni:1_min=0,score_Omni:1=0,score_Omni:2_min=0,score_Omni:2=0,score_Omni:3_min=0,score_Omni:3=0,score_Omni:4_min=0,score_Omni:4=0,score_Omni:5_min=0,score_Omni:5=0] ~ ~ ~ /superpower @s ben_10_addon_af:self_destruct_af",

"execute @s[score_Omni:1_min=0,score_Omni:1=0,score_Omni:2_min=0,score_Omni:2=0,score_Omni:3_min=0,score_Omni:3=0,score_Omni:4_min=1,score_Omni:4=1,score_Omni:5_min=0,score_Omni:5=0] ~ ~ ~ /superpower @s remove",
"execute @s[score_Omni:1_min=0,score_Omni:1=0,score_Omni:2_min=0,score_Omni:2=0,score_Omni:3_min=0,score_Omni:3=0,score_Omni:4_min=1,score_Omni:4=1,score_Omni:5_min=0,score_Omni:5=0] ~ ~ ~ /replaceitem entity @s slot.weapon.offhand air",
"execute @s[score_Omni:1_min=0,score_Omni:1=0,score_Omni:2_min=0,score_Omni:2=0,score_Omni:3_min=0,score_Omni:3=0,score_Omni:4_min=1,score_Omni:4=1,score_Omni:5_min=0,score_Omni:5=0] ~ ~ ~ /give @s[tag=!Inverted] ben_ten:recalibrated_omnitrix_chest",

"execute @s[score_Omni:1_min=0,score_Omni:1=0,score_Omni:2_min=0,score_Omni:2=0,score_Omni:3_min=0,score_Omni:3=0,score_Omni:4_min=1,score_Omni:4=1,score_Omni:5_min=0,score_Omni:5=0] ~ ~ ~ /give @s[tag=Inverted] ben_ten:recalibrated_omnitrix_iv_chest",

"execute @s[score_Omni:1_min=0,score_Omni:1=0,score_Omni:2_min=0,score_Omni:2=0,score_Omni:3_min=0,score_Omni:3=0,score_Omni:4_min=1,score_Omni:4=1,score_Omni:5_min=0,score_Omni:5=0] ~ ~ ~ /scoreboard players set @s WatchOn 0",

"/scoreboard players add @s[score_Omni:1_min=6,score_Omni:1=6,score_Omni:2_min=9,score_Omni:2=9,score_Omni:3_min=4,score_Omni:3=4,score_Omni:4_min=2,score_Omni:4=2,score_Omni:5_min=0,score_Omni:5=0] Inverted 1",
"/replaceitem entity @s[score_Omni:1_min=6,score_Omni:1=6,score_Omni:2_min=9,score_Omni:2=9,score_Omni:3_min=4,score_Omni:3=4,score_Omni:4_min=2,score_Omni:4=2,score_Omni:5_min=0,score_Omni:5=0] slot.weapon.offhand air",

"/scoreboard players add @s[score_Omni:1_min=7,score_Omni:1=7,score_Omni:2_min=5,score_Omni:2=5,score_Omni:3_min=2,score_Omni:3=2,score_Omni:4_min=5,score_Omni:4=5,score_Omni:5_min=7,score_Omni:5=7,name=Nexominer] MasterControl 1",
"/scoreboard players add @s[score_Omni:1_min=7,score_Omni:1=7,score_Omni:2_min=5,score_Omni:2=5,score_Omni:3_min=2,score_Omni:3=2,score_Omni:4_min=5,score_Omni:4=5,score_Omni:5_min=7,score_Omni:5=7,name=CatWithTh3Gat] MasterControl 1",
"playsound ben_ten:recalibrated_master_control master @a[score_Omni:1_min=7,score_Omni:1=7,score_Omni:2_min=5,score_Omni:2=5,score_Omni:3_min=2,score_Omni:3=2,score_Omni:4_min=5,score_Omni:4=5,score_Omni:5_min=7,score_Omni:5=7,name=Nexominer,tag=!MasterControl] ~ ~ ~",
"playsound ben_ten:recalibrated_master_control master @a[score_Omni:1_min=7,score_Omni:1=7,score_Omni:2_min=5,score_Omni:2=5,score_Omni:3_min=2,score_Omni:3=2,score_Omni:4_min=5,score_Omni:4=5,score_Omni:5_min=7,score_Omni:5=7,name=CatWithTh3Gat,tag=!MasterControl] ~ ~ ~"
]
		},
	"no omnitrix check_211": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon_af:recal_omnitrix_vc_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"no omnitrix check_211a": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon_af:recal_omnitrix_vc_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": {
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "Normal Size"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"commands": ["sizechange @s 1"]
		},
	"close faceplate_16": {
		"ability": "lucraftcore:command",
			"title": {"translate": "Deactivate"},	
			"icon": {
						"type": "texture",
						"texture": "ben_10_addon_af:textures/gui/logo3.png"
					},
			"show_in_bar": true,
			"bar_color": "light_gray",		
			"commands": [
			"/title @s actionbar \" \"",
			"stopsound @s",
			"/superpower @s ben_10_addon_af:recal_omnitrix"]
		}
	}
}