eirikh1996 / Movecraft

The original movement plugin for Bukkit. Reloaded. Again.
GNU General Public License v3.0
33 stars 7 forks source link

Check if water always in contact when moving. #92

Open kyle-vasilia opened 3 years ago

kyle-vasilia commented 3 years ago

Hello, I'm using this for a 1.16.4 server I run. Ships that are not supposed to float are able to with an easy glitch - people are able to easily glitch this out by making a ship floating above water, pouring a bucket of water on the edge of the ship and piloting it - it pilots find - I've tested this myself.

I'm not sure the best solution for this would to be? Maybe check if it's in contact every move? Or maybe check if it covers the bottom? It's a huge issue and it's going to break the server a lot if abused like this. Is there a feature built in for this?

wolfebersahd commented 3 years ago

Hi, I'm not the dev here but i might have a workaround for you that i use on my server.

Set a max height and min height (the min height being the lowest a ship and be at usually 2-3 blocks below your server's water level, and then set UseGravity: True any ships that are piloted in the air with your bucket trick will sink down every move until the hit the min height value.

Checking if in contact with water every move will just add more check and calculation to movecraft and make it run slower, or take up too much server resources.