High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies https://papermc.io/
Find a file
Spottedleaf 416a733048 Apply coordinate offset only to VoxelShape
VoxelShape coordiantes generally are an integer + a sum of powers of
two between [-1, -3]. Most offsets are generally an integer. As
a result, applying an offset to the coordinates generally results
in an error of 0. However, coordinate inputs do not follow such
trends. Thus, when applying an offset to the coordinate input,
there may be some floating point error.

By applying the offset to the VoxelShape coordinates, we can
eliminate additional floating point error.

This change also fixes the inconsistency when using
the single AABB, as input coordinates were not offset
when using the single AABB as the single AABB is already
offset.

Fixes https://github.com/Tuinity/Moonrise/issues/81
This specific issue is caused by floating point error resulting
in the falling anvil's y position becoming around -8E-17 when it
should be 0.
While this is still very comfortably in the collision
epsilon (1.0E-7), this results in the falling anvil's y block
position to become -1 (as the block position is simply
the floor of the coordinate).
2024-12-04 02:52:58 -08:00
.github Bump dawidd6/action-download-artifact from 3 to 6 in /.github/workflows (#11666) 2024-11-25 16:03:18 +00:00
build-data Update WorldServer#serverlevelData mapping 2024-10-26 15:11:09 +01:00
gradle/wrapper Update paperweight and Gradle wrapper 2024-12-03 20:28:39 -07:00
licenses [ci skip] add missing final newline (#8659) 2022-12-13 14:16:45 +01:00
paper-api-generator Set java launcher for api generate task 2024-12-03 13:34:44 -07:00
patches Apply coordinate offset only to VoxelShape 2024-12-04 02:52:58 -08:00
scripts Remove patch renaming scripts 2024-04-25 10:53:29 -07:00
test-plugin Finish converting most of the undeprecated api to jspecify 2024-09-30 16:02:52 -07:00
work Updated Upstream (CraftBukkit) 2024-12-04 11:11:12 +01:00
.editorconfig Registry Modification API (#10893) 2024-06-16 12:39:59 -07:00
.gitattributes [ci skip] update editorconfig and gitattributes (#9608) 2023-08-22 12:16:03 +10:00
.gitignore update generator 2024-04-27 22:32:16 +02:00
.gitmodules Update adventure 2023-12-06 21:24:16 -07:00
build.gradle.kts Always fork jvm for compile, even when using the Gradle runtime jvm 2024-12-03 20:42:36 -07:00
CONTRIBUTING.md [ci skip] better instructions for patch apply conflict (#11568) 2024-11-04 18:43:26 +01:00
gradle.properties Update readme, set updatingMinecraft to false 2024-12-04 11:05:07 +01:00
gradlew Update Gradle wrapper to 8.10.2 2024-10-28 10:17:48 -07:00
gradlew.bat Update Gradle wrapper to 8.10.2 2024-10-28 10:17:48 -07:00
LICENSE.md Fix incorrect invulnerability damage reduction (#11599) 2024-11-19 11:54:58 +01:00
README.md Update readme, set updatingMinecraft to false 2024-12-04 11:05:07 +01:00
SECURITY.md [ci skip] Create SECURITY.md (#11331) 2024-08-27 18:12:32 +02:00
settings.gradle.kts Update paperweight and Gradle wrapper 2024-12-03 20:28:39 -07:00

Paper Paper Build Status Discord GitHub Sponsors Open Collective

The most widely used, high-performance Minecraft server that aims to fix gameplay and mechanics inconsistencies.

Support and Project Discussion:

How To (Server Admins)

Paperclip is a jar file that you can download and run just like a normal jar file.

Download Paper from our downloads page.

Run the Paperclip jar directly from your server. Just like old times

How To (Plugin Developers)

Repository (for paper-api)

Maven
<repository>
    <id>papermc</id>
    <url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<dependency>
    <groupId>io.papermc.paper</groupId>
    <artifactId>paper-api</artifactId>
    <version>1.21.4-R0.1-SNAPSHOT</version>
    <scope>provided</scope>
</dependency>
Gradle
repositories {
    maven {
        url = uri("https://repo.papermc.io/repository/maven-public/")
    }
}

dependencies {
    compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
}

java {
    toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

How To (Compiling Jar From Source)

To compile Paper, you need JDK 21 and an internet connection.

Clone this repo, run ./gradlew applyPatches, then ./gradlew createMojmapBundlerJar from your terminal. You can find the compiled jar in the project root's build/libs directory.

To get a full list of tasks, run ./gradlew tasks.

How To (Pull Request)

See Contributing

Support Us

First of all, thank you for considering helping out, we really appreciate that!

PaperMC has various recurring expenses, mostly related to infrastructure. Paper uses Open Collective via the Open Source Collective fiscal host to manage expenses. Open Collective allows us to be extremely transparent, so you can always see how your donations are used. You can read more about financially supporting PaperMC on our website.

You can find our collective here, or you can donate via GitHub Sponsors here, which will also go towards the collective.

Special Thanks To:

YourKit-Logo

YourKit, makers of the outstanding java profiler, support open source projects of all kinds with their full featured Java and .NET application profilers. We thank them for granting Paper an OSS license so that we can make our software the best it can be.

JetBrains, creators of the IntelliJ IDEA, supports Paper with one of their Open Source Licenses. IntelliJ IDEA is the recommended IDE for working with Paper, and most of the Paper team uses it.

All our sponsors!
Sponsor Image