Solar's Block Display Vehicles
Fully customizable on-rails and controllable vehicles.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
Solar's Block Display Vehicles
This datapack enables controllable and on-rails vehicles that function seamlessly on singleplay and multiplayer alike. Most importantly, rather than a set of hand-built vehicles like many similar datapacks introduce, you are free to create virtually anything through the use of a block display entity editor such as Block Display Studio.
To summon a controllable vehicle (like a car): 1) Summon a block_display entity into the world. 2) Stand near the entity and execute /function sbdv:make_car OR 1) Execute /function sbdv:make_demo_car, and the supplied car model will spawn as a vehicle.
You can now right-click on the block display to ride it as you would ride a horse. Note: for best effect, make the origin on the X- and Z-axes of your entity where you would like the driver to sit. Make the origin on the Y-axis the ground plane. The entity should be oriented in the +X direction.
To summon an on-rails vehicle (like a train): 1) Create a minecart rail track in the path you would like the vehicle to take (using powered rails, detectors, etc as you would normally). 2) Summon a block_display entity into the world close to the rails. 3) Stand on the rails near the entity and execute /function sbdv:make_train
The entity will now travel along the tracks. Note: for best effect, run the minecart tracks below the ground. Set the origin of the Y-axis of your entity equal to the distance the track is buried beneath the ground. The entity should be oriented in the +X direction.
To delete all vehicles in a 16-block radius, execute /function sbdv:delete_nearby To delete all loaded vehicles, execute /function sbdv:delete_all Note: these commands will only delete entities that have been converted into vehicles using the commands above. Other block displays will not be removed.