Skip to content

Instantly share code, notes, and snippets.

> Configure project :
New Dep: net.minecraftforge:forge:1.16.1-32.0.106_mapped_snapshot_20200723-1.16.1_at_b8ece74492c7bf6fe378357d1b29a80593acc080
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'NoCubes'.
> Invalid patcher dependency: net.minecraftforge:forge:1.16.1-32.0.106:userdev
[03:00:53] [main/INFO] [GradleStart]: Extra: []
[03:00:53] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/Cadiboo/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[03:00:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[03:00:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[03:00:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[03:00:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[03:00:53] [main/DEBUG] [FML]: Injecting tracing printstreams for STDOUT/STDERR.
[03:00:53] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2795 for Minecraft 1.12.2 loadi
@Cadiboo
Cadiboo / Collisions.java
Last active July 10, 2021 10:23
Minecraft's collisions are hard to wrap my head around
public class Entity {
//...
// AKA 'adjustMovementForCollisions'
public static Vector3d collideBoundingBoxHeuristically(@Nullable Entity entity, Vector3d motion, AxisAlignedBB aabb, World world, ISelectionContext ctx, ReuseableStream<VoxelShape> nonBlockShapes) {
// 'nonBlockShapes' may include the shapes of other entities and the world border
boolean xStatic = motion.x == 0.0D;
boolean yStatic = motion.y == 0.0D;
boolean zStatic = motion.z == 0.0D;
boolean xOrYMoving = !xStatic || !yStatic;