Datapack developed by Solar_Centurion for use with the Terra1912 Server

Version 1.0

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.

© 2024. This work is openly licensed via CC BY-SA.