Everything posted by warjort
-
mouseClicked event handler crash with Forge 40.1.54
That's a horrible error message. First, the "mouseClicked event handler" is misleading. That's the thread name because it is running in response to you clicking something. Its actually just a NullPointerException with no message. You can see it is actually a problem in the biome generator. In fact it is in the feature part. Somewhere along the way there is a null value and the error comes from it trying to insert it into an immutable list, which doesn't allow nulls I think this NPE is caused by you not registering your configured feature. You just create one and then use Holder.direct() on it. I posted a link to how botania does this in this thread: https://forums.minecraftforge.net/topic/113121-how-do-i-spawn-my-feature-in-the-world-1165/ but was told off because it uses a RegistryEvent<Feature> to do this instead of a DeferredRegistry. ๐ I don't know of a good example using DeferredRegistrys given how features/placements get configured/registered and both methods ultimately do the same thing. Its just one is more declarative. I am tempted to raise that error message as a bug in forge ๐
-
[1.19] Change Window Title
There are already a number of different mods that do this already. For example this one https://www.curseforge.com/minecraft/mc-mods/custom-window-title It uses minecraft's Window.setTitle() which I guess is what you do? Then it stops minecraft changing it, using a mixin: https://github.com/chylex/Minecraft-Window-Title/blob/master/src/main/java/chylex/customwindowtitle/mixin/DisableVanillaTitle.java BTW: That Window class is only available on the client. You should change the title in FMLClientSetupEvent otherwise your mod will crash servers.
-
Forge won't open.
This is the same error you reported here. https://forums.minecraftforge.net/topic/113135-forge-not-working/page/2/#comment-503335 The problem is still the same. Your /Users/bradydyson/Library/Application Support/minecraft/mods/BiomesOPlenty-1.19-17.0.0.136.jar is broken, you need to redownload it. The latest version of that mod is currently 1.19-17.0.0.141 see https://www.curseforge.com/minecraft/mc-mods/biomes-o-plenty/files/all?filter-game-version=1738749986%3a73407
-
optifine invalid java runtime configuration
If you know the problem is optifine, ask them for help.
-
1.18.2 : The game crashed whilst rendering overlay (worked once but then kept on crashing)
Your minecraft-comes-alive configuration file is broken. Ask the mod author for help if you can't see what is wrong with it.
-
[1.16.5] Syncing player capabilities to client
Probably not.
-
org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
The conflict is rubidium and chunkanimator. It appears to be a known issue: https://github.com/Harleyoc1/ChunkAnimator/issues/25 https://github.com/Asek3/Rubidium/issues/173 You have to be an alien to read these error messages. ๐ The trick is to look for the final "Caused By" then look for mod names. rubidium is a port of sodium
-
[1.18.2] Modify minecraft Fog effect to create a "toxic mist"
If you don't understand how RenderLevelLastEvent would be used, it probably means its not a good solution for your problem?
-
[1.16.5] Syncing player capabilities to client
BTW, this looks weird player.getCommandSenderWorld() Its not wrong, its just your processing has nothing to do with commands. Normally you would just use the public field player.level which is what that other function returns.
-
[1.16.5] Syncing player capabilities to client
In this code you have public void onPlayerTracking(PlayerEvent.StartTracking event) { if(event.getTarget() instanceof PlayerEntity) { PlayerEntity player = (PlayerEntity)event.getTarget(); This is meant for when you do want your capability sent to other players. i.e. other players tracking you will get a copy of the capability data. The "target" is the new player that has just come into range of you.
-
[1.16.5] Syncing player capabilities to client
You are using @SubscribeEvent on the methods, do you have @EventBusSubscriber(bus = Bus.FORGE) on the class?
-
[1.16.5] Syncing player capabilities to client
A player on the server is being tracked by other players nearby. e.g. when I jump in the air, the server sends a message to the tracking entities to tell them I jumped in the air. Using TRACKING_ENTITY_AND_SELF means it sends your message to all these players and your player. In your client code you do ClientPlayerEntity p = Minecraft.getInstance().player; p.getEntity().getCapability().etc So if the client gets a message because it is tracking another player, it will update the data from the other player into your player. Using PacketDistributor.PLAYER means it only sends to the player. You won't have to worry about getting data about other players on the client.
-
Chest Rendering invisible
Take a break, go for a walk. Then try again. ๐
-
I cant start a server on mineshafts and dungeons
Same out of memory error. Show the command you are you using so we can confirm you did it correctly. What does the modpack say it requires to run?
-
Chest Rendering invisible
This isn't a forge question. Its a can you fix my java program question. You only ever register one chest BlockEntityRenderer in that code. It references the static singleton TileEntities.CHEST_TILE_ENTITIES.
-
i keep crashing due to unkown error
Some conflict between the backpacked and backpacker mods: Make sure you have the correct versions then contact the author.
-
Chest Rendering invisible
The answer is, you are not registering it. You never change newChestEntitiesAdded to true and even if you did, the chests are never registered when signs are because you are using "else if" https://github.com/StijnArts/All-The-Wood/blob/85e92326aa52affba3c91ef5a81f7ff87e1e20cc/src/main/java/Net/Drai/AllTheWood/AllTheWood.java#L125
-
Chest Rendering invisible
Either add this to your ATWChestBlock and define a model for it public RenderShape getRenderShape(BlockState p_49232_) { return RenderShape.Model; } Or you need to create and register a BlockEntityRenderer for it. See net.minecraft.client.renderer.blockentity.ChestRenderer for the vanilla one.
-
I cant start a server on mineshafts and dungeons
You need to give minecraft/forge more memory. It is the -Xmx option in these examples https://forums.minecraftforge.net/topic/113190-trouble-creating-minecraft-modded-server-1165/
-
Trouble creating Minecraft modded server 1.16.5.
Quote the path with spaces, like this:
-
World's not opening
Try enigmatic legacy 2.24.1, it claims to have a fix for this. https://github.com/Aizistral-Studios/Enigmatic-Legacy/issues/359
-
When I run my forge server I get this error message.
See: https://forums.minecraftforge.net/topic/113190-trouble-creating-minecraft-modded-server-1165/
-
[1.16.5] Syncing player capabilities to client
You need to explain what is not working. Nobody wants to look at some code and guess what might be wrong with it. If you don't understand what is not working add some log.info("I am doing this"); or System.out.println("I am doing this"); to your code in relevant places. Then see if you can understand what is being not being done or is wrong from the log. Even if you can't figure it out, it will let you ask a more focused question. However: One thing that does look wrong is. TitanShiftersNetwork.CLIENTCHANNEL.send(PacketDistributor.TRACKING_ENTITY_AND_SELF.with(() -> p), message); From what I understand you only want to send to the player and not every player that is close by, which is what the above code does. You don't have an entity id in your message, you are assuming the player only gets its own data. As it stands, it will be overwriting player's data randomly from other players.
-
Error while starting up Minecraft: Java Edition using CurseForge
Looks like you are missing this mod: https://www.curseforge.com/minecraft/mc-mods/framework?
-
Launching issue
See: https://forums.minecraftforge.net/topic/113178-better-minecraft-forge-125-exit-code-1/
IPS spam blocked by CleanTalk.