Skip to content

Error when loading a schematic #6

@LegendsOfXania

Description

@LegendsOfXania

Hello,
I'm having an issue with the schematic4j library: I can't load .schem files (Sponge format v3) in my Kotlin plugin. I'm using PaperMC 1.21.4, and I’ve added this version of schematic4j as a dependency.

Currently, my code looks like this:

val schematic: String = ""
private fun pasteSchematic(schematic: String) {
    val schem = SchematicLoader.load("plugins/FastAsyncWorldEdit/schematics/$schematic")
    logger.info("Loaded ${schem.name()} : ${schem.width()}x${schem.height()}x${schem.length()}")
}

However, the logger outputs:
[Typewriter] Loaded null : 0x0x0

I'm sorry to bother you, and I appreciate any help.
Looking forward to your response,
Xaya

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions