{


    {
        "type": "apoli:execute_command",
        "command": "scale multiply pehkui:motion 5 @s"
    },
    {
        "type": "apoli:execute_command",
        "command": "scale multiply pehkui:step_height 0.2 @s"
    },
    {
        "type": "apoli:execute_command",
        "command": "scale multiply pehkui:jump_height 0.2 @s"
    }

}

{
                    "type": "apoli:execute_command",
                    "command": "scale multiply pehkui:motion .2 @s"
                },
                {
                    "type": "apoli:execute_command",
                    "command": "scale multiply pehkui:step_height 5 @s"
                },
                {
                    "type": "apoli:execute_command",
                    "command": "scale multiply pehkui:jump_height 5 @s"
                }


"type": "apoli:action_over_time",
    "interval": 1,
    
    "falling_action": {
        "type": "apoli:and",
        "actions":[
            {
                "type": "origins:execute_command",
                "command": "say test"
            },
            {
                "type": "origins:fire_projectile",
                "entity_type": "minecraft:arrow",
                "divergence": 30.0,
                "count": 100,
                "speed": 1
            }
        ],
        "condition":{
            "type": "origins:command",
            "command": "execute if entity @s[x_rotation=-90]",
            "comparison": "==",
            "compare_to": 1
        }
    },
    "condition": {
        "type": "apoli:and",
        "conditions": [
            {
                "type": "apoli:using_item",
                "item_condition": {
                "type": "apoli:ingredient",
                "ingredient": [
                    {
                        "item": "minecraft:bow"
                    }   
                ]
                }
            },
            {
                "type": "origins:command",
                "command": "execute if entity @s[x_rotation=-90]",
                "comparison": "==",
                "compare_to": 1
            }
        ]

    }




"no_bow":{
        "type": "origins:prevent_item_use",
        "item_condition": {
            "type": "apoli:ingredient",
            "ingredient": [
                {
                    "item": "minecraft:bow"
                }
            ]
        },
        "condition":{
            "type": "origins:command",
            "command": "execute if entity @s[x_rotation=-90]",
            "comparison": "==",
            "compare_to": 1
        }
    }


                    {
                    "type": "origins:fire_projectile",
                    "entity_type": "minecraft:arrow",
                    "divergence": 30.0,
                    "count": 100,
                    "speed": 1

                }



"fire_full_charge":{
        "type": "origins:action_on_item_use",
        "trigger": "stop",
        "entity_action": {
            "type": "apoli:and",
            "actions":[
                {
                    "type": "origins:fire_projectile",
                    "entity_type": "minecraft:arrow",
                    "tag": "{Tags:['lookupproj']}",
                    "divergence": 30.0,
                    "count": 100,
                    "speed": 1
                }
            ]
        },
        "item_condition": {
            "type": "apoli:ingredient",
            "ingredient": [
                {
                    "item": "minecraft:bow"
                }
            ]
        },
        "condition":[
            {
                "type": "origins:command",
                "command": "execute if entity @s[x_rotation=-90]",
                "comparison": "==",
                "compare_to": 1
            },
            {
                "type": "apoli:resource",
                "resource": "*:charge_shot_hold_time",
                "comparison": ">=",
                "compare_to": 50
            }
        ] 
    }
    


    ,
	"condition":[
		{
			"type": "origins:dimension",
    		"dimension": "minecraft:overworld"
		}
	]



{
					"type": "origins:delay",
					"ticks": 10,
					"action": {
						"type":"origins:execute_command",
						"command":"function summerwick_origin:respawn"
					}
				},


                		"condition":[
            {
                "type": "apoli:resource",
                "resource": "*:*_cooldownrespawn",
                "comparison": "==",
                "compare_to": 0
            }
        ]\


				{
					"type": "origins:delay",
					"ticks": 10,
					"action": {
						"type":"origins:execute_command",
						"command":"function summerwick_origin:respawn"
					}
				}


,
				{
					"type":"origins:execute_command",
					"command":"effect give @s minecraft:resistance infinite 4 true"	
				},
				{
					"type": "origins:delay",
					"ticks": 10,
					"action": {
						"type":"origins:execute_command",
						"command":"function summerwick_origin:respawn"
					}
				}


{
	"name": "funny respawn",
    "description": "keep inventory but not",
    "hidden": false,
	"type":"apoli:multiple",
	"keepinv": {
		"type": "origins:keep_inventory"
	},
	"respawn":{
		"type":"origins:prevent_death",
		"entity_action":{
			"type":"origins:and",
			"actions":[
				{
					"type":"origins:execute_command",
					"command":"kill @s"
				}
				
			]
		},
		"damage_condition": {
			"type": "origins:name",
			"name": "out_of_world",
			"inverted": true
		}
	}
}




    "standing": {
        "type": "origins:model_color",
        "alpha": 0.01,
        "condition": {
            "type": "origins:moving",
            "inverted": true
        }
    }




    "standingfix": {
        "type": "origins:action_over_time",
        "interval": 1,
        "entity_action": {
            "type": "origins:apply_effect",
            "effect": {
                "effect": "minecraft:invisibility",
                "duration": 2,
                "amplifier": 0,
                "show_particles": false,
                "show_icon": false
            }
        },
        "condition": {
            "type": "origins:moving",
            "inverted": true
        }
    },



{
					"type": "origins:apply_effect",
						"effects": [
							{
								"effect": "minecraft:hunger",
								"amplifier": 1,
								"duration": 1200,
								"show_particles": false,
                        		"show_icon": true
							},
							{
								"effect": "minecraft:weakness",
								"amplifier": 2,
								"duration": 3600,
								"show_particles": false,
                        		"show_icon": true
							},
							{
								"effect": "minecraft:slowness",
								"amplifier": 0,
								"duration": 3600,
								"show_particles": false,
                        		"show_icon": true
							}
						]
				}



	"longeffects": {
        "type": "origins:action_over_time",
        "interval": 1,
        "entity_action": {
            "type": "origins:apply_effect",
			"effects": [
				{
					"effect": "minecraft:weakness",
					"amplifier": 0,
					"duration": 20,
					"show_particles": false,
					"show_icon": true
				},
				{
					"effect": "minecraft:slowness",
					"amplifier": 0,
					"duration": 20,
					"show_particles": false,
					"show_icon": true
				}
			]
		},
        "condition": {
			"type": "apoli:resource",
			"resource": "*:*_timesincedeath",
			"comparison": ">",
			"compare_to": 0
		}


        ,
	"shorteffect": {
        "type": "origins:action_over_time",
        "interval": 1,
        "entity_action": {
            "type": "origins:apply_effect",
            "effect": {
                "effect": "minecraft:hunger",
                "duration": 20,
                "amplifier": 0,
                "show_particles": false,
                "show_icon": true
            }
        },
        "condition": {
			"type": "apoli:resource",
			"resource": "*:*_timesincedeath",
			"comparison": ">",
			"compare_to": 0
		}
    }


	"timesincedeath": {
        "type": "origins:cooldown",
        "cooldown": 3600,
        "hud_render": {
            "should_render": true
        }
    },