{
	"name": {
		"text": "Opticoid"
	},
	
	"icon": {
		"type": "texture",
		"texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix.png"
	},
	
	"creative_tab": "ben10",
	
	"max_level": 40,
	
	"capsule_color" : 33333,
	
	"effects": [		
		{
		"type": "skin_change",
        "texture": "ben_ten:textures/models/transformations/u_opticoid.png"
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/u_opticoid_glow.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 lucraftcore:default"]
		},
		"fire blast": {
            "ability": "heroesexpansion:photon_blast",
			"cooldown": 30,
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/energy_beam.png" },
            "frequency": 10,
			"bar_color": "red",
			"title": {"text":"Fire Blast"},
			"color": [0, 230, 0]
		},
		"energy blast": {
            "ability": "lucraftcore:energy_blast",
			"cooldown": 30,
			"color": [0, 230, 0],
            "frequency": 10,
			"bar_color": "lime",
			"title": {"text":"Energy Blast"}
		},
		"freeze blast": {
            "ability": "lucraftcore:energy_blast",
			"cooldown": 30,
			"color": [179,229,255],
            "frequency": 10,
			"bar_color": "light_blue",
			"title": {"text":"Freeze Blast"}
		},
		"electrical beam": {
			"ability": "heroesexpansion:lightning_strike",
			"cooldown": 60,
			"color": [0, 230, 0],
			"show_in_bar": true,
			"title": {"text":"Electrical Beam"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/electrical_beam_blue.png" },
			"bar_color": "blue"
		},
        "freezeblastcom": {
			"ability": "lucraftcore:command",
			"show_in_bar": false,
			"title": {"translate":"freeze blast command"},
			"icon": { "type": "internal" },
			"parent_ability": "freeze blast",
			"bar_color": "light_gray",
			"commands": ["scoreboard players tag @e[type=lucraftcore:energy_blast,r=3] add freezeshot",
			"superpowerxp 4 @s"]
		},
		"selector_opt": {	
	        "ability": "lucraftcore:command",		
			"cooldown": 0,
            "show_in_bar": true,	
            "title": {"text":"Selector"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix.png" },
            "bar_color": "green",				
			"commands": ["/superpower @s ben_ten:u_opticoid_selector"],
			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]
		},
		"detransform_opt": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Detransform"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix_red.png" },
            "bar_color": "red",				
			"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 totem ~ ~1.2 ~ 0.3 0.3 0.3 0 6500"  ],
			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]}]
		},
		"timer_opt":{
			"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",
			"execute @e[type=lucraftcore:energy_blast,tag=freezeshot] ~ ~ ~ particle snowballpoof ~ ~ ~ 0.2 0.2 0.2 0 100",
			"execute @e[type=lucraftcore:energy_blast,tag=freezeshot] ~ ~ ~ effect @e[r=3] heroesexpansion:frozen 5 0 true",
			"scoreboard players add @s Timer 1",
			"clear @s ben_10_addon_af:dial_eyeguy_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:u_invis_suit_chest 1 0 {ench:[{id:10,lvl:1},{id:71,lvl: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:u_invis_suit_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 totem ~ ~1.2 ~ 0.3 1.0 0.3 0 6500", 
			"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
		},
        "freezeblast2com": {
			"ability": "lucraftcore:command_held",
			"show_in_bar": false,
			"cooldown": 20,
			"title": {"translate":"freeze blast 2 command"},
			"icon": { "type": "internal" },
			"parent_ability": "freeze blast",
			"commands": ["effect @p heroesexpansion:frozen 0 0 true"]
		},
		"360° vision": {
            "ability": "heroesexpansion:spider_sense",
            "show_in_bar": false,
            "title": {"text":"360° Vision"},
            "icon": { "type": "internal" }
		},
		"enhanced jumping": {
			"ability": "lucraftcore:jump_boost",
			"show_in_bar": false,
			"title": {"text":"Enhanced Jumping"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"amount": 3.0,
			"operation": 0,
			"uuid": "b0d3d241-371f-402d-b1c2-ca154d7c4e7f"
		},
		"enhanced strength": {	
			"ability": "lucraftcore:strength",				
            "show_in_bar": false,		
            "title": {"text":"Enhanced Strength"},							
			"amount": 8,
			"operation": 0,
			"uuid": "7d706001-8484-44fd-8fe3-ae93e2efe315"
		},
		"health": {
			"ability": "lucraftcore:health",			
            "show_in_bar": false,		
            "title": {"text":"Health"},					
			"amount": 28,
			"operation": 0,
			"uuid": "14250ae0-bbc7-434f-9c6f-7525f4a2c31a"
		},
		"defense": {
			"ability": "lucraftcore:resistance",			
            "show_in_bar": false,		
            "title": {"text":"Durability"},						
			"amount": 12,
			"operation": 0,
			"uuid": "8e327f4a-2a25-457f-82b9-03b5b6f17118"
		},
		"fall resistance": {
			"ability": "lucraftcore:fall_resistance",
			"show_in_bar": false,
			"title": {"text":"Fall Resistance"},
			"amount": 200,
			"operation": 0,
			"uuid": "d22e1d91-2a5c-488f-a9ec-df4a577987e8"
		},
		"fire blast XP": {
            "ability": "lucraftcore:command_held",
            "cooldown": 0,
			"parent_ability": "fire blast",
            "show_in_bar": false,
            "title": {"text":"Fire Blast XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
		    "commands": ["/superpowerxp 4 @s"],
		    "hidden": true
		},
		"energy blast XP": {
            "ability": "lucraftcore:command",
            "cooldown": 0,
			"parent_ability": "energy blast",
            "show_in_bar": false,
            "title": {"text":"Energy Blast XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
		    "commands": ["/superpowerxp 4 @s"],
		    "hidden": true
		},
		"electric beam XP": {
            "ability": "lucraftcore:command_held",
            "cooldown": 0,
			"parent_ability": "electrical beam",
            "show_in_bar": false,
            "title": {"text":"Electrical Beam XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
		    "commands": ["/superpowerxp 4 @s"],
		    "hidden": true
		}
	}
}
		