Essential Commands

Essential Commands

108k Downloads

Suggestion - RTP Min Radius

Laifsyn opened this issue · 4 comments

commented

So if you don´t want people having that 0 in a million chance of spawning 1 block away from server spawn

commented

Also a rtp center option

commented

0 in a million chance of spawning 1 block away from server spawn

Er, with the current implementation, it is a literal 0% chance.

RTP destinations are selected the set of points on the perimeter of the circle with radius RTP_RADIUS. (not from the set of points within the circle)

The RTP position selection code:

int r = CONFIG.RTP_RADIUS.getValue();
final double angle = (new Random()).nextDouble()*2*Math.PI;
final double delta_x = r * Math.cos(angle);
final double delta_z = r * Math.sin(angle);

// center = sever spawn position
final double new_x = center.pos.x + delta_x;
final double new_z = center.pos.z + delta_z;

Is this something that you observed? (There were some strange bugs with RTP reported recently. Some have been resolved already. Some I am patching soon. Could be related to one of these if so.)

commented

Also a rtp center option

Doable. Will add this soon. Tracking in #96

commented

Closing, as this should already be effectively implemented. Feel free to reopen if issues relating to this arise.