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

	"icon": {
		"type": "texture",
		"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_settings.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_ss": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": ["/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,score_Omni:BoomBoom=12000] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:2,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=12000,score_Omni:BoomBoom=12000] slot.weapon.offhand ben_10_addon:self_destruct_p2_chest",

"execute @s[score_Omni:BoomBoom_min=24000,score_Omni:BoomBoom=24000] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:5,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=24000,score_Omni:BoomBoom=24000] slot.weapon.offhand ben_10_addon:self_destruct_p3_chest",

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

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

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

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

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


"execute @s[score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=96000] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=96000] ~ ~ ~ /summon creeper ~5 ~ ~ {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=96000] ~ ~ ~ /summon creeper ~-5 ~ ~ {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=96000] ~ ~ ~ /summon creeper ~ ~ ~5 {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=96000] ~ ~ ~ /summon creeper ~ ~ ~-5 {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=96000] ~ ~ ~ /summon creeper ~ ~-5 ~ {ExplosionRadius:60,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=96000] ~ ~ ~ /summon creeper ~ ~5 ~ {ExplosionRadius:60,Fuse:0}",
"/replaceitem entity @s[score_Omni:BoomBoom_min=96000,score_Omni:BoomBoom=96000] slot.weapon.offhand ben_10_addon:self_destruct_p9_chest",


"execute @s[score_Omni:BoomBoom_min=108000,score_Omni:BoomBoom=108000] ~ ~ ~ /summon creeper ~ ~ ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108001,score_Omni:BoomBoom=108001] ~ ~ ~ /summon creeper ~5 ~ ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108002,score_Omni:BoomBoom=108002] ~ ~ ~ /summon creeper ~-5 ~ ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108003,score_Omni:BoomBoom=108003] ~ ~ ~ /summon creeper ~ ~ ~5 {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108004,score_Omni:BoomBoom=108004] ~ ~ ~ /summon creeper ~ ~ ~ -5{ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108005,score_Omni:BoomBoom=108005] ~ ~ ~ /summon creeper ~ ~5 ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108006,score_Omni:BoomBoom=108006] ~ ~ ~ /summon creeper ~ ~-5 ~ {ExplosionRadius:120,Fuse:0}",
"execute @s[score_Omni:BoomBoom_min=108008,score_Omni:BoomBoom=108008] ~ ~ ~ /replaceitem entity @s slot.weapon.offhand air",
"execute @s[score_Omni:BoomBoom_min=108008,score_Omni:BoomBoom=108008] ~ ~ ~ /superpower @s remove","execute @s[score_Omni:BoomBoom_min=108008,score_Omni:BoomBoom=108008] ~ ~ ~ /superpower @s remove","execute @s[score_Omni:BoomBoom_min=108008,score_Omni:BoomBoom=108008] ~ ~ ~ /superpower @s remove","execute @s[score_Omni:BoomBoom_min=108008,score_Omni:BoomBoom=108008] ~ ~ ~ /superpower @s remove","execute @s[score_Omni:BoomBoom_min=108008,score_Omni:BoomBoom=108008] ~ ~ ~ /superpower @s remove","/scoreboard objectives add OmnitrixOn dummy","/scoreboard players tag @s[score_Omni:BoomBoom_min=108009,score_Omni:BoomBoom_min=108009] add StopDe",
			"/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:omnitrix_settings_chest",
			"/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] slot.weapon.offhand ben_10_addon:omnitrix_settings_chest",
			"/kill @e[name=item.item.ben_10_addon:omnitrix_settings_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_ss": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:omnitrix_settings_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"]
		},
		"normal_sizesettings": {
			"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",
			"effect @s[tag=MasterControl] minecraft:luck 1 0 true"]
		},
		"zeroout": {
	        "ability": "lucraftcore:command",
			"required_level": 0,
			"show_in_bar": true,
            "title": {"text":"Zero-Out"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_white.png" },
            "bar_color": "white",
			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "MasterControl"}],	
			"commands": ["stopsound @s",
			"playsound ben_ten:prototype_zero_out master @a ~ ~ ~",
			"scoreboard players tag @s remove MasterControl"]
		},
		"recalibrate":{
			"ability":"lucraftcore:command",
			"required_level":30,
			"show_in_bar":true,
			"title":{"text":"Recalibrate"},
			"icon":{"type":"texture",
			"texture":"ben_ten:textures/gui/omnitrix/recalibrating_omnitrix.png"},
			"bar_color":"blue",
			"commands":["stopsound @s",
			"scoreboard players set @s Timer 0",
			"superpower @s ben_ten:recalibrating_omnitrix",
			"superpowerxp -100L @s",
			"playsound ben_ten:recalibration_start master @a ~ ~ ~",
			"scoreboard players tag @s remove MasterControl"]
		},
		"selfdestructmode": {
			"ability": "lucraftcore:command",
			"required_level": 30,
			"show_in_bar": true,
			"title": {"text":"Self Destruct"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_sd.png" },
            "bar_color": "green",
			"commands": ["stopsound @s",
			"/superpower @s ben_ten:prototype_omnitrix_sd",
			"playsound ben_ten:prototype_sd master @a ~ ~ ~",
			"scoreboard players tag @s add SelfDestruct",
			"scoreboard players tag @s remove MasterControl"]
		},
		"decouple": {
			"ability": "lucraftcore:command",
			"required_level": 30,
			"show_in_bar": true,
			"title": {"text":"Decouple"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_gray.png" },
            "bar_color": "light_gray",
			"commands": ["/scoreboard players tag @s remove SelfDestruct","stopsound @s",
			"/superpower @s remove",
			"replaceitem entity @s slot.weapon.offhand air",
			"/give @s ben_ten:prototype_omnitrix_chest",
			"scoreboard players tag @s remove MasterControl",
			"scoreboard players set @s WatchOn 0"]
		},
		"exitsettings": {
	        "ability": "lucraftcore:command",
			"required_level": 0,
			"show_in_bar": true,
            "title": {"text":"Exit Settings"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix.png" },
            "bar_color": "green",
			"commands": ["stopsound @s",
			"/superpower @s ben_ten:prototype_omnitrix"]
		}
	}
}