Giter Club home page Giter Club logo

paintersblocks's Introduction

paintersblocks's People

Contributors

juuxel avatar

Watchers

James Cloos avatar  avatar

paintersblocks's Issues

java.lang.NoClassDefFoundError: net/minecraft/class_4002

Hello! PaintersBlocks works well on single player, but seems to explode when it comes to multiplayer.

Instructions to Recreate

I'm running a test with a simplified fabric 1.18.2 setup, using the itgz/minecraft-server docker image. This image has been working pretty well for other servers so I believe it's not related to the problem and thus the problem could be replicated in any linux-based server environment.

  • Use minecraft 1.18.2
  • Use Fabric Loader 0.14.8 or 0.14.9
  • Use Fabric Launcher 0.10.2 or 0.11.0
  • Use Painter's Blocks 1.3.1 or 1.3.2
  • Use Fabric API 0.58.0

Below is the entire logfile (minus two lines relating to giving players op). As you can see, the server crashes instantly because net/minecraft/class_4002 is not found.

[init] Resolving type given fabric  
[init] Downloading https://meta.fabricmc.net/v2/versions/loader/1.18.2/0.14.8/0.11.0/server/jar ...  
[init] server.properties already created, skipping  
[init] Updating ops  
[init] Checking for JSON files.  
[init] Setting initial memory to 6G and max to 6G  
[init] Starting the Minecraft server...  
Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture  
[20:02:58] [main/INFO]: Loading Minecraft 1.18.2 with Fabric Loader 0.14.8  
[20:02:59] [main/INFO]: Loading 42 mods:  
- fabric 0.58.0+1.18.2  
- fabric-api-base 0.4.4+d7c144a860 via fabric  
- fabric-api-lookup-api-v1 1.6.2+2373a54560 via fabric  
- fabric-biome-api-v1 8.0.6+651bcc5960 via fabric  
- fabric-command-api-v1 1.1.9+d7c144a860 via fabric  
- fabric-commands-v0 0.2.8+b4f4f6cd60 via fabric  
- fabric-containers-v0 0.1.23+d7c144a860 via fabric  
- fabric-content-registries-v0 3.1.1+c85f2e3860 via fabric  
- fabric-convention-tags-v1 1.0.1+474e4f7960 via fabric  
- fabric-crash-report-info-v1 0.2.1+ee261a3e60 via fabric  
- fabric-data-generation-api-v1 3.0.1+9fcb91d260 via fabric  
- fabric-dimensions-v1 2.1.20+489d6f8260 via fabric  
- fabric-entity-events-v1 1.4.8+d7c144a860 via fabric  
- fabric-events-interaction-v0 0.4.19+d7c144a860 via fabric  
- fabric-events-lifecycle-v0 0.2.19+d7c144a860 via fabric  
- fabric-game-rule-api-v1 1.0.13+d7c144a860 via fabric  
- fabric-item-api-v1 1.5.2+17cbbd4360 via fabric  
- fabric-item-groups-v0 0.3.14+91896a4960 via fabric  
- fabric-lifecycle-events-v1 2.1.0+cc71601c60 via fabric  
- fabric-loot-api-v2 1.1.0+1997ad1260 via fabric  
- fabric-loot-tables-v1 1.1.2+e747827960 via fabric  
- fabric-mining-level-api-v1 2.1.4+cc71601c60 via fabric  
- fabric-networking-api-v1 1.0.23+2d30af4b60 via fabric  
- fabric-networking-v0 0.3.10+b4f4f6cd60 via fabric  
- fabric-object-builder-api-v1 2.1.3+032c981d60 via fabric  
- fabric-particles-v1 0.2.12+526dc1ac60 via fabric  
- fabric-registry-sync-v0 0.9.10+0d9ab37260 via fabric  
- fabric-rendering-data-attachment-v1 0.3.7+d7c144a860 via fabric  
- fabric-rendering-fluids-v1 2.0.2+54e5b2ec60 via fabric  
- fabric-resource-conditions-api-v1 2.0.3+91b7aa6660 via fabric  
- fabric-resource-loader-v0 0.5.2+446e059560 via fabric  
- fabric-screen-handler-api-v1 1.2.2+1f6558e860 via fabric  
- fabric-transfer-api-v1 1.6.3+f4563ac860 via fabric  
- fabric-transitive-access-wideners-v1 1.1.0+e747827960 via fabric  
- fabricloader 0.14.8  
- java 17  
- libblockattributes_core 0.10.2 via libmultipart_deps_container  
- libmultipart 0.7.2 via libmultipart_deps_container  
- libmultipart_deps_container 0.7.2 via painters_blocks  
- libnetworkstack 0.6.0 via libmultipart_deps_container  
- minecraft 1.18.2  
- painters_blocks 1.3.2+1.18.2  
[20:02:59] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/data/libraries/net/fabricmc/sponge-mixin/0.11.4+mixin.0.8.5/sponge-mixin-0.11.4+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER  
[20:02:59] [main/INFO]: Compatibility level set to JAVA_16  
[20:03:13] [main/ERROR]: Failed to start the minecraft server  
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'painters_blocks'!  
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51) ~[fabric-loader-0.14.8.jar:?]  
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) ~[fabric-loader-0.14.8.jar:?]  
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49) ~[fabric-loader-0.14.8.jar:?]  
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35) ~[fabric-loader-0.14.8.jar:?]  
at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:62) ~[fabric-loader-0.14.8.jar:?]  
at net.minecraft.server.Main.main(Main.java:101) [server-intermediary.jar:?]  
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461) [fabric-loader-0.14.8.jar:?]  
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.14.8.jar:?]  
at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.14.8.jar:?]  
at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.14.8.jar:?]  
at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) [fabric-server-mc.1.18.2-loader.0.14.8-launcher.0.11.0.jar:0.11.0]  
Caused by: java.lang.NoClassDefFoundError: net/minecraft/class_4002  
at juuxel.paintersblocks.part.PbParts.<clinit>(PbParts.java:21) ~[PaintersBlocks-1.3.2+1.18.2.jar:?]  
at juuxel.paintersblocks.PaintersBlocks.onInitialize(PaintersBlocks.java:29) ~[PaintersBlocks-1.3.2+1.18.2.jar:?]  
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47) ~[fabric-loader-0.14.8.jar:?]  
... 8 more  
Caused by: java.lang.ClassNotFoundException: net.minecraft.class_4002  
at jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source) ~[?:?]  
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]  
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226) ~[fabric-loader-0.14.8.jar:?]  
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:145) ~[fabric-loader-0.14.8.jar:?]  
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]  
at juuxel.paintersblocks.part.PbParts.<clinit>(PbParts.java:21) ~[PaintersBlocks-1.3.2+1.18.2.jar:?]  
at juuxel.paintersblocks.PaintersBlocks.onInitialize(PaintersBlocks.java:29) ~[PaintersBlocks-1.3.2+1.18.2.jar:?]  
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47) ~[fabric-loader-0.14.8.jar:?]  
... 8 more  
2022-08-19T20:03:14.083-0700 INFO mc-server-runner Done

I write code but it's been a while since I've written java, but I tried to look through the stack trace and the source. I don't understand why PbParts.java line 21 is at fault. The only import from net.minecraft.* is for net.minecraft.block.Block an import I would think is so fundamental to the game that it would probably be found.

I can play this mod just fine in single player, and even with it installed on the client while not present on the server (the UI shows up, but I can't add blocks to my inventory, which makes sense since it's missing on the server). However, when running a server with only 2 mods (fabric api and this mod), it crashes.

I tried to build this inside my IDE and received a message that the register function was deprecated, but I'm not sure this is related to the issue.

I'm going to try this on another docker image to make sure that has nothing to do with the problem I'm experiencing. I'll update this issue if I find that's the case.

Situational Indium Dependency

Just thought I'd mention that since this mod uses the Fabric rendering API it requires Indium to be installed if Sodium is present, or all the glowing blocks will have missing textures. It took me some messing around to figure that out, but it was a super easy fix once I did, so it might help someone else if you added a note about it to the curseforge description.

This mod is totally worth having biome blending turned off + I'm glad I was able to fix the missing textures as well! Thank you for the cool cubes. ๐Ÿ˜Ž

Sodium blends painters' blocks

Minecraft: 1.17.1
Fabric: 0.40
Sodium: 0.3.2+build.7
Lithium: 0.7.4
Indium: 1.0.0

When Biome Blending is enabled the painters blocks don't have the correct coloring to them. Once it is disabled then the colors show correctly.

Issue

Crash when placing a painter's slab

Game version: 1.19.2

java.lang.NoSuchMethodError: 'int juuxel.paintersblocks.multiparts.item.PaintableSlabItem.getColor(net.minecraft.class_1799)'
    at juuxel.paintersblocks.multiparts.item.PaintableSlabItem.lambda$useOnBlock$0(PaintableSlabItem.java:65)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.