{
	"name":"§dBlink",
	"description":"§fYou can slip through space-time, at will, and appear a short distance away.§r §e[Primary]",
	"type":"origins:active_self",
	"entity_action":{
	   "type":"origins:if_else",
	   "condition":{
		  "type":"origins:resource",
		  "resource":"voidwalker:void_energy_resource",
		  "comparison":">",
		  "compare_to":24
	   },
	   "if_action":{
		  "type":"origins:and",
		  "actions":[
			 {
				"type":"origins:change_resource",
				"resource":"voidwalker:void_energy_resource",
				"change":-25,
				"operation":"add"
			 },
			 {
				"type":"origins:apply_effect",
				"effect":{
				   "effect":"minecraft:blindness",
				   "duration":20,
				   "amplifier":0,
				   "is_ambient": false,
				   "show_particles":false,
				   "show_icon":false
				}
			 },
			 {
				"type":"origins:raycast",
				"distance":32.0,
				"block":true,
				"entity":true,
				"shape_type":"collider",
				"fluid_handling":"none",
				"bientity_condition":{
				   "type":"origins:target_condition",
				   "condition":{
					  "type":"origins:and",
					  "conditions":[
						 {
							"type":"origins:entity_type",
							"entity_type":"minecraft:armor_stand"
						 },
						 {
							"type":"origins:nbt",
							"nbt":"{Tags:[\"voidwalker_blink.target\"]}"
						 }
					  ]
				   }
				},
				"hit_action":{
				   "type":"origins:area_of_effect",
				   "radius":64.0,
				   "shape":"cube",
				   "bientity_action":{
					  "type":"origins:and",
					  "actions":[
						 {
							"type":"origins:actor_action",
							"action":{
							   "type":"origins:execute_command",
							   "command":"tag @s add voidwalker_blink.actor"
							}
						 },
						 {
							"type":"origins:target_action",
							"action":{
							   "type":"origins:grant_power",
							   "power":"voidwalker:blink_armor_stand_target",
							   "source":"voidwalker:blink_armor_stand_target"
							}
						 }
					  ]
				   },
				   "bientity_condition":{
					  "type":"origins:target_condition",
					  "condition":{
						 "type":"origins:and",
						 "conditions":[
							{
							   "type":"origins:entity_type",
							   "entity_type":"minecraft:armor_stand"
							},
							{
							   "type":"origins:nbt",
							   "nbt":"{Tags:[\"voidwalker_blink.target\"]}"
							}
						 ]
					  }
				   },
				   "include_actor":false
				},
				"miss_action":{
				   "type":"origins:execute_command",
				   "command":"title @s actionbar {\"text\": \"Cannot teleport! No blocks detected\", \"color\": \"red\"}"
				},
				"command_at_hit":"summon minecraft:armor_stand ~ ~0.5 ~ {Rotation:[0.0f,90.0f],Tags:[\"voidwalker_blink.target\"],Invisible:1b,Invulnerable:1b,Marker:1b}",
				"command_step":1.0,
				"command_along_ray_only_on_hit":false
			 }
		  ]
	   },
	   "else_action":{
		  "type":"origins:and",
		  "actions":[
			 {
				"type":"origins:damage",
				"amount":2,
				"damage_type":"minecraft:magic"
			 },
			 {
				"type":"origins:apply_effect",
				"effect":{
				   "effect":"minecraft:blindness",
				   "duration":100,
				   "amplifier":0,
				   "is_ambient": false,
				   "show_particles":false,
				   "show_icon":false
				}
			 },
			 {
				"type":"origins:raycast",
				"distance":10.0,
				"block":true,
				"entity":true,
				"shape_type":"collider",
				"fluid_handling":"none",
				"bientity_condition":{
				   "type":"origins:target_condition",
				   "condition":{
					  "type":"origins:and",
					  "conditions":[
						 {
							"type":"origins:entity_type",
							"entity_type":"minecraft:armor_stand"
						 },
						 {
							"type":"origins:nbt",
							"nbt":"{Tags:[\"voidwalker_blink.target\"]}"
						 }
					  ]
				   }
				},
				"hit_action":{
				   "type":"origins:area_of_effect",
				   "radius":64.0,
				   "shape":"cube",
				   "bientity_action":{
					  "type":"origins:and",
					  "actions":[
						 {
							"type":"origins:actor_action",
							"action":{
							   "type":"origins:execute_command",
							   "command":"tag @s add voidwalker_blink.actor"
							}
						 },
						 {
							"type":"origins:target_action",
							"action":{
							   "type":"origins:grant_power",
							   "power":"voidwalker:blink_armor_stand_target",
							   "source":"voidwalker:blink_armor_stand_target"
							}
						 }
					  ]
				   },
				   "bientity_condition":{
					  "type":"origins:target_condition",
					  "condition":{
						 "type":"origins:and",
						 "conditions":[
							{
							   "type":"origins:entity_type",
							   "entity_type":"minecraft:armor_stand"
							},
							{
							   "type":"origins:nbt",
							   "nbt":"{Tags:[\"voidwalker_blink.target\"]}"
							}
						 ]
					  }
				   },
				   "include_actor":false
				},
				"miss_action":{
				   "type":"origins:execute_command",
				   "command":"title @s actionbar {\"text\": \"Cannot teleport! No blocks detected\", \"color\": \"red\"}"
				},
				"command_at_hit":"summon minecraft:armor_stand ~ ~0.5 ~ {Rotation:[0.0f,90.0f],Tags:[\"voidwalker_blink.target\"],Invisible:1b,Invulnerable:1b,Marker:1b}",
				"command_step":1.0,
				"command_along_ray_only_on_hit":false
			 }
		  ]
	   }
	},
	"cooldown":20,
	"hud_render":{
	   "should_render":true,
	   "sprite_location":"origins:textures/gui/community/huang/resource_bar_02.png",
	   "bar_index":9
	},
	"key":{
	   "key":"key.origins.primary_active",
	   "continuous":false
	}
}