Super Effect
This tutorial I will show how to make the magic carpet v1. If you haven't seen the previous page about magic carpet I suggest doing that as we are going to build off of that.
Get your magic carpet commands and place them down. The only modification to them is to change "red_wool" to "barrier" in the first two command blocks. Now we can build off of them.
​
One of the main features is that all players are slowed down in a 5 block radius. These players cannot be tagged carpet or super however. The carpet is the tag for the magic carpet and super is the tag for the super effect. execute at @a[tag=!carpet,tag=!super] if entity @e[tag=super,distance=..5] run effect give @p slowness 1 5 true is the command. Let's break it down. We have an execute at all players who aren't tagged carpet or super. Then if a super entity is within a radius of 5 give it the nearest player slowness 6 for one second with no particles. Why didn't I use as aswell and then @s? Because the nearest player from the position of a player is always that player. In this case @p is @s and I don't need as. Effects amplifier are increased by one so even though I put slowness 5 it gave it slowness 6. Since this command runs 20 times per second I give it the smallest duration so that it doesn't last much longer after it the command stops running.
​
The next part is projectile immunity. I will make a more basic one you can customize it more. We will kill any projectile in a radius of 5 blocks. Unfortunately that is not possible in one command block. We have to use 1 per every entity. For my example I will use fireballs. To make more just rewrite this command and change "fireball" to the other entities. The command is execute at @e[tag=super] run kill @e[type=fireball,distance=..5]. This will kill any fireball in a radius of 5 of any super effected mob.
​
The last feature is any pig with the super effect transform any nearby cows into a pig. I have mentioned I would summon a pig and have it tagged but I forgot to do that in the release but I will do it here. This feature will take up 3 command blocks. The first one will be execute at @e[type=cow] if entity @e[type=pig,tag=super,distance=..5] run summon pig ~ ~ ~. The second will be similar execute at @e[type=cow] if entity @e[type=pig,tag=super,distance=..5] run tag @e[type=pig,tag=!super,distance=..5] add super. It is different. It has a more advanced selector in the running command. This is because I only want to tag pigs that aren't tagged in a radius of 5. There is a slight problem that any normal pigs in a radius of 5 even if they are not spawned will become super pigs but that doesn't really affect the game too much and it is rare. The final command will teleport the cow to right under bedrock. Normally I would teleport it to y = -1 but now I am doing y = -5 so if somehow a pig was on bedrock the cow would be out of radius (to be on bedrock you have a y of 1 and -5 is 6 blocks out). The final command is execute at @e[type=pig,tag=super] run tp @e[type=cow,distance=..5] ~ -5 ~. This time it executes at the pig not cow.
​
The command blocks are all chain always active that we made. (The first 3 we will leave as normal).