execute as @a at @s if entity @e[type=minecraft:creeper,distance=..1.5] run effect give @p minecraft:poison 30 1 false
I improvised and changed it into aura instead, I will play with this until I found out how to do it properly.
Thanks for pointing me in the datapack direction, because eventually, I will need % chance to, timer = every 300 seconds, player login trigger, check player inventory, player summon lightning bolt when shooting bow, player gain 1 extra wheat when harvesting wheat for every 1000 wheat player has harvested.
As I dun think command block can do all that, at least in an efficient sense, repeating all these commands every tick sounds crazy to me.
I was simply trying to relive nostalgia of playing minecraft, so I let myself work on the task of 3 months of learning most typing commands.
Then, I realized I need to automate commands with command blocks, and this blow away my mind, learning all the command blocks and redstone builds requires about 3 years, taking into account that I am busy in real life.
Then, today I realized I need to start learning datapacks because I am not going to pay someone to do it every time the datapack breaks or that the free datapack's owner becomes busy in real life and stop updating, thus learning to do datapacks in tandem with command blocks, redstone builds and typing commands will take me approximately 9 years.
At this point, you are probably wondering why I am not quitting this game, and play other more fun and easy computer games instead.
Because, I do not have a graphic card, tee hee.