{
	"name" : {
		"text": "Prototype 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/prototype_omnitrix_green.png",
            "size": 0,
            "glow": false,
            "conditions": [
            	{
            		"type": "always"
				}
			]
	    },
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/prototype_omnitrix_glow_green.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "always"
            	}
            ]
        }
    ],

	"abilities": {
		"normal_size": {
			"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", "/superpower @s ben_10_addon:prototype_omnitrix"]
		},
		"activateproto": {
			"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": ["/superpower @s ben_ten:prototype_omnitrix_active",
			"execute @s ~ ~ ~ playsound ben_ten:prototype_activate master @a ~ ~ ~",
			"scoreboard set @s DNALock 0"]
		},
		"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
		},
		"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 ~ ~ ~"]
		},
		"timeoutproto": {
		    "hidden": true,
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "Recharge Mode"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_red.png" },
			"bar_color": "light_gray",
			"commands": ["scoreboard players add @s[tag=!MasterControl] Randomizer 1",
			"scoreboard players set @s[score_Randomizer_min=39] Randomizer 0",
			"execute @s[score_Timer_min=2,tag=!MasterControl] ~ ~ ~ superpower @p ben_ten:prototype_omnitrix_timeout",
			"scoreboard players add @s Chance 1",
			"scoreboard players set @s[score_Chance_min=70] Chance 0",
			"/scoreboard players set @s[tag=MasterControl] Randomizer 0"]
		},
		"dna_lockactive": {
			"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"]
		
		}
	}
}