Tutorial viewed            times

/kill @e[tag=TENT]

/execute @e[name=TENT3] ~ ~-1.5 ~ tp @a[r=1,ry=22,rym=-22] ~ ~-29 ~

2- Command blocks

If you did any mistake or want to place the tent elsewhere, copy and paste in chat (or in a command block) the command from step 1.


STEP TWO:

​ ▶ [Set on 'repeating', and 'always active'] The first command block (the one at the bottom) Detects when a player that is facing SOUTH gets close to the tent. If so happens, it teleports that player 29 blocks down. You can change "29" with any number you want: this will determine how deep the "big" tent will be. Remember that if you change that number, you will have to change it in the second command as well.


 ▶ [Set on 'chain', and 'always active'] The second command block does the same exact thing but this time is detecting players facing NORTH that are 29 blocks under the tent (if you changed the "29" in the first command block you will have to change both the "29s" present in this command block). If players are detected, then they will be teleported back 29 (or the number you decided to put) blocks up.


COMMANDS FOR THE VARIOUS ENTITIES USED TO ASSEMBLY THE TENT:

After making a pillar like I did in the video, please paste these commands in order from the bottom command block to the top one.


/summon ArmorStand ~-4 ~.2 ~10 {CustomName:"TENT1",Tags:["TENT"],Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:banner,Count:1,tag:{BlockEntityTag:{Base:2,Patterns:[{Pattern:gru,Color:10}]}}}],DisabledSlots:2039583,Rotation:[-90f,0f],Marker:1,Pose:{Head:[200f,0f,0f]}}


/summon ArmorStand ~-4 ~-.8 ~10.78 {CustomName:"TENT1",Tags:["TENT"],Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:banner,Count:1,tag:{BlockEntityTag:{Base:2,Patterns:[{Pattern:gru,Color:10}]}}}],DisabledSlots:2039583,Rotation:[-90f,0f],Marker:1,Pose:{Head:[200f,0f,0f]}}


/summon ArmorStand ~-3.98 ~-1.8 ~10 {CustomName:"TENT1",Tags:["TENT"],Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:banner,Count:1,tag:{BlockEntityTag:{Base:2,Patterns:[{Pattern:gru,Color:10}]}}}],DisabledSlots:2039583,Rotation:[90f,0f],Marker:1,Pose:{Head:[200f,0f,0f]}}


/summon ArmorStand ~-3.98 ~-2.8 ~10.78 {CustomName:"TENT1",Tags:["TENT"],Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:banner,Count:1,tag:{BlockEntityTag:{Base:2,Patterns:[{Pattern:gru,Color:10}]}}}],DisabledSlots:2039583,Rotation:[90f,0f],Marker:1,Pose:{Head:[200f,0f,0f]}}


​/summon ArmorStand ~-3.98 ~-3.9 ~11.35 {CustomName:"TENT1",Tags:["TENT"],Marker:1b,Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:banner,Count:1,tag:{BlockEntityTag:{Base:0,Patterns:[]}}}],DisabledSlots:2039583,Pose:{Head:[180f,0f,0f]},Rotation:[180f,0f]}


​/summon ArmorStand ~-3.98 ~-4.9 ~9.45 {CustomName:"TENT3",Tags:["TENT"],Marker:1b,Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:banner,Count:1,tag:{BlockEntityTag:{Base:0,Patterns:[]}}}],DisabledSlots:2039583,Pose:{Head:[180f,0f,0f]}}


/summon ArmorStand ~-3.7 ~-4.4 ~9.2 {CustomName:"TENT4",UUIDLeast:1L,UUIDMost:2L,Marker:1b,Invisible:1,NoGravity:1,Tags:["TENT"]}


​/summon Bat ~-4 ~-10 ~5.5 {CustomName:"TENTBAT",Invulnerable:1,Leashed:1,Leash:{UUIDLeast:1L,UUIDMost:2L},NoAI:1,Silent:1,ActiveEffects:[{Id:25,Amplifier:-1,Duration:199999980,ShowParticles:0b}],Tags:["TENT"]}


​/summon ArmorStand ~-3.3 ~-6.4 ~10.6 {CustomName:"TENT5",UUIDLeast:3L,UUIDMost:4L,Marker:1b,Invisible:1,NoGravity:1,Tags:["TENT"]}


/summon Bat ~-4 ~-12 ~14.5 {CustomName:"TENTBAT",Invulnerable:1,Leashed:1,Leash:{UUIDLeast:3L,UUIDMost:4L},NoAI:1,Silent:1,ActiveEffects:[{Id:25,Amplifier:-1,Duration:199999980,ShowParticles:0b}],Tags:["TENT"]}​​

/execute @e[name=TENT3] ~ ~-29 ~-1 tp @a[r=1,ry=-158,rym=158] ~ ~29 ~

MAGIC TENTS

1- Use this command to REMOVE the tent