First of all you must add the function (you find it under the behavior packs section) into your world.

Then you follow these steps:

  1. Go into gamemode creative
  2. Give yourselfe a command block
  3. Set it to repeat and needs redstone
  4. Type in: /function travel_base
  5. Go into gamemode survival
  6. Place a redstone torch or block at the command block (so you can stop and start the function)
  7. Ready
  8. (Because the function creates a tickingarea, it works over the whole world)



Now you can build the following plans, which will spawn the different tents, camps and houses.
imagine this situation: you are traveling through your world far away from home and it will be night. So you need a little base where you are save and can stay over night.

For this you can build one of the following plans (at the next six pictures at the left side) and stand on the block where my figure stands.

The function proofes, if there is a plan and if the plan was built correct. If everything is ok the tent, camp or house (at the next six pictures at the right side) will be created at your position and the plan will be destroyed.
Note: You need exactly the same materials like at the screenshots

I finally made it: there are now 3 different versions of the function pack.

Version 1

  • Advantage: the function checks automatically if there is a plan and if the plan is right
  • Disadvantage: the plans have to be aligned in positive x-direction.

Normal simple tent:
materials: 3 cobblestone, 9 brown/grey/orange/lime/pink wool, 4 oak logs
costs: materials + xp (1 level –> you will lose one xp-level)

these different colours are possible:

For example this wouldn`t work, because the plan insn`t aligned in the right direction and so the function can`t find a right plan:


Jungle tent:

materials: 10 oak planks, 5 oak logs, 20 green wool
costs: materials + xp (2 level)


Desert tent:

materials: 1 cobblestone, 5 oak logs, 7 spruce planks, 23 brown wool, 1 (red) sandstone
costs: materials + xp (2 level)

Note: in a red desert, it looks exactly the same except the ground (the plan needs a red sandstone block instead of a normal sandstone block).

Igloo:
materials: 1 spruce planks, 8 blue ice, 16 packed ice
costs: materials + xp (2 level)

Note: here you don’t have to pay attention to the direction, because the plan looks the same in every direction.

Small camp:
materials: 24 oak logs, 4 spruce planks, 4 white wool, 3 cobblestone, 1 coal block
costs: materials + xp (3 level)


Big camp:

materials: 40 oak logs, 4 cobblestone, 5 white wool, 4 iron blocks, 1 emerald block, 23 spruce planks
costs: materials + xp (4 level)


Note: because you can´t create a normal double door with commands (everytime I tried, the door breaks), I use another possibility and so the door looks a bit different.

Modern tent:
materials: 25 grey wool, 12 light grey wool, 2 cobblestone, 1 iron blockcosts: materials + xp (2 level)
Teepee camp:
materials: 30 white wool, 2 green wool, 2 red wool, 2 orange wool, 12 cobblestone, 18 oak planks, 6 spruce logs, 1 emerald block
costs: materials + xp (3 level)


Note: the emerald block must be placed one block lower than the other blocks of the plan (in the ground)

Raft:
materials: 21 oak logs, 9 spruce planks, 5 white wool (and 35 water source blocks under the plan)
costs: materials + xp (2 level)



Caravan:
materials: 14 stone brick blocks, 6 dark oak planks, 10 quartz blocks, 10 light blue terracotta
costs: materials + xp (2 level)



Garden hut:
materials: 16 oak logs, 16 spruce planks, 9 oak planks
costs: materials + xp (2 level)

Note: here you don’t have to pay attention to the direction, because the plan looks the same in every direction.

Mesa house:
materials: 12 white terracotta, 12 light grey terracotta, 8 brick blocks, 4 spruce planks
costs: materials + xp (2 level)



Pink house:
materials: 5 white concrete, 5 pink concrete, 2 spruce planks, 12 birch planks
costs: materials + xp (2 level)



Small modern house:
materials: 16 grey concrete, 9 white concrete, 17 acacia planks, 7 grey stained glass blocks, 1 iron block
costs: materials + xp (3 level)

Version 2

  • Advantage: the function checks automatically if there is a plan and if the plan is right, the positive x-direction isn`t necessary  (all plans can be aligned in all 4 directions)
  • Disadvantage: can be a bit laggy when you build one of the bigger plans or if you stand on blocks which are similar to a bigger plan, to avoid some lags this version is a bit slower than the others (needs circa 2-3 seconds to check the plans)

Version 3

  • Advantage: the positive x-direction isn`t necessary  (all plans can be aligned in all 4 directions), much less laggier than version 2 (and only when the structure spawns)
  • Disadvantage: additional command required to prove if the plan is right

explanation for the disadvantage:
To avoid the most lags from version 2, I removed the timer which automatically checks the plans.
So if you built your plan and stand on the right position, type the function-command which fits together with the plan in the chat.

Normal simple tent:
     /function tent
Jungle tent:
                    /functionjungle_tent
Desert tent:
                    /functiondesert_tent
Igloo:
                                /functionigloo
Small camp:
                   /functionsmall_camp
Big camp:
                        /functionbig_camp
Modern tent:
                   /functionmodern_tent
Teepee camp:
                 /functionteepee_camp
Raft:
                                   /functionraft
Caravan:
                            /function caravan
Garden hut:
                      /function garden_hut
Mesa house:
                    /function mesa_house
Pink house:
                       /functionpink_house
Small modern house:
     /function small_modern_house–> for example:Note: for version 2 and 3 you don’t have to pay attention to the direction of the plan, but the structures always spawn in the same direction as in version 1
Finally, after you built the plan (you were standing at the right block), the base was created and the plan was destroyed, it looks like that:

Files:

1. Travel base v3

Download