Skip to content

Raknetify + Litematica placement error #76

@muchen-0221

Description

@muchen-0221

To Reproduce
Steps to reproduce the be Compatibility Issue: raknetify causes incorrect block placement with Litematica's Easy Place mode

Description:
When using the raknetify mod together with the Litematica mod, a significant compatibility issue arises specifically during Easy Place schematic building. There is a high probability that blocks are placed incorrectly.

Observed Behavior:

  1. While using Easy Place to build from a loaded Litematica schematic, the client will often temporarily place the block currently held in the player's hand onto the schematic ghost outline.
  2. This results in two observable effects:
    Functional Error: Crucially, the wrong block is actually placed momentarily in the world*. This can lead to incorrect block placements if the player interacts further before the correction happens, or potentially causes lag/confusion during rapid building. It fundamentally breaks the reliability of Easy Place mode.
  3. Key Finding:Removing the raknetify mod from both client and server** immediately resolves the issue, confirming that raknetify is the cause of the conflict.

Steps to Reproduce:

  1. Setup:
    • Install Minecraft 1.20.1.
    • Install both Litematica and raknetify mods on both the Client and the Server.
    • (Optional but recommended: Install MaLiLib if required by your Litematica version).
  2. Load a schematic using Litematica.
  3. Enable Litematica's Easy Place mode (usually C key by default).
  4. Attempt to build the schematic using Easy Place (look at ghost blocks and Right-Click).
  5. Observe the behavior repeatedly (often within the first few placements or consistently). You will frequently see the held block briefly appear and be placed before being corrected to the schematic's intended block.

Expected Behavior:
When using Easy Place mode with a schematic loaded, only the block defined by the schematic at the targeted ghost outline position should be placed immediately and correctly upon right-clicking. The player's currently held block should not interfere with or be placed during this process.

Actual Behavior:
The player's currently held block is temporarily placed (both visually and physically in the world) before being replaced by the schematic's correct block, leading to unreliable placement and potential build errors. This occurs frequently during Easy Place operations.

Workaround:
Remove raknetify from both the client and server. Easy Place functionality returns to normal after removal.

Mod & Environment Information:

  • Minecraft Version: 1.20.1
  • Operating System (Client & Server): Windows 11
  • Mod Loader: Fabric (Presumed, please confirm)
  • Relevant Mods & Versions (CRITICAL - PLEASE PROVIDE):
    • raknetify: raknetify-fabric-0.1.0+alpha.5.174-all
    • Litematica: litematica-fabric-1.20.1-0.15.8.jar
    • MaLiLib (if used): malilib-fabric-1.20.1-0.16.3.jar
    • Fabric API: fabric-api-0.92.2+1.20.1
  • Other Mods: (Please list any other significant mods installed, though the issue is isolated to raknetify + Litematica interaction)

Additional Notes:

  • The issue appears to be related to how raknetify optimizes or alters network packet handling, which interferes with the precise client-server communication required by Litematica's Easy Place mode for block predictions and placements.
  • The problem occurs consistently enough to severely hinder using Easy Place effectively while raknetify is active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions