Everything posted by warjort
-
[1.19.2, SOLVED] Add building to village
You can see how immersive engineering does it here: https://github.com/BluSunrize/ImmersiveEngineering/blob/289fa688194dc1b640245cee5ad902ecfd7d2564/src/main/java/blusunrize/immersiveengineering/common/world/Villages.java#L122
-
[1.19.2] [Forge] My modded game is freaking out.
Download the 1.19.2 version of journeymap https://www.curseforge.com/minecraft/mc-mods/journeymap/files/all?filter-game-version=1738749986%3A73407
-
Check if player is looking at a block
To see what the player is looking at, you can do var hitResult = Minecraft.getInstance().hitResult; The hitResult.getType() will tell you if it is a block. The rest you will need to code yourself. Probably using the PlayerTickEvent? Don't forget to check the phase and side of that event. If you want to do it on the server, then you will need to use the slower Entity.pick() method for the player. I don't think you want to be doing that every tick multiplied by the number of players.
-
My custom blocks are not dropping anything when mined??? HELP!!!
That repo hasn't been updated in a month. It contains no data folder: https://github.com/liambcode/forge-1.19.2-43.1.30-mdk/tree/master/src/main/resources
-
The game crashed whilst rendering overlay Error: java.lang.IllegalArgumentException: Failed to create player model for default
Issue with the illuminations mod. Check you have the latest version then contact the mod author.
-
The game crashed whilst rendering overlay error
The subfolder is called config.
-
The game crashed whilst rendering overlay error
Your config file flywheel-client.toml is invalid/corrupted. You can find it in the config subfolder. If you don't have a backup of this file and don't know how to fix it, you can delete the file and it will recreate it with default values.
-
Error
This is just the wrong version of optifine FAQ: You should have a log for this. And it says you have a crash report: To fix the problem you need to go to the optifine download page and click on 1.18.2 "Preview versions" then download the latest version.
-
Better MC [Forge] 1.18.2 - FTB Backups Config Watcher error
I don't see anything strange in that log. It just seems to have to stopped. If have the java jdk installed rather than just the jre there is a tool called jstack that can be used to diagnose these kind of problems. https://docs.oracle.com/en/java/javase/17/docs/specs/man/jstack.html If you get the process id (pid) of the server process from task manager you can then type on the command line jstack -l pid which will show what all the threads of the java virtual machine are doing.
-
Better MC [Forge] 1.18.2 - FTB Backups Config Watcher error
Post a link to your logs/debug.log
-
Dynamically change Block State
BlockState.setValue() does not mutate the state. It returns you a new BlockState with the property you modified. BlockState newState = oldState.setValue(...)
-
Crash while rendering overlay
Issue with the modelfix mod, check you have the latest version then contact the mod author.
-
Minecraft Will only load with 95 or less total mods
There are no errors or warnings in your logs. So there is very little help we can give you. You should look at task manager to see if the java process running minecraft has issues, e.g. 100% cpu usage I think the only way you are going to find this, is experimenting with removing mods until find which one is causing the problem. (Backup your world first).
-
Forge with mods on MC 1.18.2 randomly crashing
The error says one of your mods is modifying the skeleton's AI in an invalid way. There is nothing in that error that identifies the problem mod and there is no other mention of a problem in your log. Above, I have underlined the mods that are mentioned as modifying code in this area. You should start by checking you have the latest version of these mods (do the same for your other mods as well). Then check if any of them have known issues about this is in their bug reports and/or contact the mod authors. Failing that, the only thing you can do is to make a backup of your world and then experiment with removing mods until you find the problem mod. Since you say this is "random" this is going to be a difficult task. The most likely mods would be those that are about changing mobs or combat or new/obscure mods that have very few downloads
-
Error
Upload it to a file sharing site and post a link. But make sure it actually contains information about you trying to start minecraft. If the game crashes and you then restart the launcher it will clear the file so we won't see the problem.
-
Error
If it started the game at all, you will have files in the logs subfolder. If your crash begins with hs_err_pid just post the first 20 lines or so. You can also post the launcher_log.txt
-
Error
Post a link to the logs/debug.log so we can see the error.
-
error
You need to post your logs/debug.log if you want help.
-
[1.19.2] [Geckolib] Model not loading
Look in your run/logs/debug.log You probably have an error about missing textures, models or invalid json there. Failing that, you need to ask geckolib. That mod is responsible for loading the model.
-
Each time I teleport using waystone my game crashes.
Why do you keep posting this? You've already been told multiple times that 1.16.5 is no longer supported in this forum. https://forums.minecraftforge.net/topic/118043-each-time-i-teleport-using-waystone-my-game-crashes/#comment-519392 https://forums.minecraftforge.net/topic/118018-each-time-i-teleport-using-waystone-my-game-crashes/#comment-519294 I suggest you contact the waystones mod author.
-
[1.19.2] Rendering "ghost" blocks
You know as much as about this as I do. It's not really my area of expertise. I do know there is some caching code in there. So maybe you are hitting that? See for example AmbientOcclusionFace.calculate() and BlockModelRenderer.Cache I've tried a couple of times to understand how minecraft's lighting code works, but it is spaghetti. ๐ Maybe you can use your debugger to disable the cache to see if that is your problem?
-
[1.19.2] Rendering "ghost" blocks
If you look at the code for the method you are using, it uses the BlockAndTintGetter (the player.level) you pass to do its calculations of light levels. If you want to alter things, you will probably need to create a wrapper/delegate implementation of that interface that changes the values returned by the real ClientLevel?
-
[1.19.2] Rendering "ghost" blocks
If you look at LevelRender.renderHitOutline() it uses (pseudo code) blockPos - camera.getPosition() So, the PoseStack must be at the camera position when that event is called. You can't translate to anywhere. PoseStack.translate() is a relative operation so passing all 0 does nothing. ๐ Try something like: var target = event.getTarget(); var cpos = event.getCamera().getPosition(); // camera var bpos = target.getBlockPos().relative(target.getDirection()); // block var poseStack = event.getPoseStack(); poseStack.pushPose(); poseStack.translate(bpos.getX() - cpos.x, bpos.getY() - cpos.y, bpos.getZ() - cpos.z); // your code here poseStack.popPose();
-
Minecraft not run i need help.
You need to give it more memory. It is configured in your launcher/installations.
-
Independently Bob the Camera
Forge supports altering the camera's angles and fov. See ViewportEvent and its subclasses. It has no event for moving the camera. Probably because it is tied to the entity. The camera location is calculated from the eye position of the player or entity being spectated and updated every tick as they move. The eye position is calculated from the entity's location and eye height. The eye height is calculated from the entity's pose (standing, crouching, sleeping, etc.) when it changes. You could do player.setForcePose(Pose.CROUCHING). Or another way might be to call player.refreshDimensions() while subscribing to EntityEvent.Size to alter the eye height? You probably need to do it on the server for it to work properly.
IPS spam blocked by CleanTalk.