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

	"icon": {
		"type": "texture",
		"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_nf.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_nf": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard objectives add OmnitrixOn dummy", "/clear @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] ben_10_addon:broken_omnitrix_chest", "/replaceitem entity @s[score_OmnitrixOn_min=0,score_OmnitrixOn=3] slot.weapon.offhand ben_10_addon:broken_omnitrix_chest", "/kill @e[name=item.item.ben_10_addon:broken_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_nf": {
		"ability": "lucraftcore:command_loop",	
			"show_in_bar": false,	
 			"conditions": [{
             	 	"type": "lucraftcore:held_item",
              		"item": "ben_10_addon:broken_omnitrix_chest",
              		"hand": "off_hand"}],
			"icon": { "type": "internal" },		
			"commands": ["/scoreboard players set @s OmnitrixOn 5"]
		},
		"normal_sizenf": {
			"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"]
		},
		"repair": {
			"ability": "lucraftcore:command",
			"cooldown": 0,
			"show_in_bar": true,
			"title": {"text":"Repair"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix.png" },
			"bar_color": "green",
			"conditions": [{
                "type": "lucraftcore:held_item",
                "item": "ben_ten:faceplate_chest",
                "hand": "main_hand"}],
			"commands": ["superpower @s ben_10_addon:prototype_omnitrix",
			"replaceitem entity @s slot.weapon.mainhand air"]
		},
		"transformnf": {
			"ability": "lucraftcore:command",
			"required_level": 0,
			"show_in_bar": true,
			"title": {"text":"Activate"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_nf.png" },
            "bar_color": "green",				
			"commands": ["playsound ben_ten:prototype_transformation master @a ~ ~ ~",
			"particle totem ~ ~1.2 ~ 0.3 0.3 0.3 0 3000",
			"/superpower @s ben_ten:heatjaws",
			"scoreboard players tag @s add Transform", "clear @s ben_10_addon:broken_omnitrix_chest"]
		},
		"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"]
		},
	    "suit_shrink_nf": {
            "ability": "pymtech:shrink_suit",
			"parent_ability": "transformnf",
            "show_in_bar": false,
			"advanced": false
		},
		"randomizernf":{
		    "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_nf_red.png"},
			"bar_color":"light_gray",
			"commands":["scoreboard players add @s Randomizer 1",
			"scoreboard players set @s[score_Randomizer_min=18] Randomizer 0",
			"execute @s[score_Timer_min=2] ~ ~ ~ superpower @p ben_ten:prototype_nf_timeout",
			"/superpower @s[score_Randomizer=5,score_Randomizer_min=0,tag=Transform] ben_ten:heatjaws",
			"/superpower @s[score_Randomizer=11,score_Randomizer_min=6,tag=Transform] ben_ten:stinkarms",
			"superpower @s[score_Randomizer=17,score_Randomizer_min=12,tag=Transform] ben_ten:diamondmatter",
			"scoreboard players tag @s remove Transform"]
		}
	}
}