gcewing / SGCraft

Stargates mod for Minecraft
http://www.cosc.canterbury.ac.nz/greg.ewing/minecraft/mods/SGCraft/
MIT License
11 stars 50 forks source link

[Suggestion] Stargate disconnect by itself (only on some conditions) #10

Open ExDomino opened 8 years ago

ExDomino commented 8 years ago

If a stargate has no computer interface connected to it, and has a DHD, the vortex will be close by itself if there is nobody inside the DHD range after that one object (player or item) has pass throught the vortex one first time. If onyWayTravel=true, only the departure stargate is check, if oneWayTravel=false, arrival stargate is check as well. If a portable DHD is used, when the portable DHD leave the range, the stargate is closed instantantely, either if the player has leaved the range or passed throught the vortex (if oneWayTravel=true), even if there is other players inside the DHD range of the departure stargate. All living entities are detected by the DHD, as well as OpenComputers and PneumaticCraft drones.

Edit: You can make that the check range is the double of the DHD range. I think it could be more useful to prevent vortex closing by accident. The closing event only occurs if there is no computer interface connected to the stargate.