{
	"name": {
		"text": "Petrogalvan"
	},
	
	"icon": {
		"type": "texture",
		"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_nf.png"
	},
	
	"creative_tab": "ben10",
	
	"max_level": 30,
	
	"capsule_color" : 33333,
	
	"effects": [		
		{
		"type": "skin_change",
        "texture": "ben_ten:textures/models/transformations/diamondmatter.png"
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/diamondmatter_glow.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "always"
				}
			]
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/overlays/glow/diamondmatter_to.png",
            "size": 0,
            "glow": true,
            "conditions": [
            	{
            		"type": "ability_enabled",
					"ability": "heroesexpansion:precision"
				}
			]
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.1
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.2
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.3
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.4
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.5
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.6
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.7
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.8
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 0.9
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 1.0
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 1.1
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 1.2
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 1.3
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 1.4
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds.png",
            "size": 1.5
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 1.6
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 1.7
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 1.8
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 1.9
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 2.0
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 2.1
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 2.2
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 2.3
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 2.4
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 2.5
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds2.png",
            "size": 2.6
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds3.png",
            "size": 2.7
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds3.png",
            "size": 2.8
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds3.png",
            "size": 2.9
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds3.png",
            "size": 3.0
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds3.png",
            "size": 3.1
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds3.png",
            "size": 3.2
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ds3.png",
            "size": 3.3
		}
	],
	
	"abilities": {
		"randomdimatter":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Random"},			
			"icon": { "type": "internal" },
			"commands":["/superpower @s[score_Randomizer=5,score_Randomizer_min=0,tag=Transform] ben_ten:heatjaws",
			"/superpower @s[score_Randomizer=11,score_Randomizer_min=6,tag=Transform] ben_ten:stinkarms",
			"superpower @s[score_Randomizer=17,score_Randomizer_min=12,tag=Transform] ben_ten:diamondmatter",
			"scoreboard players tag @s remove Transform",
			"scoreboard players add @s Randomizer 1",
			"scoreboard players set @s[score_Randomizer_min=18] Randomizer 0"]
		},
		"normal_sizedgal": {
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"title": {"text": "Teeny Weeny"},
			"icon": { "type": "internal" },
			"commands": ["sizechange @s 0.30 lucraftcore:default"]
		},
		"surface climbing": {
            "ability": "heroesexpansion:wall_crawling",
            "cooldown": 0,
            "show_in_bar": true,
			"title": {"text":"Surface Climbing"},
            "icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/diamondmatter_climbing.png" }
		},
		"d shard": {
			"ability": "lucraftcore:energy_blast",
           		"cooldown": 20,
			"damage": 4.0,
			"color": [0, 100, 140],
			"title": {"translate":"Diamond Shards"},
			"bar_color": "cyan",
			"icon": {
						"type": "texture",
						"texture": "ben_ten:textures/gui/powers/dhead_spike.png"
					}
		},
                 "dshardcom": {
			"ability": "lucraftcore:command",
			"title": {"translate":"dhs command"},
        		    "cooldown": 20,
			"show_in_bar": false,
           	"parent_ability": "d shard",
			"commands": ["scoreboard players tag @e[type=lucraftcore:energy_blast,r=2] add diamondshard"]
		},
      		  "d fire":{
           		 "ability": "lucraftcore:set_punch",
           		 "parent_ability": "d shard",
				 "show_in_bar": false,
           		 "title": {"text":"diamond fire"},
           		 "arm": 0,
           		 "reach_distance": 0.0,
            		"damage": 0.0	
		},
	"diamond dome": {	
	        "ability": "lucraftcore:command",	
          	  "cooldown": 250,	
         	"show_in_bar": true,	
         	"title": {"text":"Dome"},
	        "icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/dome.png" },
            	"bar_color": "cyan",				
			"commands": [
"/scoreboard objectives add Omni:DmDome dummy",
"/setblock ~1 ~ ~ minecraft:prismarine 1 keep",
"/setblock ~-1 ~ ~ minecraft:prismarine 1 keep",
"/setblock ~ ~ ~1 minecraft:prismarine 1 keep",
"/setblock ~ ~ ~-1 minecraft:prismarine 1 keep",
"/setblock ~ ~1 ~ minecraft:prismarine 1 keep",
"/summon minecraft:armor_stand ~ ~ ~ {CustomName:\"DmDome\",Invisible:1,NoGravity:1}",
"/scoreboard players set @e[name=DmDome] Omni:DmDome 0"]
		},

	"diamond wall": {	
	        "ability": "lucraftcore:command",	
            "cooldown": 250,	
         	"show_in_bar": true,	
         	"title": {"text":"Wall"},
	        "icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/dhead_wall.png" },
            	"bar_color": "cyan",				
			"commands": [
"/scoreboard objectives add Omni:DmWall dummy",
"/execute @s[ry=45,rym=-45] ~ ~ ~ /setblock ~ ~ ~1 minecraft:prismarine 1 keep",
"/execute @s[ry=-46,rym=-145] ~ ~ ~ /setblock ~1 ~ ~ minecraft:prismarine 1 keep",
"/execute @s[ry=-145,rym=144] ~ ~ ~ /setblock ~ ~ ~-1 minecraft:prismarine 1 keep", 
"/execute @s[ry=144,rym=46] ~ ~ ~ /setblock ~-1 ~ ~ minecraft:prismarine 1 keep",
"/summon minecraft:armor_stand ~ ~ ~ {CustomName:\"DmWall\",Invisible:1,NoGravity:1}",
"/scoreboard players set @e[name=DmWall] Omni:DmWall 0"]
		},

	"diamond pillar": {	
	        "ability": "lucraftcore:command",	
            "cooldown": 250,	
         	"show_in_bar": true,	
         	"title": {"text":"Pillar"},
	        "icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/dhead_pillar.png" },
            	"bar_color": "cyan",				
			"commands": [
"/scoreboard objectives add Omni:DmPil dummy",
"/tp @e[r=1] ~ ~2 ~",
"/setblock ~ ~-1 ~ minecraft:prismarine 1 keep",
"/setblock ~ ~-2 ~ minecraft:prismarine 1 keep",
"/summon minecraft:armor_stand ~ ~ ~ {CustomName:\"DmPil\",Invisible:1,NoGravity:1}",
"/scoreboard players set @e[name=DmPil] Omni:DmPil 0"]
		},



	"detransformdmatter": {	
	        "ability": "lucraftcore:command",		
			"required_level": 27,
            "show_in_bar": true,	
            "title": {"text":"Detransform"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_nf_white.png" },
            "bar_color": "light_gray",				
			"commands": [
"/execute @e[name=DmPil] ~ ~ ~ /fill ~ ~1 ~ ~ ~-2 ~ air 0 replace minecraft:prismarine",
"/execute @e[name=DmDome] ~ ~ ~ /fill ~1 ~1 ~1 ~-1 ~-1 ~-1 air 0 replace minecraft:prismarine",
"/execute @e[name=DmWall] ~ ~ ~ /fill ~1 ~1 ~1 ~-1 ~-1 ~-1 air 0 replace minecraft:prismarine","/superpower @s ben_ten:prototype_nf",
"kill @e[name=DmPil]",
"kill @e[name=DmDome]",
"kill @e[name=DmWall]",
			"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"]
		},
		"timer5a6d+8":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Timer"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_nf_red.png"},
			"commands": ["kill @e[type=armor_stand,name=dhs]"]
			},
		"timer5a6d+9":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Timer"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_nf_red.png"},
			"commands": [
			"kill @e[type=armor_stand,name=dhs]",
			"execute @e[type=lucraftcore:energy_blast,tag=diamondshard] ~ ~ ~ summon armor_stand ~ ~-0.8 ~ {CustomName:dhs,Invisible:1,Small:true,NoGravity:true,ArmorItems:[{id:air,Count:1},{id:air,Count:1},{id:air,Count:1},{id:diamond_block,Count:1}]}",
			"kill @e[type=armor_stand,name=dhs]",

"/scoreboard players add @e[name=DmPil] Omni:DmPil 1",
"/execute @e[name=DmPil,score_Omni:DmPil_min=200] ~ ~ ~ /fill ~ ~1 ~ ~ ~-2 ~ air 0 replace minecraft:prismarine",
"kill @e[name=DmPil,score_Omni:DmPil_min=200]",
			

"/scoreboard players add @e[name=DmDome] Omni:DmDome 1",
"/execute @e[name=DmDome,score_Omni:DmDome_min=200] ~ ~ ~ /fill ~1 ~1 ~1 ~-1 ~-1 ~-1 air 0 replace minecraft:prismarine",
"kill @e[name=DmDome,score_Omni:DmDome_min=200]",





"/scoreboard players add @e[name=DmWall] Omni:DmWall 1",
"/execute @e[name=DmWall,score_Omni:DmWall_min=200] ~ ~ ~ /fill ~1 ~1 ~1 ~-1 ~-1 ~-1 air 0 replace minecraft:prismarine",
"kill @e[name=DmWall,score_Omni:DmWall_min=200]",

"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}],AttributeModifiers:[{AttributeName:\"generic.maxHealth\",Name:\"generic.maxHealth\",Amount:-10,Operation:0,UUIDLeast:1,UUIDMost: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[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}]}",
			"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] ~ ~ ~ /superpower @s ben_ten:prototype_nf_timeout", 
			"execute @s[score_Timer_min=12000] ~ ~ ~ /particle reddust ~ ~1 ~ 0.3 0.5 0.3 0 3000",
			"execute @e[type=lucraftcore:energy_blast,tag=diamondshard] ~ ~ ~ summon armor_stand ~ ~-0.9 ~ {CustomName:dhs,Invisible:1,Small:true,NoGravity:true,ArmorItems:[{id:air,Count:1},{id:air,Count:1},{id:air,Count:1},{id:diamond_block,Count:1}]}",
			"execute @s[score_Timer=11940,score_Timer_min=11940] ~ ~ ~ /playsound ben_ten:prototype_timeout-detransform master @a ~ ~ ~",
			"scoreboard players add @e[type=lucraftcore:energy_blast,tag=diamondshard] dhw 1",
			"kill @e[type=lucraftcore:energy_blast,tag=diamondshard,score_dhw_min=100]",
			"scoreboard players set @s[score_NoArmor_min=1] NoArmor 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_ten:prototype_nf_timeout",
			"scoreboard players set @s[score_DoD_min=1] DoD 0",
"/execute @s[score_Timer_min=12000] ~ ~ ~ execute @e[name=DmPil] ~ ~ ~ /fill ~ ~1 ~ ~ ~-2 ~ air 0 replace minecraft:prismarine",
"/execute @s[score_Timer_min=12000] ~ ~ ~ execute @e[name=DmDome] ~ ~ ~ /fill ~1 ~1 ~1 ~-1 ~-1 ~-1 air 0 replace minecraft:prismarine",
"/execute @s[score_Timer_min=12000] ~ ~ ~ execute @e[name=DmWall] ~ ~ ~ /fill ~1 ~1 ~1 ~-1 ~-1 ~-1 air 0 replace minecraft:prismarine",
"/execute @s[score_Timer_min=12000] ~ ~ ~ kill @e[name=DmPil]",
"/execute @s[score_Timer_min=12000] ~ ~ ~ kill @e[name=DmDome]",
"/execute @s[score_Timer_min=12000] ~ ~ ~ kill @e[name=DmWall]"],
			"hidden": true
		},
		"timer5a6d+7":{
			"ability": "lucraftcore:command_loop",
			"show_in_bar": false,
			"cooldown": 0,
			"title": {"text":"Timer"},			
			"icon": {"type": "texture",
				"texture": "ben_ten:textures/gui/omnitrix/prototype_omnitrix_nf_red.png"},
			"commands": ["kill @e[type=armor_stand,name=dhs]"]
			},
		"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" }
		},
		"enhanced jumping": {
			"ability": "lucraftcore:jump_boost",
			"show_in_bar": false,
			"title": {"text":"Enhanced Jumping"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"amount": 1.2,
			"operation": 0,
			"uuid": "b0d3d241-371f-402d-b1c2-ca154d7c4e7f"
		},
		"res": {
			"ability": "lucraftcore:resistance",
            "title": {"text":"Durability"},						
			"amount": 40
		},
		"fallres": {
			"ability": "lucraftcore:fall_resistance",
			"title": {"text":"Fall Resistance"},
			"amount": 200
		},
		"fireres": {
			"ability": "lucraftcore:fire_resistance",
			"title": {"text":"Fire Resistance"}
		},
		"surface climbing XP": {
            "ability": "lucraftcore:command_toggle",
            "cooldown": 0,
			"parent_ability": "surface climbing",
            "show_in_bar": false,
            "title": {"text":"Surface Climbing XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
		    "commands": ["/superpowerxp 1 @s"],
		    "hidden": true			
			
		}
	}
}