{
	"name": {
		"text": "Nanochip"
	},
	
	"icon": {
		"type": "texture",
		"texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix_red.png"
	},
	
	"creative_tab": "ben10",
	
	"max_level": 40,
	
	"capsule_color" : 8519680,
	
	"effects": [		
		{
		"type": "skin_change",
        "texture": "ben_ten:textures/models/transformations/inv_nanomech.png"
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/inv_nanomech_glow.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "always"
				}
			]
		}
	],
	
	"abilities": {
		"size reset": {
            "ability": "lucraftcore:command_loop",
            "cooldown": 0,
			"parent_ability": "nanochip",
            "show_in_bar": false,
            "title": {"text":"Size Reset"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
            "conditions": [{
			    "type": "ability_enabled",
				"ability": "lucraftcore:command"}],
		    "commands": ["sizechange @s 0.1 lucraftcore:default"],
		    "hidden": true
		},
		"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"]
		},
		"invbio-electrokinesis": {
            "ability": "heroesexpansion:photon_blast",
			"cooldown": 30,
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/inv_bio-electrokinesis.png" },
            "frequency": 10,
			"bar_color": "red",
			"title": {"text":"Bio-Electrokinesis"},
			"color": [255, 0, 0],
			"uuid": "68305d2f-8a3c-43f0-913c-5d40c9b6549c"	
		},
		"invbio-electrokinesis blast": {
            "ability": "lucraftcore:energy_blast",
			"cooldown": 30,
			"color": [255, 0, 0],
            "frequency": 10,
			"bar_color": "red",
			"title": {"text":"Energy Blast"},
			"uuid": "e5e9b8ed-3444-422e-b6c6-1a5d1b0da5a8"
		},
		"invselector_nano": {	
	        "ability": "lucraftcore:command",		
			"cooldown": 0,
            "show_in_bar": true,	
            "title": {"text":"Selector"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix_red.png" },
            "bar_color": "red",				
			"commands": ["/superpower @s ben_ten:inv_nanochip_selector"],
			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]
		},
		"invdetransform_nano": {	
	        "ability": "lucraftcore:command",		
			"cooldown": 0,
            "show_in_bar": true,	
            "title": {"text":"Detransform"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix.png" },
            "bar_color": "green",				
			"commands": ["replaceitem entity @s slot.armor.head air",
			"replaceitem entity @s slot.armor.chest air",
			"replaceitem entity @s slot.armor.legs air",
			"replaceitem entity @s slot.armor.feet air",
			"scoreboard players set @s NoArmor 0",
			"/superpower @s ben_10_addon_af:recal_omnitrix",
			"playsound ben_ten:recalibrated_detransform player @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152"],
			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]}]
		},
		"invtimer_nano":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Timer"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix_red.png"},
			"commands": ["/scoreboard objectives add Omni:Sneak stat.sneakTime",
			"/scoreboard players tag @s[score_Omni:Sneak_min=1] add Sneaking",
			"/scoreboard players tag @s[score_Omni:Sneak=0] remove Sneaking",
			"/scoreboard players set @s[score_Omni:Sneak_min=1] Omni:Sneak 0",
			"scoreboard players add @s Timer 1",
			"clear @s ben_10_addon_af:dial_nanomech_chest",
			"clear @s ben_10_addon_af:dial_nanomech_iv_chest",
			"scoreboard players add @s[score_Timer=12000,score_Timer_min=12000,tag=!MasterControl] NoArmor 1",
			"replaceitem entity @s[score_Timer=11998,score_Timer_min=0] slot.armor.head ben_ten:u_invis_suit_helmet 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[score_Timer=11998,score_Timer_min=0] slot.armor.chest ben_ten:inv_nanochip_wings_chest 1 0 {ench:[{id:10,lvl:1}],AttributeModifiers:[{AttributeName:\"generic.maxHealth\",Name:\"generic.maxHealth\",Amount:-14,Operation:0,UUIDLeast:1,UUIDMost:1}]}",
			"replaceitem entity @s[score_Timer=11998,score_Timer_min=0] slot.armor.legs ben_ten:u_invis_suit_legs 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[score_Timer=11998,score_Timer_min=0] slot.armor.feet ben_ten:u_invis_suit_boots 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.head ben_ten:u_invis_suit_helmet 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.chest ben_ten:inv_nanochip_wings_chest 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.legs ben_ten:u_invis_suit_legs 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.feet ben_ten:u_invis_suit_boots 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[score_NoArmor=1,score_NoArmor_min=1] slot.armor.head air",
			"replaceitem entity @s[score_NoArmor=1,score_NoArmor_min=1] slot.armor.chest air",
			"replaceitem entity @s[score_NoArmor=1,score_NoArmor_min=1] slot.armor.legs air",
			"replaceitem entity @s[score_NoArmor=1,score_NoArmor_min=1] slot.armor.feet air",
			"execute @s[score_Timer_min=12000,tag=!MasterControl] ~ ~ ~ /superpower @s ben_10_addon_af:recal_omnitrix_timedout", 
			"execute @s[score_Timer_min=12000,tag=!MasterControl] ~ ~ ~ particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152", 
			"execute @s[score_Timer=12000,score_Timer_min=12000,tag=!MasterControl] ~ ~ ~ /playsound ben_ten:recalibrated_detransform master @a ~ ~ ~",
			"superpower @s[score_DoD=1,score_DoD_min=1] ben_10_addon_af:recal_omnitrix",
			"scoreboard players set @s[score_DoD_min=1] DoD 0"], 
			"hidden": true
		},
		"radiation immunity":{
			"ability": "the-fifth-world:potion_immunity",
			"show_in_bar": false,
			"potion": "lucraftcore:radiation",
			"title": {"text":"Radiation Immunity"},
			"icon": {"type": "internal"}
		},
		"Chitauri Virus immunity":{
			"ability": "the-fifth-world:potion_immunity",
			"show_in_bar": false,
			"potion": "heroesexpansion:chitauri_virus",
			"title": {"text":"Chitauri Virus Immunity"},
			"icon": {"type": "internal"}
		},
		"fall resistance": {
			"ability": "lucraftcore:fall_resistance",
			"show_in_bar": false,
			"title": {"text":"Fall Resistance"},
			"amount": 200,
			"operation": 0,
			"uuid": "d22e1d91-2a5c-488f-a9ec-df4a577987e8"
		},
		"bio-electrokinesis XP": {
            "ability": "lucraftcore:command_held",
            "cooldown": 0,
			"parent_ability": "neuroshock blasts",
            "show_in_bar": false,
            "title": {"text":"Neuroshock Blasts XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
            "conditions": [{
			    "type": "ability_enabled",
				"ability": "heroesexpansion:photon_blast"}],
		    "commands": ["/superpowerxp 1 @s"],
		    "hidden": true
		},
		"bio-electrokinesis blast XP": {
            "ability": "lucraftcore:command",
            "cooldown": 0,
			"parent_ability": "bio-electrokinesis blast",
            "show_in_bar": false,
            "title": {"text":"Bio-Electrokinesis Blast XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
            "conditions": [{
			    "type": "ability_enabled",
				"ability": "lucraftcore:energy_blast"}],
		    "commands": ["/superpowerxp 2 @s"],
		    "hidden": true
		}
	}
}
		