New problem! || cause they never end ||
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
import net.minecraft.core.BlockPos
import net.minecraft.server.level.ServerLevel
import net.minecraft.world.level.Level
import net.minecraft.world.level.block.Block
import net.minecraft.world.level.block.Blocks
import net.minecraft.world.level.block.state.BlockState
import org.valkyrienskies.core.util.datastructures.DenseBlockPosSet
import org.valkyrienskies.mod.common.assembly.createNewShipWithBlocks
object PhysCoreBlock : Block(FabricBlockSettings.copyOf(Blocks.AMETHYST_BLOCK)) {
override fun onPlace(state: BlockState, level: Level, pos: BlockPos, oldState: BlockState, movedByPiston: Boolean) {
if (level is ServerLevel) {
val blocks = DenseBlockPosSet();
blocks.add(pos.x, pos.y, pos.z);
createNewShipWithBlocks(pos, blocks, level);
}
}
}
I wrote this code. It’s supposed to immediately make a block physics when it’s placed.
It refuses to compile because
e: file:///[REDACTED]/src/main/kotlin/net/totobirdcreations/skywardvs/block/physcore/PhysCoreBlock.kt:20:13 Cannot access class 'net.minecraft.class_2338'. Check your module classpath for missing or conflicting dependencies
e: file:///[REDACTED]/src/main/kotlin/net/totobirdcreations/skywardvs/block/physcore/PhysCoreBlock.kt:20:13 Cannot access class 'net.minecraft.class_3218'. Check your module classpath for missing or conflicting dependencies
e: file:///[REDACTED]/src/main/kotlin/net/totobirdcreations/skywardvs/block/physcore/PhysCoreBlock.kt:20:37 Type mismatch: inferred type is BlockPos but class_2338 was expected
e: file:///[REDACTED]/src/main/kotlin/net/totobirdcreations/skywardvs/block/physcore/PhysCoreBlock.kt:20:50 Type mismatch: inferred type is ServerLevel but class_3218 was expected
It doesn’t seem like the mappings line up correctly.
Not sure if this is more of a parchment issue or VS. If it’s parchment I’ll go to their discord.
Do you know how this could be dealt with?