Datapack
TerraAvatarPack
Create a datapack for me with the option to control the ground like in Avatar, which will be controlled with Shift and the left mouse button without objects or anything like that, and basically in a row that goes from 1-9, when I roll on 1 it does something, when I put on 2 it does something else, etc., and I have protection from falling from a height onto ground or sand always, and the powers will be, say, sending a block on the ground onto someone or creating a wall of earth, etc. (Talk to me in Hebrew)
data/terraavatar/functions/tick.mcfunction
execute as @a[scores={tav_select=1}] run function terraavatar:abilities/1
execute as @a[scores={tav_select=2}] run function terraavatar:abilities/2
execute as @a[scores={tav_select=3}] run function terraavatar:abilities/3
execute as @a[scores={tav_select=4}] run function terraavatar:abilities/4
execute as @a[scores={tav_select=5}] run function terraavatar:abilities/5
execute as @a[scores={tav_select=6}] run function terraavatar:abilities/6
execute as @a[scores={tav_select=7}] run function terraavatar:abilities/7
execute as @a[scores={tav_select=8}] run function terraavatar:abilities/8
execute as @a[scores={tav_select=9}] run function terraavatar:abilities/9
execute as @a[scores={tav_select=..0}] run scoreboard players set @s tav_select 1
execute as @a[scores={tav_select=10..}] run scoreboard players set @s tav_select 9
execute as @a[scores={tav_cooldown=1..}] run scoreboard players remove @s tav_cooldown 1
execute as @a at @s if entity @s[nbt={OnGround:1b}] if block ~ ~-1 ~ minecraft:sand run scoreboard players set @s tav_fallfall 0
execute as @a at @s if entity @s[nbt={OnGround:1b}] if block ~ ~-1 ~ minecraft:red_sand run scoreboard players set @s tav_fallfall 0
execute as @a at @s if entity @s[nbt={OnGround:1b}] if block ~ ~-1 ~ minecraft:dirt run scoreboard players set @s tav_fallfall 0
execute as @a at @s if entity @s[nbt={OnGround:1b}] if block ~ ~-1 ~ minecraft:grass_block run scoreboard players set @s tav_fallfall 0
execute as @a at @s if entity @s[nbt={OnGround:1b}] if block ~ ~-1 ~ minecraft:gravel run scoreboard players set @s tav_fallfall 0
execute as @a at @s if entity @s[nbt={OnGround:1b}] if block ~ ~-1 ~ minecraft:clay run scoreboard players set @s tav_fallfall 0
execute as @a at @s if entity @s[nbt={OnGround:1b}] if block ~ ~-1 ~ minecraft:stone run scoreboard players set @s tav_fallfall 0
execute as @a at @s if entity @s[nbt={OnGround:1b}] if block ~ ~-1 ~ minecraft:deepslate run scoreboard players set @s tav_fallfall 0
execute as @a[scores={tav_fallfall=1..},nbt={FallFlying:0b}] at @s if entity @s[nbt={OnGround:1b}] run function terraavatar:fall_protect