Go to file
bmgjet 5292316547
screenshot
2021-07-04 13:16:39 +12:00
BCargo.cs Update 1.0.3 2021-07-04 13:12:19 +12:00
README.md Create README.md 2021-06-19 02:26:18 +12:00
screenshotbcargo.jpg screenshot 2021-07-04 13:16:39 +12:00

README.md

BCargo
Blocks Cargoship from leaving while it is within a building blocked area.
Allows to set a static spawn position for the cargo to stop it running though islands on its way into the nearest path node or to have it come down a river
Add support for auto leveling of cargo when using tides plugin to stop it sinking below water level or flying in the air.

How to use:
In your map editor. Stretch out some prevent building cubes along the part of the path you dont want cargo ship to exit on.
It will continue along its path until its X distance from the prevent building cube before it leaves to the nearest edge.
This stops it just running though the land and destroying any buildings on its way to the edge.


spacer.png

To set a static spawn location for cargo incase you lots of islands on the outside of cargoships path or you want it to come down a river first.
Go to that location as a player with the BCargo.admin permission. Then type /setbcargo and it will set that as its static spawn location.
Then enable the function within the config json file.
("Override random cargo spawn point : ": true,)

If you are using the tides plugin you will have the issue of the cargoship stays at the same height as when it spawned. This means it will sink under water if it spawned at low tide. Or fly in the air if it spawned at high tide.
Enabling this function will allow it to auto reheight as its traveling its path.
( "Enable auto leveling for tides plugin : ": true,)


Permissions: (Needed for chat commands)
BCargo.admin

Chat commands:
/setbcargo = Sets cargoship to spawn to players current location instead of random offshore location.
/reloadbcargo = Reloads the json config file.