{
	"name": {
		"text": "Polymorph Selector"
	},
	
	"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_polymorph.png"
		},
		{
            "type": "skin_change",
            "texture": "ben_10_addon:textures/models/blank.png",
		  "conditions": [
				{
					"type": "ability_enabled",
					"ability": "puddle",
					"use_key": true
				}
			]
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/inv_polymorph_glow.png",
            "size": 0,
            "glow": true,
		  "conditions": [{
					"type": "ability_enabled",
					"ability": "nopuddle",
					"use_key": true
				}]
		}
	],
	
	"abilities": {
		"inv_deselectpoly": {	
	        "ability": "lucraftcore:command",		
			"cooldown": 0,
            "show_in_bar": true,	
            "title": {"text":"Deselect"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix_red.png" },
            "bar_color": "red",				
			"commands": ["/superpower @s ben_ten:inv_polymorph",
			"/scoreboard players tag @s remove Goopy",
			"execute @s ~ ~ ~ kill @e[name=polydisc,r=5]"]
		},
		"inv_methanosian": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Methanosian"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_recalibrated_methanosian_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s ben_ten:inv_methanosian",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_sonorosian": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Sonorosian"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_recalibrated_sonorosian_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s ben_ten:inv_sonorosian",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_vaxasaurian": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Vaxasaurian"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_recalibrated_vaxasaurian_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s ben_ten:inv_vaxasaurian",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_aerophibian": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Aerophibian"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_recalibrated_aerophibian_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s ben_ten:inv_aerophibian",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_crystalsapien": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Crystalsapien"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_recalibrated_crystalsapien_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s[tag=!DRev] ben_ten:inv_crystalsapien",
			"superpower @s[tag=DRev] ben_ten:inv_af_diamondhead",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_cerebrocrustacean": {	
	        "ability": "lucraftcore:command",		
			"required_level": 2,
            "show_in_bar": true,	
            "title": {"text":"Cerebrocrustacean"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_recalibrated_cerebrocrustacean_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s ben_ten:inv_cerebrocrustacean",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_necrofriggian": {	
	        "ability": "lucraftcore:command",		
			"required_level": 4,
            "show_in_bar": true,	
            "title": {"text":"Necrofriggian"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_recalibrated_necrofriggian_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s ben_ten:inv_necrofriggian",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_nanochip": {	
	        "ability": "lucraftcore:command",		
			"required_level": 8,
            "show_in_bar": true,	
            "title": {"text":"Nanochip"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_ultimatrix_nanochip_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s ben_ten:inv_nanochip",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_celestialsapien": {	
	        "ability": "lucraftcore:command",		
			"required_level": 10,
            "show_in_bar": true,	
            "title": {"text":"Celestialsapien"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/inv_recalibrated_celestialsapean_selection.png" },
            "bar_color": "red",				
			"commands": ["superpower @s ben_ten:inv_celestialsapien",
			"playsound ben_ten:recalibrated_transformation master @a ~ ~ ~",
			"particle fallingdust ~ ~1.2 ~ 0.3 0.4 0.3 0 3000 force @a 0152",
			"scoreboard players add @s Timer 200",
			"kill @e[name=polydisc,r=5]"]
		},
		"inv_timer_polya":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Timer"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/recalibrated_omnitrix.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[tag=goopyshot] ~ ~ ~ /particle slime ~ ~ ~ 0.1 0.1 0.1 0 120",
"effect @s clear",
"scoreboard objectives add polydisc dummy",
"execute @e[name=polydisc,r=4] ~ ~ ~ scoreboard players add @p[tag=Goopy] polydisc 2",
"execute @s ~ ~ ~ scoreboard players set @e[name=polydisc,r=4] polydisc 2",
"/entitydata @e[name=polydisc,score_polydisc_min=2] {NoGravity:1}",
"/entitydata @e[name=polydisc,score_polydisc_min=1] {NoGravity:0}",
"scoreboard players remove @s[score_polydisc_min=1,r=4] polydisc 1",
"scoreboard players remove @s[score_polydisc_min=3,r=4] polydisc 2",
"scoreboard players remove @e[name=polydisc,score_polydisc_min=1,r=4] polydisc 1",
"/execute @s[score_polydisc_min=3] ~ ~ ~ /spreadplayers ~ ~ 4 5 false @e[name=polydisc,r=4]",
"tp @e[name=polydisc,r=4] @s",
"execute @s[tag=!puddle] ~ ~ ~ tp @e[name=polydisc,r=4,score_polydisc_min=1] ~ ~2.0 ~",
"execute @s[tag=puddle] ~ ~ ~ tp @e[name=polydisc,r=4,score_polydisc_min=1] ~ ~1.0 ~",
"/entitydata @e[name=polydisc,score_polydisc_min=1] {NoGravity:0}",
"/entitydata @e[name=polydisc,score_polydisc_min=2] {NoGravity:1}",

"sizechange @s[tag=!puddle] 1 pymtech:pym_particles",
"sizechange @s[tag=puddle] 0.5 pymtech:pym_particles",
"/scoreboard players tag @s[score_polydisc_min=1] remove puddle",
"/scoreboard players tag @s[score_polydisc=0] add puddle",

"/scoreboard players tag @s[score_polydisc_min=1] add nopuddle",
"/scoreboard players tag @s[score_polydisc=0] remove nopuddle",

"effect @s[score_polydisc_min=1] slowness 0",
"effect @s[score_polydisc=0] slowness 1 3 true",
"/particle blockcrack ~ ~ ~ 0.5 0.1 0.5 0 250 normal @s[score_polydisc=0] 165",


			"/scoreboard players tag @s[score_Timer=12000,score_Timer_min=12000,tag=!MasterControl] remove Goopy",
			"execute @s[score_Timer=11999,score_Timer_min=11999,tag=!MasterControl] ~ ~ ~ kill @e[name=polydisc,r=5]",

"scoreboard players add @s Timer 1",
			"clear @s ben_10_addon_af:dial_goop_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 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
		},
		"puddle": {
			"ability": "lucraftcore:fall_resistance",
			"title": {"translate":"Puddle Form"},
			"amount": 0,
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "puddle"}]
		},
		"nopuddle": {
			"ability": "lucraftcore:fall_resistance",
			"title": {"translate":"Puddle Form"},
			"amount": 0,
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "nopuddle"}]
		},
		"regeneration_poly": {
			"ability": "lucraftcore:healing",
			"show_in_bar": false,
			"title": {"text":"regeneration"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"amount": 4.0,
			"frequency": 10
		},
		"water breathing": {
			"ability": "lucraftcore:water_breathing",
			"show_in_bar": false,
			"title": {"text":"Water Breathing"},
			"icon": { "type": "internal" }
		},
		"fire resistance": {
			"ability": "lucraftcore:fire_resistance"
		},
		"enhanced strength": {	
			"ability": "lucraftcore:strength",				
            "show_in_bar": false,		
            "title": {"text":"Enhanced Strength"},							
			"amount": 8,
			"operation": 0,
			"uuid": "7d706001-8484-44fd-8fe3-ae93e2efe315"	
		},
		"defense": {
			"ability": "lucraftcore:resistance",			
            "show_in_bar": false,		
            "title": {"text":"Durability"},						
			"amount": 4,
			"operation": 0,
			"uuid": "8e327f4a-2a25-457f-82b9-03b5b6f17118"
		},
		"fall resistance": {
			"ability": "lucraftcore:fall_resistance",
			"show_in_bar": false,
			"title": {"text":"Fall Resistance"},
			"amount": 999,
			"operation": 0,
			"uuid": "d22e1d91-2a5c-488f-a9ec-df4a577987e8"
		}
	}
}