Skip to content

Commit

Permalink
Add heavy core collision shape
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Jul 29, 2024
1 parent c6ff437 commit 7dba3ff
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import ac.grim.grimac.utils.nmsutil.Materials;
import com.github.retrooper.packetevents.PacketEvents;
import com.github.retrooper.packetevents.manager.server.ServerVersion;
import com.github.retrooper.packetevents.protocol.entity.type.EntityTypes;
import com.github.retrooper.packetevents.protocol.item.ItemStack;
import com.github.retrooper.packetevents.protocol.item.type.ItemTypes;
import com.github.retrooper.packetevents.protocol.player.ClientVersion;
Expand Down Expand Up @@ -1177,6 +1176,10 @@ public enum CollisionData {
}
}, BlockTags.WALL_HANGING_SIGNS.getStates().toArray(new StateType[0])),

HEAVY_CORE((player, version, data, x, y, z) -> {
return new HexCollisionBox(4.0, 0.0, 4.0, 12.0, 8.0, 12.0);
}, StateTypes.HEAVY_CORE),

NONE(NoCollisionBox.INSTANCE, StateTypes.AIR, StateTypes.CAVE_AIR, StateTypes.VOID_AIR, StateTypes.LIGHT),

DEFAULT(new SimpleCollisionBox(0, 0, 0, 1, 1, 1, true), StateTypes.STONE);
Expand Down

0 comments on commit 7dba3ff

Please sign in to comment.