mojira.dev
MC-277906

Ender pearls landing incorrectly at high speeds

Ender pearls landing incorrectly at high speeds

 

When at high speeds, ender pearls land in the wrong position. This seems to have become a problem in 24w39a. This is shown in the attached videos. To test this, I used an ender pearl cannon, which I have also left a world download for versions 1.21.1 and 1.21.3. One possible solution I found I implemented into a fabric mod https://github.com/Thedustbustr/Carpet-Extra-Extras/blob/release(1.21.3-b1.1.0)/src/main/java/net/thedustbuster/mixin/ThrowableProjectileMixin.java and https://github.com/Thedustbustr/Carpet-Extra-Extras/blob/release(1.21.3-b1.1.0)/src/main/java/net/thedustbuster/mixin/ThrownEnderpearlMixin.java. It seems to have to do with in which order the pearl's collision is detected and when the pearls position/velocity are changed.

 

World Download: https://drive.google.com/file/d/1_Ajm-xBFWStn9t06yEdqrNj9BdMqzgbj/view?usp=sharing

 

Steps to reproduce:

  1. In some way (in my case an ender pearl cannon) get an ender pearl to very high speeds.

  2. See the players landing position.

  3. In 1.21.1, it was far more accurate.

Related issues

Attachments

Comments

migrated
[media][media]
Viradex

How do I operate the machine in the world download?

migrated

The cannon should be aimed properly at "Mobcap" in all of the world downloads, so you should not have to interact with any of the buttons or the panel. Instead, all you should need to do it step into the North-West corner of the ender pearl aligner, which is the the area where there are 2 trapdoors on the wall and a sea lantern on the floor. Then look straight up, and throw an ender pearl. If there is any more confusion the videos I attached show me using it.

If you need to change where the cannon aims, do the following:
On the display opposite to where the pearl aligner is, the lit redstone lamp will show its selected location. You can move its selection by using the buttons on the side and bottom. The side buttons changed the row that should be selected, and the bottom buttons select the column that should be selected. Once you have selected where you want to go, press the button on the gold block labeled "Calibrate." The machine will aim itself, and when complete a note block will chime.

I only have 2 locations programed into the display. "1 mil hub" will aim the cannon to x:125000 and z:0. "Mobcap" will aim the cannon at x:1000 z:-1000.

Some things to note:

  • In the 1.21.3 version, it is more complicated to use the "1 mil hub" location as I have not fully implemented the degree change automatically. You would have to redirect the redstone going into the command blocks to go through the piston system (the piston extends to allow the redstone signal to pass through) instead of the repeater.

  • Also because of the changes to the order in which an ender pearl's motion is calculated during a tick in 1.21.3, I had to re-design the pearl aligner, but it is not perfect. So in 1.21.3, the "1 mil hub" will land you about 2k block short at x:123000.

  • In 1.21.1, the system is fully functional and any of the notes above can be disregarded.

  • For testing purposes, if you need to get back to the pearl cannon quickly, just use this command "/execute in minecraft:the_nether run tp @s 0 134 0"

  • You may experience significant lag on vanilla clients

migrated

(Unassigned)

Confirmed

Platform

Important

Projectiles

1.21.3, 1.21.4

Retrieved