Hello, I often would play games with my friends on my private server including pushing each other around in the game, like off cliffs, into holes, and onto a spot. Since an update, however, I have not been able to do this because collision between players no longer exists in Minecraft. I would like a plugin that adds back this collision feature into Minecraft for my server. BASICS; WHAT IT IS A simple plugin to add collision between players, so that they may push each other around as they did a few updates ago and as they can still do with mobs and monsters. COMMANDS (OPTIONAL) I was thinking that perhaps there could be commands to enable and dissable collision for players, so they could be like this: /collision enable and /collision disable WHEN I WANT IT BY as soon as possible please Boomp EDIT by Moderator: merged posts, please use the edit button instead of double posting.
It's theoretically possible to do server-side in a plugin, but it would take up a lot of CPU and would not be very smooth or accurate.
Necro Bump - I find this to be an interesting topic at the moment, was looking into it for an idea or two, would like to see a comment or two from some more devs with better logic for yes/no that whats in the thread above.
What's wrong with necroing an old request? It's better than creating a new thread for exactly the same thing. Now, to do this you'd have to a) Use NMS, and onPlayerMove check the bounding boxes for collisions with the other online players. If they intersect, increase both players velocities slightly in the opposite directions, OR increase the velocity of the player that didn't move away from the one that did. Overall, pretty simple codewise.. But it may be CPU intensive depending on the amount of people on the server.
If you make an array with everyone inside of the server inside of it then used Player players : <array name> and also used if(player.getlocation() = players.getlocation()){} inside of a player move event you could make this right?
dajako No, that would not work properly and be incredibly innefficient, my way listed above is the best way to do this