MrGarretto's One-Command Creations

Giving the modded minecraft feeling to vanilla

RV Campers command
About this command
This command lets you create and drive your own RV camper in your world! The RV campers can drive at multiple speeds and can turn 360 degrees. CLICK HERE to download the resource pack for this command!
Show source commands


# RV Campers command
# Created by MrGarretto

INIT:tellraw @a ["",{"text":"The RV Campers Command ","color":"yellow","bold":true},{"text":"by MrGarretto","color":"red","bold":false},{"text":"\nhas been installed!","color":"gold"},{"text":"\n >> Click here to download the resource pack! <<","color":"blue","underlined":true,"clickEvent":{"action":"open_url","value":"http://www.mediafire.com/file/qarnmlm0u4e24se/RVPack.zip"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Download resource pack","color":"aqua"}]}}}]

INIT:scoreboard objectives add RVcr_I dummy
scoreboard players set @e[type=Item] RVcr_I 1 {Item:{id:"minecraft:furnace_minecart"},OnGround:1b}
scoreboard players set @e[type=Item] RVcr_I 2 {Item:{id:"minecraft:coal_block"},OnGround:1b}
execute @e[score_RVcr_I_min=1,score_RVcr_I=1] ~ ~ ~ execute @e[r=1,score_RVcr_I_min=2,score_RVcr_I=2] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:"minecraft:anvil",Count:1,tag:{display:{Name:"Engine",Lore:["Engine of an RV"]}}}}
execute @e[score_RVcr_I_min=1,score_RVcr_I=1] ~ ~ ~ execute @e[r=1,score_RVcr_I_min=2,score_RVcr_I=2] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 0.2 30
execute @e[score_RVcr_I_min=1,score_RVcr_I=1] ~ ~ ~ execute @e[r=1,score_RVcr_I_min=2,score_RVcr_I=2] ~ ~ ~ kill @e[type=Item,r=3,score_RVcr_I_min=1,score_RVcr_I=2]
scoreboard players set @e[type=Item] RVcr_I 3 {Item:{id:"minecraft:iron_block"},OnGround:1b}
scoreboard players set @e[type=Item] RVcr_I 4 {Item:{id:"minecraft:anvil",tag:{display:{Name:"Engine",Lore:["Engine of an RV"]}}},OnGround:1b}
execute @e[score_RVcr_I_min=3,score_RVcr_I=3] ~ ~ ~ execute @e[r=1,score_RVcr_I_min=4,score_RVcr_I=4] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:"minecraft:spawn_egg",Count:1,tag:{EntityTag:{id:ghast,CustomName:"RVSpawn"},display:{Name:"RV"}}}}
execute @e[score_RVcr_I_min=3,score_RVcr_I=3] ~ ~ ~ execute @e[r=1,score_RVcr_I_min=4,score_RVcr_I=4] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 0.2 40
execute @e[score_RVcr_I_min=3,score_RVcr_I=3] ~ ~ ~ execute @e[r=1,score_RVcr_I_min=4,score_RVcr_I=4] ~ ~ ~ kill @e[type=Item,r=3,score_RVcr_I_min=3,score_RVcr_I=4]

INIT:fill ~2 ~-2 ~-2 ~8 ~-2 ~2 stained_hardened_clay 0
INIT:fill ~2 ~3 ~-2 ~8 ~3 ~2 stained_hardened_clay 0

INIT:scoreboard objectives add RVsneak stat.sneakTime
INIT:scoreboard objectives add RVcd dummy
INIT:scoreboard objectives add RVspeed dummy
INIT:scoreboard objectives add RVturn dummy
INIT:scoreboard objectives add RVvillager stat.talkedToVillager
INIT:scoreboard objectives add RVdoorcd dummy
INIT:scoreboard objectives add RVactive dummy
INIT:scoreboard objectives add RVdamage dummy
INIT:scoreboard objectives add RVsound dummy
INIT:scoreboard teams add RVnocol
INIT:scoreboard teams option RVnocol collisionRule never
INIT:gamerule sendCommandFeedback false


# Driving sound
scoreboard players set @e[type=armor_stand,name=RV1,score_RVspeed=0] RVsound 0
execute @e[type=armor_stand,name=RV1,score_RVspeed=0] ~ ~ ~ stopsound @p neutral rv.drive
scoreboard players add @e[type=armor_stand,name=RV1,score_RVspeed_min=1] RVsound 1
execute @e[score_RVsound_min=1,score_RVsound=1] ~ ~ ~ playsound rv.drive neutral @a ~ ~ ~ 1000
scoreboard players set @e[score_RVsound_min=160] RVsound 0


# Placing the RV
# Spawn in boat chain
execute @e[type=ghast,name=RVSpawn] ~ ~ ~ summon boat ~ ~100 ~6 {CustomName:RVb5,NoGravity:1,Tags:["RVrot"],Passengers:[{id:armor_stand,Marker:1,Invisible:1,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{CustomName:RVfwd,id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{CustomName:RVfwd2,id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{CustomName:RVb4,id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{CustomName:RVb3,id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{CustomName:RVb2,id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],Passengers:[{id:area_effect_cloud,Duration:99999},{id:area_effect_cloud,Duration:99999,Passengers:[{id:Boat,Tags:["RVrot"],CustomName:RVb1}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}

# Spawning in parts of the RV
execute @e[type=ghast,name=RVSpawn] ~ ~ ~ summon armor_stand ~ ~ ~ {Tags:["RVrot","RVmodel"],NoGravity:1,Invisible:1,CustomName:RV1,ArmorItems:[{},{},{},{id:diamond_hoe,Count:1,Damage:1}],DisabledSlots:16}
execute @e[type=ghast,name=RVSpawn] ~ ~ ~ summon armor_stand ~ ~ ~ {Tags:["RVrot","RVmodel","RVdoorclosed"],NoGravity:1,Invisible:1,CustomName:RV2,ArmorItems:[{},{},{},{id:diamond_hoe,Count:1,Damage:3}],DisabledSlots:16,Passengers:[{id:villager,Silent:1,NoAI:1,Offers:{},Team:"RVnocol",ActiveEffects:[{Id:14,Amplifier:1,Duration:999999,ShowParticles:0b}]}]}
execute @e[type=ghast,name=RVSpawn] ~ ~ ~ summon armor_stand ~ ~ ~ {Tags:["RVrot","RVmodel"],NoGravity:1,Invisible:1,CustomName:RV3,ArmorItems:[{},{},{},{id:diamond_hoe,Count:1,Damage:4}],DisabledSlots:16}
execute @e[type=ghast,name=RVSpawn] ~ ~ ~ summon armor_stand ~ ~ ~ {Tags:["RVrot","RVmodel"],NoGravity:1,Invisible:1,CustomName:RV4,ArmorItems:[{},{},{},{id:diamond_hoe,Count:1,Damage:5}],DisabledSlots:16}
execute @e[type=ghast,name=RVSpawn] ~ ~ ~ summon armor_stand ~ ~ ~ {Tags:["RVrot","RVmodel"],NoGravity:1,Invisible:1,CustomName:RV5,ArmorItems:[{},{},{},{id:diamond_hoe,Count:1,Damage:7}],DisabledSlots:16}

execute @e[type=ghast,name=RVSpawn] ~ ~ ~ summon armor_stand ~ ~ ~ {Tags:["RVrot"],NoGravity:1,Invisible:1,CustomName:RVctrl,Rotation:[180f,30f]}

tp @e[type=ghast,name=RVSpawn] ~ ~-999 ~


# Keep all parts of the RV below the boat chain at all times
execute @e[type=boat,name=RVb1] ~ ~-100 ~ teleport @e[type=armor_stand,name=RV1,c=1] ~ ~-4.95 ~
execute @e[type=boat,name=RVb2] ~ ~-100 ~ teleport @e[type=armor_stand,name=RV2,c=1] ~ ~-3.3 ~
execute @e[type=boat,name=RVb3] ~ ~-100 ~ teleport @e[type=armor_stand,name=RV3,c=1] ~ ~-2.2 ~
execute @e[type=boat,name=RVb4] ~ ~-100 ~ teleport @e[type=armor_stand,name=RV4,c=1] ~ ~-1.1 ~
execute @e[type=boat,name=RVb5] ~ ~-100 ~ teleport @e[type=armor_stand,name=RV5,c=1] ~ ~0.175 ~


# Driving the RV
# Getting in / out
execute @a[score_RVsneak_min=5] ~ ~ ~ scoreboard players set @e[type=armor_stand,name=RV1,c=1,r=3] RVactive 5
execute @e[type=armor_stand,name=RV1] ~ ~ ~ scoreboard players tag @a[score_RVsneak_min=5,r=3] add RVdrive
execute @e[type=armor_stand,name=RV1] ~ ~ ~ scoreboard players set @a[score_RVsneak_min=5,r=3] RVcd 10
execute @e[type=armor_stand,name=RV2] ~ ~ ~ teleport @a[tag=RVdrive,score_RVsneak_min=5,score_RVcd=0] ~ ~1.5 ~
execute @a[tag=RVdrive,score_RVsneak_min=5,score_RVcd=0] ~ ~ ~ scoreboard players set @e[type=armor_stand,name=RV1,c=1] RVactive -5
tellraw @a[tag=RVdrive,score_RVsneak_min=5,score_RVcd=0] {"text":"\n\n\n\n\n\n\n\n\n\n\n\n\n"}
scoreboard players tag @a[tag=RVdrive,score_RVsneak_min=5,score_RVcd=0] remove RVdrive

scoreboard players set @a[score_RVsneak_min=5] RVsneak 0
scoreboard players remove @a[score_RVcd_min=1] RVcd 1
scoreboard players add @a RVcd 0

effect @a[tag=RVdrive] invisibility 1 1 true

# Spawn shulkers to raise the floor (RVactive_min=1 : Active ///// RVactive=0 : Not active)
scoreboard players add @e[type=armor_stand,name=RV1] RVactive 0
scoreboard players set @e[name=RV1,score_RVactive_min=0,score_RVactive=0] RVactive -20
execute @e[score_RVactive=-5,score_RVactive_min=-5] ~ ~ ~ execute @e[tag=RVmodel,c=5] ~ ~ ~ fill ~-2 ~ ~-2 ~2 ~ ~2 torch 1 destroy
scoreboard players tag @e[type=item] add RVtorch {Item:{id:minecraft:torch}}
execute @e[tag=RVtorch] ~ ~ ~ summon shulker ~ ~ ~ {Color:1,Tags:["RVshulker"],ActiveEffects:[{Id:11,Amplifier:5,Duration:10000000,ShowParticles:0b}],NoAI:1,Silent:1}
kill @e[tag=RVtorch]

# Removing old shulkers when RV becomes active
execute @e[score_RVactive_min=5,score_RVactive=5] ~ ~ ~ execute @e[tag=RVmodel,c=5] ~ ~ ~ tp @e[tag=RVshulker,r=6] ~ ~-999 ~

scoreboard players remove @e[score_RVactive_min=2] RVactive 1
scoreboard players add @e[score_RVactive=-2] RVactive 1

# Crashing into things
execute @e[type=armor_stand,name=RV1,score_RVactive_min=1,score_RVactive=5] ~ ~ ~ execute @e[tag=RVmodel,c=5] ~ ~ ~ fill ~-2 ~1 ~-2 ~2 ~3 ~2 air 0 destroy
# accfor = already accounted for
execute @e[tag=RVmodel] ~ ~ ~ execute @e[type=item,tag=!RVaccfor] ~ ~ ~ scoreboard players add @e[type=armor_stand,name=RV1,c=1,r=12,score_RVactive=5] RVdamage 1
execute @e[tag=RVmodel] ~ ~ ~ execute @e[type=item,tag=!RVaccfor] ~ ~ ~ execute @e[tag=RVmodel,c=5,r=12] ~ ~ ~ particle explode ~ ~ ~ 0 0 0 1 40
execute @e[tag=RVmodel] ~ ~ ~ scoreboard players tag @e[type=item,tag=!RVaccfor] add RVaccfor

# Controls
execute @a[tag=RVdrive] ~ ~ ~ tp @a[tag=RVdrive,c=1] @e[type=armor_stand,name=RVctrl,c=1]
# tp @a[tag=RVdrive] ~ ~ ~ ~180 ~30
execute @a[tag=RVdrive] ~ ~100 ~ execute @e[type=boat,name=RVb4,c=1] ~ ~-100 ~ teleport @e[type=armor_stand,name=RVctrl,c=1] ~ ~6 ~

tellraw @a[tag=RVdrive] ["",{"text":"\n\n\n\n\n\n\n\n\n "},{"text":"----- RV Steering and Acceleration -----","color":"yellow","bold":true,"underlined":true},{"text":"\n\n [<<<]","color":"dark_green","clickEvent":{"action":"run_command","value":"/scoreboard players set @e[type=armor_stand,name=RV1,score_RVspeed_min=1] RVturn -20"},"bold":false,"underlined":false},{"text":" [<] ","color":"green","clickEvent":{"action":"run_command","value":"/scoreboard players set @e[type=armor_stand,name=RV1,score_RVspeed_min=1] RVturn -8"}},{"text":"[BRAKE]","color":"red","clickEvent":{"action":"run_command","value":"/scoreboard players remove @e[type=armor_stand,name=RV1,score_RVspeed_min=1] RVspeed 1"}},{"text":" [GAS] ","color":"gold","clickEvent":{"action":"run_command","value":"/scoreboard players add @e[type=armor_stand,name=RV1,score_RVspeed=1] RVspeed 1"}},{"text":"[>] ","color":"green","clickEvent":{"action":"run_command","value":"/scoreboard players set @e[type=armor_stand,name=RV1,score_RVspeed_min=1] RVturn 8"}},{"text":"[>>>]\n\n","color":"dark_green","clickEvent":{"action":"run_command","value":"/scoreboard players set @e[type=armor_stand,name=RV1,score_RVspeed_min=1] RVturn 20"}}]

scoreboard players add @e[type=armor_stand,name=RV1] RVspeed 0

execute @e[type=armor_stand,name=RV1,score_RVspeed_min=1,score_RVspeed=1] ~ ~100 ~ execute @e[type=boat,name=RVfwd,c=1,r=20] ~ ~ ~ teleport @e[type=boat,name=RVb5,c=1] ~ ~-0.175 ~
execute @e[type=armor_stand,name=RV1,score_RVspeed_min=2] ~ ~100 ~ execute @e[type=boat,name=RVfwd2,c=1,r=20] ~ ~ ~ teleport @e[type=boat,name=RVb5,c=1] ~ ~-0.45 ~

# Driving UP hills
scoreboard players tag @e[type=armor_stand,name=RV1,score_RVactive_min=1] add RVup
execute @e[type=armor_stand,name=RV1,score_RVactive_min=1] ~ ~ ~ detect ~ ~ ~ air 0 scoreboard players tag @e[name=RV1,c=1,r=0] remove RVup
execute @e[name=RV1,tag=RVup] ~ ~100 ~ tp @e[tag=RVrot,name=RVb5,r=15] ~ ~1 ~

# Driving DOWN hills
execute @e[type=armor_stand,name=RV1,score_RVactive_min=1] ~ ~ ~ detect ~ ~-1 ~ air 0 execute @e[name=RV1,c=1,r=0] ~ ~100 ~ tp @e[tag=RVrot,name=RVb5,r=15] ~ ~-1 ~

# Turning smoothly
execute @e[type=armor_stand,name=RV1,score_RVturn=-1] ~ ~ ~ tp @e[tag=RVrot] ~ ~ ~ ~-1 ~
execute @e[type=armor_stand,name=RV1,score_RVturn_min=1] ~ ~ ~ tp @e[tag=RVrot] ~ ~ ~ ~1 ~
scoreboard players add @e[type=armor_stand,name=RV1,score_RVturn=-1] RVturn 1
scoreboard players remove @e[type=armor_stand,name=RV1,score_RVturn_min=1] RVturn 1

# Opening and closing the door
scoreboard players add @e[type=armor_stand,name=RV2] RVdoorcd 0
execute @e[type=armor_stand,name=RV2] ~ ~ ~ execute @a[r=6,score_RVvillager_min=1] ~ ~ ~ playsound rv.door neutral @a ~ ~ ~
execute @a[score_RVvillager_min=1] ~ ~ ~ scoreboard players set @e[type=armor_stand,name=RV2,r=6,tag=!RVdoorclosed] RVdoorcd 5
execute @a[score_RVvillager_min=1] ~ ~ ~ scoreboard players tag @e[type=armor_stand,name=RV2,r=6,tag=!RVdoorclosed] add RVdoorclosed
execute @a[score_RVvillager_min=1] ~ ~ ~ scoreboard players tag @e[type=armor_stand,name=RV2,r=6,tag=RVdoorclosed,score_RVdoorcd=0] remove RVdoorclosed
entitydata @e[type=armor_stand,name=RV2,tag=!RVdoorclosed] {ArmorItems:[{},{},{},{id:diamond_hoe,Count:1,Damage:8}]}
entitydata @e[type=armor_stand,name=RV2,tag=RVdoorclosed] {ArmorItems:[{},{},{},{id:diamond_hoe,Count:1,Damage:3}]}
scoreboard players reset @a RVvillager
scoreboard players remove @e[type=armor_stand,name=RV2,score_RVdoorcd_min=1] RVdoorcd 1

# Damaged RV
execute @e[type=armor_stand,name=RV1,score_RVdamage_min=600] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 0.1 1
execute @e[type=armor_stand,name=RV1,score_RVdamage_min=800] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 0.2 1
execute @e[type=armor_stand,name=RV1,score_RVdamage_min=1000] ~ ~100 ~ kill @e[tag=RVrot,r=20]
execute @e[type=armor_stand,name=RV1,score_RVdamage_min=1000] ~ ~ ~ kill @e[type=villager,c=1]
execute @e[type=armor_stand,name=RV1,score_RVdamage_min=1000] ~ ~ ~ scoreboard players tag @a[tag=RVdrive,r=8] remove RVdrive
execute @e[type=armor_stand,name=RV1,score_RVdamage_min=1000] ~ ~ ~ kill @e[tag=RVmodel,c=5]




For Minecraft version 1.11.2
Click here for other versions of this command!
How to use
Give yourself a command block with /give @p command_block. Place it then paste the command from below into it. One command creations are similar to Minecraft mods, but are much easier to add to your world!
Click here for other versions of this command!