{
	"name": {
		"text": "Cannonbolt"
	},

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

	"creative_tab": "ben10",
	
	"max_level": 30,
	
	"capsule_color": 33333,
	
    "effects": [
        {
        "type": "skin_change",
        "texture": "ben_ten:textures/models/transformations/ball_1.png"
		},
		{
            "type": "skin_overlay",
            "texture": "ben_ten:textures/models/transformations/ball_3.png",
            "size": 15,
            "glow": false,
            "conditions": [
            	{
            		"type": "always"
				}
			]
		}
    ],
	
	"abilities": {
	"normal_sizeb2": {
			"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"]
		},
		"normal form3": {
			"ability": "lucraftcore:command",
			"title": {"text": "Curl out of ball"},
			"icon": { "type": "texture", "texture": "ben_ten:textures/gui/powers/ballform.png" },
			"bar_color": "yellow",
			"commands": ["/sizechange @s 1.4 pymtech:pym_particles", "superpower @s ben_ten:u_cannonbolt"]
		},
		"timercan_u1":{
			"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 players add @s Timer 1",
			"clear @s ben_10_addon_af:dial_cannonbolt_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",
			"scoreboard players tag @s[score_ballspin2_min=15] add spinning", "scoreboard players tag @s[score_ballspin2_min=0,score_ballspin2=0] remove spinning",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type=wither,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type=wither_skeleton,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type=zombie,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type=zombie_horse,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type=skeleton,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type=skeleton_horse,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type=husk,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type=zombie_villager,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[type= zombie_pigman,r=1,tag=!spinning] minecraft:instant_health 1 1 true",
			"execute @s[score_ballspin2_min=15] ~ ~ ~ effect @e[r=1,tag=!spinning] minecraft:instant_damage 1 0 true", 
			"execute @s[score_ballspin2_min=39] ~ ~ ~ /particle smoke ~ ~ ~ 0.3 0 0.3 0 100",
			"/superpower @s[score_ballspin_min=40] ben_ten:u_ball_4", "/superpower @s[score_ballspin2_min=15] ben_ten:u_ball_4",
			"/scoreboard players set @s[score_ballspin_min=40] ballspin 0", "/scoreboard players set @s[score_ballspin2_min=15] ballspin2 0",
			"/effect @s minecraft:saturation 1 255 true",
			"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",
			"/scoreboard objectives add ballspin2 stat.sprintOneCm", "/scoreboard objectives add ballspin stat.walkOneCm", "effect @s slowness 1 1 true",
			"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
		},
		"level27": {	
	        "ability": "lucraftcore:command_loop",		
			"required_level": 27,
            "show_in_bar": true,	
            "title": {"text":"Omnitrix Mastery"},
			"icon": { "type": "internal" },
            "bar_color": "green",				
			"commands": ["effect @s heroesexpansion:kryptonite_poison 0"]
		},
		"enhanced jumping": {
			"ability": "lucraftcore:jump_boost",
			"show_in_bar": false,
			"title": {"text":"Enhanced Jumping"},
			"icon": { "type": "internal" },
			"bar_color": "light_gray",
			"amount": 5.0,
			"operation": 0,
			"uuid": "e41e1bc9-50b4-4fe3-bfd0-6ebff9a7edee"
		},
		"enhanced strength": {	
			"ability": "lucraftcore:strength",				
            "show_in_bar": false,		
            "title": {"text":"Enhanced Strength"},							
			"amount": 12,
			"operation": 0,
			"uuid": "59705f1b-8b4b-432d-be6c-f72e55583217"
		},
		"Rolling speed": {
			"ability": "lucraftcore:sprint",			
           		"show_in_bar": false,		
           		"title": {"text":"Ball Speed"},			
			"amount": 1.8,
			"operation": 0,
			"uuid": "0119d469-1991-40c9-9d45-bad2db61bff3"		
		},
		"health": {		
			"ability": "lucraftcore:health",			
            "show_in_bar": false,		
            "title": {"text":"Health"},					
			"amount": 28,
			"operation": 0,
			"uuid": "c46de97f-9c33-4213-8334-3c5df11efab4"		
		},
		"enhanced durabilityb3": {
			"ability": "lucraftcore:resistance",			
          		"show_in_bar": false,		
          		"title": {"text":"Enhanced Durability"},			
			"amount": 22,
			"operation": 0,
			"uuid": "87999726-5e99-42bd-b9ac-c979654ad090"	
		},
		"Enhanced Knockback": {
			"ability": "lucraftcore:knockback_resistance",			
          		"show_in_bar": false,		
          		"title": {"text":"Enhanced Knockback"},			
			"amount": 200.0,
			"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"		
		},	
		"step assist": {
            "ability": "lucraftcore:step_assist",
            "show_in_bar": false,
            "title": {"translate":"lucraftcore.abilities.step_assist.name"},
            "icon": { "type": "internal" },
            "bar_color": "green",
            "amount": 2.0,
            "operation": 0
		},
		"surface climbing XP": {
            "ability": "lucraftcore:command",
            "cooldown": 0,
			"parent_ability": "surface climbing",
            "show_in_bar": false,
            "title": {"text":"Surface Climbing XP"},
            "icon": { "type": "internal" },
            "bar_color": "light_gray",
            "conditions": [{
			    "type": "ability_enabled",
				"ability": "heroesexpansion:wall_crawling"}],
		    "commands": ["/superpowerxp 10 @s"],
		    "hidden": true
		}
	}
}