{
	"name": {
		"text": "Perk Gourmand"
	},

	"icon": {
		"type": "texture",
		"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix.png"
	},

	"creative_tab": "ben10",
	
	"max_level": 30,
	
	"capsule_color": 33333,
	
    "effects": [
        {
        "type": "skin_change",
        "texture": "ben_ten:textures/models/transformations/upchuck.png"
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/upchuck_glow.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "always"
				}
			]
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/upchuck_belly.png",
            "size": 0.0,
            "glow": true,
		  "conditions": [
				{
					"type": "ability_enabled",
					"ability": "tummyglow",
					"use_key": true
				}
			]
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/upchuck_to.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "ability_enabled",
					"ability": "heroesexpansion:precision"
				}
			]
		}
    ],
	
	"abilities": {
	"normal_sizeupc": {
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "Normal Size"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"commands": ["/sizechange @s 0.7 pymtech:pym_particles"]
		},
		"tummyglow": {
			"ability": "lucraftcore:fall_resistance",
			"show_in_bar": true,
			"title": {"text": "tummy glow"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"conditions": [{"type": "lucraftcore:not",
					"conditions": [{"type": "lucraftcore:potion_weakness",
							"potion": "nausea"}]}]
		},
		"eat": {
			"ability": "lucraftcore:set_punch",
			"show_in_bar": true,
           		 "parent_ability": "eat",
			"cooldown": 60,
			"title": {"text": "Solid Matter Ingestion"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/block_penetration.png" },
			"bar_color": "lime",
			"arm": 5,
			"reach_distance": 0.0,
			"damage": -1.0,
			"conditions": [{"type": "lucraftcore:not",
					"conditions": [{"type": "lucraftcore:potion_weakness",
							"potion": "unluck"}]}]
		},
		"eat block": {
			"ability": "heroesexpansion:grab_entity",
			"show_in_bar": false,
           		 "parent_ability": "eat",
			"cooldown": 1,
			"title": {"text": "eat block"},
			"bar_color": "light_gray",
			"icon": { "type": "internal" }
		},
		"eat com": {
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
           		 "parent_ability": "eat block",
			"title": {"text": "eat com"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"commands": ["/tp @e[type=heroesexpansion:grabbed_block,r=10] @s", "/execute @e[type=heroesexpansion:grabbed_block,r=1] ~ ~ ~ scoreboard players add @p[r=1] eat 10", "kill @e[type=heroesexpansion:grabbed_block,r=1]", "scoreboard players set @s[score_eat_min=101] eat 100",
			"superpowerxp 2 @s"]
		},
		"smallblast": {
			"ability": "lucraftcore:energy_blast",
			"cooldown": 30,
			"show_in_bar": true,
			"color": [0, 255, 0],
			"damage": 10,
			"title": {"translate":"Small Energy Blast "},
			"bar_color": "lime",
			"icon": {
						"type": "texture",
						"texture": "ben_ten:textures/gui/powers/small_energy_blast.png"
					}
		},
                 "smallblastcom": {
			"ability": "lucraftcore:command",
			"show_in_bar": false,
			"title": {"translate":"blast com"},
			"icon": { "type": "internal" },
           		 "parent_ability": "smallblast",
			"bar_color": "light_gray",
			"commands": ["execute @s[score_eat=4] ~ ~ ~ kill @e[type=lucraftcore:energy_blast,r=3]", "execute @s[score_eat_min=5] ~ ~ ~ scoreboard players tag @e[type=lucraftcore:energy_blast,r=3] add smallblast", "scoreboard players remove @s[score_eat_min=5] eat 5",
			"superpowerxp 2 @s"]
		},
		"largeblast": {
			"ability": "lucraftcore:energy_blast",
			"show_in_bar": true,
			"color": [0, 255, 0],
           		"cooldown": 80,
			"damage": 20,
			"title": {"translate":"Large Energy Blast"},
			"bar_color": "lime",
			"icon": {
						"type": "texture",
						"texture": "ben_ten:textures/gui/powers/big_energy_blast.png"
					}
		},
                 "largeblastcom": {
			"ability": "lucraftcore:command",
			"show_in_bar": false,
			"title": {"translate":"blast com"},
			"icon": { "type": "internal" },
           		 "parent_ability": "largeblast",
			"bar_color": "light_gray",
			"commands": ["execute @s[score_eat=9] ~ ~ ~ kill @e[type=lucraftcore:energy_blast,r=3]", "execute @s[score_eat_min=10] ~ ~ ~ scoreboard players tag @e[type=lucraftcore:energy_blast,r=3] add largeblast", "scoreboard players remove @s[score_eat_min=10] eat 10",
			"superpowerxp 4 @s"]
		},
		"detransformupc": {	
	        "ability": "lucraftcore:command",		
			"required_level": 27,
            "show_in_bar": true,	
            "title": {"text":"Detransform"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_white.png" },
            "bar_color": "light_gray",
 			"conditions": [{"type": "lucraftcore:not",
 			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "MasterControl"}]}],
			"commands": ["/superpower @s ben_ten:prototype_omnitrix",
			"playsound ben_ten:prototype_transformation player @a ~ ~ ~",
			"/particle reddust ~ ~1 ~ 0.3 0.5 0.3 0 3000",
			"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",
			"scoreboard players tag @s remove oscan",
			"scoreboard players set @s eat 0"]
		},
		"selectorupcmc": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Selector"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix.png" },
            "bar_color": "green",	
			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "MasterControl"}],			
			"commands": ["/superpower @s ben_ten:upchuck_selector"]
		},
		"detransformupcmc": {	
	        "ability": "lucraftcore:command",		
			"required_level": 0,
            "show_in_bar": true,	
            "title": {"text":"Detransform"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_white.png" },
            "bar_color": "light_gray",	
			"conditions": [{
             	 	"type": "lucraftcore:scoreboard_tag",
              		"tag": "MasterControl"}],			
			"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_ten:prototype_omnitrix",
			"playsound ben_ten:prototype_transformation player @a ~ ~ ~",
			"/particle reddust ~ ~1 ~ 0.3 0.5 0.3 0 3000",
			"scoreboard players tag @s remove oscan",
			"scoreboard players set @s eat 0"]
		},
		"timerupc":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Timer"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_red.png"},
			"commands": ["scoreboard players tag @s[score_Timer_min=12000,tag=!MasterControl] remove oscan",
			"scoreboard players add @s Timer 1",
			"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: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: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: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: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",
			"replaceitem entity @s[tag=MasterControl] slot.armor.head ben_ten:invis_suit_helmet 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.chest ben_ten:invis_suit_chest 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.legs ben_ten:invis_suit_legs 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"replaceitem entity @s[tag=MasterControl] slot.armor.feet ben_ten:invis_suit_boots 1 0 {ench:[{id:10,lvl:1},{id:71,lvl:1}]}",
			"execute @s[score_Timer_min=12000,tag=!MasterControl] ~ ~ ~ /superpower @s ben_ten:prototype_omnitrix_timeout", 
			"execute @s[score_Timer_min=12000,tag=!MasterControl] ~ ~ ~ /particle reddust ~ ~1 ~ 0.3 0.5 0.3 0 3000",
			"execute @s[score_Timer=11940,score_Timer_min=11940,tag=!MasterControl] ~ ~ ~ /playsound ben_ten:prototype_timeout-detransform master @a ~ ~ ~",
			"/scoreboard objectives add eat dummy",
			"effect @s[score_eat=99,score_eat_min=0] unluck 1 1 true",
			"/execute @e[tag=largeblast] ~ ~ ~ particle totem ~ ~ ~ 0.6 0.6 0.6 0 100 force",
			"/execute @e[tag=smallblast] ~ ~ ~ particle totem ~ ~ ~ 0.1 0.1 0.1 0 100 force",
			"effect @s[score_eat_min=80] nausea 1 1 true",
			"scoreboard players set @s[score_eat_min=-100,score_eat=-1] eat 0",
			"scoreboard players set @s[score_NoArmor_min=1] NoArmor 0",
			"effect @s[tag=MasterControl] minecraft:luck 1 0 true",
			"execute @s[score_Timer_min=12000,tag=!MasterControl] ~ ~ ~ scoreboard players set @s eat 0",
			"effect @s[score_Timer=11940,score_Timer_min=11940,tag=!MasterControl] heroesexpansion:kryptonite_poison 1 0 true",
			"effect @s[score_Timer=11965,score_Timer_min=11965,tag=!MasterControl] heroesexpansion:kryptonite_poison 1 0 true",
			"effect @s[score_Timer=12000,score_Timer_min=11990,tag=!MasterControl] heroesexpansion:kryptonite_poison 1 0 true",
			"superpower @s[score_DoD=1,score_DoD_min=1,tag=MasterControl] ben_10_addon:prototype_omnitrix",
			"superpower @s[score_DoD=1,score_DoD_min=1,tag=!MasterControl] ben_ten:prototype_omnitrix_timeout",
			"scoreboard players set @s[score_DoD_min=1] DoD 0"], 
			"hidden": true
		},
		"timeoutwarning": {
			"ability": "heroesexpansion:precision",
			"cooldown": 0,
			"conditions": [{"type": "lucraftcore:not",
				"conditions": [{"type": "lucraftcore:potion_weakness",
						"potion": "heroesexpansion:kryptonite_poison"}]}],	
			"show_in_bar": false,
			"title": {"translate":"Color Warning"},
			"icon": { "type": "internal" }
		},
		"space survivability": {
			"ability": "lucraftcore:tough_lungs",
			"show_in_bar": false,
			"title": {"text":"Space Survivability"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray"
		},
		"fall resistance": {
			"ability": "lucraftcore:fall_resistance",
			"show_in_bar": false,
			"title": {"text":"Fall Resistance"},
			"amount": 200,
			"operation": 0,
			"uuid": "645d2921-7a9a-4f5c-98b7-4d62933d9d53"		
		}
	}
}