{
	"name": {
		"text": "Sonorosian"
	},
	
	"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_sonorosian.png"
		},
		{
		"type": "skin_change",
        "texture": "ben_ten:textures/models/transformations/inv_sonorosian_ree.png",
		  "conditions": [
				{
					"type": "ability_enabled",
					"ability": "the-fifth-world:screech"
				}
			]
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/inv_sonorosian_glow.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "always"
				}
			]
		}
	],
	
	"abilities": {
			"size change_sonorosian": {
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "Size Change"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"commands": ["sizechange @s 0.7 pymtech:pym_particles"]
		},
		"sonic scream": {
			"ability": "the-fifth-world:screech",
			"cooldown": 20,
            "show_in_bar": true,
            "bar_color": "white",			
            "title": {"text":"Sonic Scream"},		
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/sonic_howl.png" },
            "damage": 3.5
		},
		"echolocation": {
			"ability": "heroesexpansion:x_ray",
			"cooldown": 300,
			"show_in_bar": true,
			"title": {"text":"Echolocation"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/echolocation.png" },
			"bar_color": "white"
		},
		"Echo Scream": {
			"ability": "the-fifth-world:screech",
			"parent_ability": "echolocation",
            "show_in_bar": false,			
            "title": {"text":"Echolocation"},	
            "damage": 0
		},
		"invclone": {
			"ability": "speedsterheroes:time_remnant",
           		"cooldown": 200,
			"title": {"translate":"Create clone"},
			"bar_color": "white",
			"icon": {
						"type": "texture",
						"texture": "ben_ten:textures/gui/powers/invecho_clone.png"
					}
		},
		"remove clones": {
			"ability": "lucraftcore:command",
           		"show_in_bar": true,
			"commands": ["/entitydata @e[r=2,tag=echoalive] {OwnerUUID:\"7e2b5ebc-3aa1-4278-3ca9-110085\"}"],
			"title": {"translate":"Absorb clones"},
			"icon": {
						"type": "texture",
						"texture": "ben_ten:textures/gui/powers/invecho_remove_clone.png"
					},
			"bar_color": "black"
		},
		"clone com": {
			"ability": "lucraftcore:command",
           		"show_in_bar": false,
			"parent_ability": "invclone",
			"commands": [
			"/execute @e[type=speedsterheroes:dimension_breach] ~ ~ ~ scoreboard players tag @s add eclone",
			"/tp @e[type=speedsterheroes:dimension_breach,tag=eclone] ~ ~100 ~",
			"superpowerxp 10 @s"],
			"title": {"translate":"clone com"},
			"bar_color": "green"
		},
		"invselector_sonoro": {	
	        "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_sonorosian_selector"],
			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "Sneaking"}]
		},
		"invdetransform_sonoro": {	
	        "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_sonoro":{
			"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",
			"superpower @e[tag=echoalive] ben_ten:echo_clone_power",
			"/execute @e[type=speedsterheroes:dimension_breach,tag=eclone] ~ ~ ~ scoreboard players tag @e[type=speedsterheroes:time_remnant] add echoclone",
			"/effect @e[tag=echoalive] minecraft:invisibility 1000000 255 true",
			"/sizechange @e[tag=echoalive] 0.7 pymtech:pym_particles",
			"scoreboard players tag @e[tag=echoalive] remove echoclone",
			"/execute @e[type=speedsterheroes:time_remnant] ~ ~ ~ kill @e[type=speedsterheroes:dimension_breach,r=4]",
			"/execute @e[type=speedsterheroes:time_wraith] ~ ~ ~ tp @e[type=speedsterheroes:dimension_breach] ~ ~200 ~",
			"/kill @e[type=speedsterheroes:time_wraith]",
			"/kill @e[type=speedsterheroes:black_flash]",
			"tp @e[type=speedsterheroes:time_remnant,tag=echoclone] @s",
			"effect @e[tag=echoclone] slowness 100000 2 true",
			"replaceitem entity @e[tag=echoclone] slot.armor.chest ben_ten:inv_echo_clone_chest",
			"scoreboard players tag @e[tag=echoclone,r=1] add echoalive",
			"scoreboard players tag @e[tag=echoclone] remove echoclone",


"scoreboard players add @s Timer 1",
			"clear @s ben_10_addon_af:dial_echo_chest",
			"clear @s ben_10_addon_af:dial_echo_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: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,lvlc: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		
		},
		"enhanced durability": {
			"ability": "lucraftcore:resistance",			
            "show_in_bar": false,		
            "title": {"text":"Enhanced Durability"},						
			"amount": 4,
			"operation": 0,
			"uuid": "87999726-5e99-42bd-b9ac-c979654ad090"	
		},
		"fall resistance": {
			"ability": "lucraftcore:fall_resistance",
			"show_in_bar": false,
			"title": {"text":"Fall Resistance"},
			"amount": 200,
			"operation": 0,
			"uuid": "645d2921-7a9a-4f5c-98b7-4d62933d9d53"
		},
		"sonic scream XP": {
            "ability": "lucraftcore:command_held",
            "cooldown": 0,
			"parent_ability": "sonic scream",
            "show_in_bar": false,
            "title": {"text":"Sonic Scream XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
		    "commands": ["/superpowerxp 1 @s", "playsound ben_ten:sonic_scream master @a[r=10] ~ ~ ~"],
		    "hidden": true
		},
		"echolocation XP": {
            "ability": "lucraftcore:command",
            "cooldown": 0,
			"parent_ability": "echolocation",
            "show_in_bar": false,
            "title": {"text":"Echolocation XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
		    "commands": ["/superpowerxp 2 @s", "playsound ben_ten:sonic_scream master @a[r=10] ~ ~ ~"],
		    "hidden": true
		}
	}
}
	