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

	"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_tm": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": [
"/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}",
"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}",
"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}",
"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}",
"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}",
"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}",

"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}",
"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}",
"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] ~ ~ ~ /scoreboard players tag @s add p8",




"execute @s[score_Omni:BoomBoom_min=108000,tag=!p9] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108001,tag=!p9] ~ ~ ~ /summon creeper ~10 ~ ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108002,tag=!p9] ~ ~ ~ /summon creeper ~-10 ~ ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108003,tag=!p9] ~ ~ ~ /summon creeper ~ ~ ~10 {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 ~ ~10 ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108006,tag=!p9] ~ ~ ~ /summon creeper ~ ~-10 ~ {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",
"execute @s[score_Omni:BoomBoom_min=108000,tag=!p9] ~ ~ ~ /scoreboard players tag @s 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","/scoreboard objectives add OmnitrixOn dummy",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:timed_out_omnitrix_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] slot.weapon.offhand ben_10_addon:timed_out_omnitrix_chest",
			"/kill @e[name=item.item.ben_10_addon:timed_out_omnitrix_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_Tm": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:timed_out_omnitrix_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"]
		},
		"time_in": {
		    "hidden": true,
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "Timer Reset"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_red.png" },
			"bar_color": "light_gray",
			"commands": ["scoreboard players remove @s[score_Timer_min=2,tag=!MasterControl] Timer 2",
			"scoreboard players set @s[tag=MasterControl] Timer 0"]
        },		
		"rechargeproto": {
		    "hidden": true,
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "Recharge"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_red.png" },
			"bar_color": "light_gray",
			"commands": ["execute @s[score_Timer=2,tag=!MasterControl] ~ ~ ~ superpower @s ben_10_addon:prototype_omnitrix",
			"execute @s[score_Timer=1,score_Timer_min=1,tag=!MasterControl] ~ ~ ~ playsound ben_ten:prototype_activation master @a ~ ~ ~",
			"execute @s[score_Timer=0,score_Timer_min=0,tag=!MasterControl] ~ ~ ~ playsound ben_ten:prototype_activation master @a ~ ~ ~"]
		},
		"dna_lockinactive": {
			"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] ben_ten:prototype_capture"]
		},
		"normal_sizeinactive": {
			"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"]
		}
	}
}