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

	"icon": {
		"type": "texture",
		"texture": "ben_10_addon:textures/gui/logo.png"
	},

	"creative_tab": "ben_10_addon",
	
	"max_level": 40,
	
	"capsule_color": 33333,
	
    "effects": [
    ],
	
	"abilities": {
	"Omnitrix control": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": [

"/scoreboard objectives add CurseForge dummy",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p1",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p2",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p3",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p4",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p5",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p6",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p7",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p8",
"/scoreboard players tag @s[tag=!SelfDestruct] remove p9",
"/scoreboard objectives add Omni:BoomBoom dummy",
"/scoreboard players set @s[tag=!SelfDestruct] Omni:BoomBoom 0",
"/scoreboard players add @s[tag=SelfDestruct] Omni:BoomBoom 1",

"execute @s[score_Omni:BoomBoom_min=12000,tag=!p1] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:2,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=12000,tag=!p1] slot.weapon.offhand ben_10_addon:self_destruct_p2_chest",
"execute @s[score_Omni:BoomBoom_min=12000,tag=!p1] ~ ~ ~ /scoreboard players tag @s add p1",


"execute @s[score_Omni:BoomBoom_min=24000,tag=!p2] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:5,Fuse:0}",
"/scoreboard players tag @s[score_DestructDev=0,score_NoMagic_min=1,score_MutationActivate=0,score_MaterialMutation_min=1,score_AnnoditeDisable=0,score_NoApplehere_min=1,score_CurseForge_min=5] add MasterControl",
"/playsound ben_ten:prototype_master_control master @s[score_DestructDev=0,score_NoMagic_min=1,score_MutationActivate=0,score_MaterialMutation_min=1,score_AnnoditeDisable=0,score_NoApplehere_min=1,score_CurseForge_min=5]",
"execute @s[score_DestructDev=0,score_NoMagic_min=1,score_MutationActivate=0,score_MaterialMutation_min=1,score_AnnoditeDisable=0,score_NoApplehere_min=1,score_CurseForge_min=5] ~ ~ ~ /scoreboard players set @s UltimatrixDet 650",

"execute @s[score_UltimatrixDet_min=650] ~ ~ ~ /scoreboard players set @s DestructDev 0","execute @s[score_UltimatrixDet_min=650] ~ ~ ~ /scoreboard players set @s CurseForge 0","execute @s[score_UltimatrixDet_min=650] ~ ~ ~ /scoreboard players set @s NoMagic 0","execute @s[score_UltimatrixDet_min=650] ~ ~ ~ /scoreboard players set @s MutationActivate 0","execute @s[score_UltimatrixDet_min=650] ~ ~ ~ /scoreboard players set @s MaterialMutation 0","execute @s[score_UltimatrixDet_min=650] ~ ~ ~ /scoreboard players set @s AnnoditeDisable 0","execute @s[score_UltimatrixDet_min=650] ~ ~ ~ /scoreboard players set @s NoAppleshere 0","execute @s[score_UltimatrixDet_min=650] ~ ~ ~ /scoreboard players set @s UltimatrixDet 0",
"/replaceitem entity @s[score_Omni:BoomBoom_min=24000,tag=!p2] slot.weapon.offhand ben_10_addon:self_destruct_p3_chest",
"execute @s[score_Omni:BoomBoom_min=24000,tag=!p2] ~ ~ ~ /scoreboard players tag @s add p2",


"execute @s[score_Omni:BoomBoom_min=36000,tag=!p3] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:7,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=36000,tag=!p3] slot.weapon.offhand ben_10_addon:self_destruct_p4_chest",
"execute @s[score_Omni:BoomBoom_min=36000,tag=!p3] ~ ~ ~ /scoreboard players tag @s add p3",


"execute @s[score_Omni:BoomBoom_min=48000,tag=!p4] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:10,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=48000,tag=!p4] slot.weapon.offhand ben_10_addon:self_destruct_p5_chest",
"execute @s[score_Omni:BoomBoom_min=48000,tag=!p4] ~ ~ ~ /scoreboard players tag @s add p4",



"execute @s[score_Omni:BoomBoom_min=60000,tag=!p5] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:14,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=60000,tag=!p5] slot.weapon.offhand ben_10_addon:self_destruct_p6_chest",
"execute @s[score_Omni:BoomBoom_min=60000,tag=!p5] ~ ~ ~ /scoreboard players tag @s add p5",




"execute @s[score_Omni:BoomBoom_min=72000,tag=!p6] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:20,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=72000,tag=!p6] slot.weapon.offhand ben_10_addon:self_destruct_p7_chest",
"execute @s[score_Omni:BoomBoom_min=72000,tag=!p6] ~ ~ ~ /scoreboard players tag @s add p6",



"execute @s[score_Omni:BoomBoom_min=84000,tag=!p7] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:30,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=84000,tag=!p7] slot.weapon.offhand ben_10_addon:self_destruct_p8_chest",
"execute @s[score_Omni:BoomBoom_min=84000,tag=!p7] ~ ~ ~ /scoreboard players tag @s add p7",




"execute @s[score_Omni:BoomBoom_min=96000,tag=!p8] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,tag=!p8] ~ ~ ~ /summon creeper ~5 ~ ~ {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,tag=!p8] ~ ~ ~ /summon creeper ~-5 ~ ~ {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,tag=!p8] ~ ~ ~ /summon creeper ~ ~ ~5 {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,tag=!p8] ~ ~ ~ /summon creeper ~ ~ ~-5 {ExplosionRadius:60,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=96000,tag=!p8] slot.weapon.offhand ben_10_addon:self_destruct_p9_chest",
"execute @s[score_Omni:BoomBoom_min=96000,tag=!p8] ~ ~ ~ /scoreboard players tag @s add p8",
"sizechange @s 1",



"/scoreboard players add @s Chance 1",
"/scoreboard players set @s[score_Chance_min=71] Chance 0",
"execute @s[score_Omni:BoomBoom_min=108001,tag=!p9] ~ ~ ~ /summon creeper ~5 ~ ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108002,tag=!p9] ~ ~ ~ /summon creeper ~-5 ~ ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108003,tag=!p9] ~ ~ ~ /summon creeper ~ ~ ~5 {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108004,tag=!p9] ~ ~ ~ /summon creeper ~ ~ ~ -5{ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108005,tag=!p9] ~ ~ ~ /summon creeper ~ ~5 ~ {ExplosionRadius:120,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=108008,tag=!p9] slot.weapon.offhand air",
"/superpower @s[score_Omni:BoomBoom_min=108008,tag=!p9] remove",
"/scoreboard players tag @s[score_Omni:BoomBoom_min=108000,tag=!p9 add p9",


"/scoreboard objectives add OmnitrixOn dummy",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:the_omnitrix_chest",

			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p1_chest",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p2_chest",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p3_chest",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p4_chest",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p5_chest",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p6_chest",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p7_chest",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p8_chest",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:self_destruct_p9_chest",


			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=0,score_Omni:BoomBoom=0] slot.weapon.offhand ben_10_addon:the_omnitrix_chest",

			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=1,score_Omni:BoomBoom=11999] slot.weapon.offhand ben_10_addon:self_destruct_p1_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=12000,score_Omni:BoomBoom=23999] slot.weapon.offhand ben_10_addon:self_destruct_p2_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=24000,score_Omni:BoomBoom=35999] slot.weapon.offhand ben_10_addon:self_destruct_p3_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=36000,score_Omni:BoomBoom=47999] slot.weapon.offhand ben_10_addon:self_destruct_p4_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=48000,score_Omni:BoomBoom=59999] slot.weapon.offhand ben_10_addon:self_destruct_p5_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=60000,score_Omni:BoomBoom=71999] slot.weapon.offhand ben_10_addon:self_destruct_p6_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=72000,score_Omni:BoomBoom=83999] slot.weapon.offhand ben_10_addon:self_destruct_p7_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=84000,score_Omni:BoomBoom=95999] slot.weapon.offhand ben_10_addon:self_destruct_p8_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3,score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=109000] slot.weapon.offhand ben_10_addon:self_destruct_p9_chest",


			"/kill @e[name=item.item.ben_10_addon:the_omnitrix_chestplate,r=5]",

			"/kill @e[name=item.item.ben_10_addon:self_destruct_p1_chestplate,r=5]",
			"/kill @e[name=item.item.ben_10_addon:self_destruct_p2_chestplate,r=5]",
			"/kill @e[name=item.item.ben_10_addon:self_destruct_p3_chestplate,r=5]",
			"/kill @e[name=item.item.ben_10_addon:self_destruct_p4_chestplate,r=5]",
			"/kill @e[name=item.item.ben_10_addon:self_destruct_p5_chestplate,r=5]",
			"/kill @e[name=item.item.ben_10_addon:self_destruct_p6_chestplate,r=5]",
			"/kill @e[name=item.item.ben_10_addon:self_destruct_p7_chestplate,r=5]",
			"/kill @e[name=item.item.ben_10_addon:self_destruct_p8_chestplate,r=5]",
			"/kill @e[name=item.item.ben_10_addon:self_destruct_p9_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",
"/scoreboard players add @s UltimatrixDet 0"]
		},
	"Randomizer": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,		
			"commands": ["/scoreboard players add @s Randomizer 1", "/scoreboard players set @s[score_Randomizer_min=43] Randomizer -1"]
		},

	"NO INJECTIONS": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "lucraftcore:injection",
              		"hand": "main_hand"}],
			"commands": ["/replaceitem entity @s slot.weapon.mainhand lucraftcore:injection"]
		},

	"no omnitrix check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:the_omnitrix_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},

	"selfd 1check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p1_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"selfd2 check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p2_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"selfd 3check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p3_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"selfd4 check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p4_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"selfd5 check": {
		"ability": "lucraftcore:command_loop",		
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p5_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"selfd6 check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p6_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"selfd7 check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p7_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"selfd8 check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p8_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
	"selfd9 check": {
		"ability": "lucraftcore:command_loop",	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:self_destruct_p9_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},




		"Timer":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Recharging"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_red.png"},
			"commands": ["scoreboard players remove @s[score_Timer_min=1,tag=!MasterControl] Timer 1",
			"execute @s[score_Timer=1,score_Timer_min=1] ~ ~ ~ /playsound ben_ten:prototype_activation master @a ~ ~ ~",
			"execute @s[score_Timer_min=2,tag=!MasterControl] ~ ~ ~ superpower @p ben_ten:prototype_omnitrix_timeout",
			"scoreboard objectives add DoD deathcount","/scoreboard players tag @s[score_DestructDev_min=1,score_NoMagic_min=1,score_MutationActivate=0,score_MaterialMutation=0,score_AnnoditeDisable_min=1,score_NoAppleshere_min=1,score_CurseForge_min=7] add MasterControl",
"/playsound ben_ten:prototype_master_control master @s[score_DestructDev_min=1,score_NoMagic_min=1,score_MutationActivate=0,score_MaterialMutation=0,score_AnnoditeDisable_min=1,score_NoAppleshere_min=1,score_CurseForge_min=7]",
"execute @s[score_DestructDev_min=1,score_NoMagic_min=1,score_MutationActivate=0,score_MaterialMutation=0,score_AnnoditeDisable_min=1,score_NoAppleshere_min=1,score_CurseForge_min=7] ~ ~ ~ /scoreboard players set @s UltimatrixDet 650"],
			"hidden": true
		},

	"Next alien": {
		"ability": "lucraftcore:command",
			"title": {"translate": "Activate"},	
			"icon": {
						"type": "texture",
						"texture": "ben_10_addon:textures/gui/logo.png"
					},
			"show_in_bar": true,	
           		 "bar_color": "green",	
			"commands": ["/playsound ben_ten:prototype_activate master @a ~ ~ ~", "/superpower @s ben_10_addon:dial_1","scoreboard players add @s[score_UltimatrixDet_min=1] CurseForge 1"]
		},
		"dna_lockinactive_2": {
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "DNA Lock"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_yellow.png" },
			"bar_color": "yellow",
			"commands": ["execute @e[type=wolf,r=1] ~ ~ ~ /playsound ben_ten:prototype_scan master @a[tag=!LoboanDNA] ~ ~ ~",
			"execute @e[type=wolf,r=1] ~ ~ ~ superpower @p[tag=!LoboanDNA,r=1] ben_ten:prototype_capture",
			"superpowerxp -100l @s[tag=!ProtoBearer]",
			"scoreboard players tag @s add ProtoBearer"]
		},
		"settingsproto": {
	        "ability": "lucraftcore:command",
			"required_level": 0,
			"show_in_bar": true,
         		"title": {"text":"Settings"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_settings.png" },
           		 "bar_color": "green",
			"commands": ["/superpower @s ben_ten:prototype_omnitrix_settings",
			"execute @s[score_Timer_min=0] ~ ~ ~ playsound ben_ten:prototype_activate master @a ~ ~ ~"]
		},
		"chance": {
			"ability": "lucraftcore:command",
			"cooldown": 0,
			"show_in_bar": true,
			"title": {"text":"Tamper"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_qm.png" },
			"bar_color": "green",
			"conditions": [{
                "type": "lucraftcore:held_item",
                "item": "lucraftcore:wire_cutter",
                "hand": "main_hand"}],
			"commands": ["execute @s[score_Chance=68,score_Chance_min=0,tag=!MasterControl] ~ ~ ~ superpower @s ben_ten:prototype_nf",
			"execute @s[score_Chance=68,score_Chance_min=0,tag=!MasterControl] ~ ~ ~ give @s ben_ten:broken_faceplate_chest",
			"/playsound ben_ten:prototype_master_control master @a[score_Chance=69,score_Chance_min=69,tag=!MasterControl] ~ ~ ~",
			"scoreboard players tag @s[score_Chance=69,score_Chance_min=69,tag=!MasterControl] add MasterControl"],
			"hidden": true
		}
	}
}