Everything posted by warjort
-
How do I properly set a block and not trigger a physics update?
You can write your own method that only does the parts of ServerLevel.setBlock() and LevelChunk.setBlockState() that you want to perform. You will probably need to use access transformers to make certain fields and methods public so you can use them? https://forge.gemwire.uk/wiki/Access_Transformers
-
[1.19] Have custom command give player a written book?
"pages" is not a string, it is a ListTag (of StringTags) See BookEditScreen.updateLocalCopy()
-
help
Your Mekanism/client.toml config file is broken. If you don't know how to fix it and don't have a backup you can delete the file and it will recreate it with default values.
-
Trying to make piston moveable chest
The only real option to override a BlockEntity's PushReaction is DESTROY which will destroy the block and spawn its drops. See for example BedBlock.getPistonPushReaction() The issue is Minecraft's piston logic has no code to properly support moving block entities. e.g. copying the chest's inventory from the start location to a newly created BlockEntity in the end location. I'm pretty sure if they tried to support it, it would probably be a major source of item duping glitches. ๐
-
How do I properly set a block and not trigger a physics update?
I don't think you can? The relevant code is in FallingBlock.onPlace() called from LevelChunk.setBlockState() where it *unconditionally* schedules a block tick that checks if the block should fall.
-
Crash report: Rendering Overlay
known optifine issue: https://github.com/sp614x/optifine/issues/7127
-
(1.18.2) Game crash on starting
Since you know the issue with the Libra mod, check you have the latest version then contact the mod author.
-
My game crashes everytime i try to use a chest!
Issue with betterpiglintrade. Probably a conflict with another mod. Check you have the latest version then contact mod author.
-
Custom book that can be enchanted with the enchanting table
Mixins are not supported in this forum. I believe there is a channel on forge's discord where you can discuss 3rd party modding tools? Or you can ask wherever mixin has its support channels.
-
Importing Player entity?
From the subtitle of this forum: You should not be posting compiler errors here. You should know how to read and understand these errors and fix your code. If you don't, buy a java book or whatever you need to learn the language. The clue (as they say) is in the question. Do you think Minecraft's player class has any relation to Swing's html parser? The fix is obviously to replace that import with Minecraft's Entity class instead (as somebody already told you).
-
(1.18.2) Game crash on starting
Conflict between flickerfix and apoli. Check you have the latest versions then contact the mod author(s).
-
[SOLVED] BlockEntity rendering too dark
Not really my area of expertise. But if you want to render a solid block, why not just override getRenderShape() to return RenderShape.MODEL? You can then use a json model. Vanilla does this for many block entities, e.g. BarrelBlock You don't show any relevant code, but if your block is a full block it is not suprising its lightlevel is 0 - light cannot pass through or into it. If you really want to handle the lighting yourself, you can find the simple version for a solid block in ModelBlockRenderer.tesselateWithoutAO() Note the use of LevelRenderer.getLightColor() to get the light level of the neighbouring block on each face. You can also see the more complicated code for doing it with ambient occlusion in that class. Don't ask me to explain that code. ๐
-
[1.18.2] Event for F11 pressed
The event you are using only works in GUI screens (see its javadoc). The correct event for non gui screens is InputEvent.KeyInputEvent in 1.18.2 But the full screen toggle handling is "hard wired" at the top of KeyboardHandler.keyPress() and so I don't think it will fire that event?
-
org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
You don't show the full log and it's not the debug.log so there is really no way to tell you what is wrong. Guess: You have the wrong version of journeymap for 1.19.2 since that is an FAQ in this forum for 1.19.2 networking problems https://www.curseforge.com/minecraft/mc-mods/journeymap/files/all?filter-game-version=1738749986%3A73407
-
Safe mode, but not doing anything, Don't know True Error.
This says the epics_mod:dread_world dimension isn't registered (properly). Contact the mod author.
-
Modded Server Keeps Crashing But Launching On Launcher is Fine
Looks like a Multicraft issue. It says it is not able to copy a jar file for some reason. Forge then complains the jar is corrupt/incomplete. Neither Multicraft or Forge says which jar is the problem. I suggest you contact Mutlicraft to ask how to fix it.
-
i think i messed up supplementaries mod
As you probably already guessed, the version of supplementaties you have is not compatible with the version of create you installed. Probably because you have supplementaries 1.0.4 while the latest version for 1.18.1 is supplementaries 1.5.10 according to curseforge. https://www.curseforge.com/minecraft/mc-mods/supplementaries/files/all?filter-game-version=2020709689%3A8857 If using the latest version doesn't fix it, you will need to talk the mod author(s).
-
Noclassdeffound error, please help
Post your logs/debug.log from the server so we can see the actual problem. From the information you show, the canary mod is trying to load a client class on the server, specifically by loading a class from the smallships mod that references a client class. But the warning suggests this is not the real problem.
-
Mod Help. Crash Code -1
https://github.com/sp614x/optifine/issues/7127
-
Latest Forge release conflicting with Optifine
This is a known optifine issue: https://github.com/sp614x/optifine/issues/7127 According to the optifine downloads page, they support (have tested) forge 43.1.1 for your version of optifine. If you have problems with optifine you need to talk them.
-
Create mod having issues with "Sponge"
This says you are using java 19 which mixin doesn't support. Use java 17
-
[1.19.2] Error With GL11
Why would there be a demo or tutorial for this? I can't think of a vanilla process or mod that does anything similar to what you are doing. The closest things I can think of (that shows where an entity has been) are the sprint particles and the particles generated for arrow trails - see Arrow.tick() Which is why I suggested spawning particles for your feature in your other thread. If you do want to continue to do it through rendering, you are going to need to store some state for each player that remembers where they have been, e.g. using a client side player capability See DataStorage here: https://forge.gemwire.uk/wiki/Main_Page
-
[1.19.2] Error With GL11
You are also still not checking the side or phase of PlayerTick.
-
[1.19.2] Error With GL11
You don't do rendering in PlayerTick. And you don't use opengl directly you use mojang's Blaze3d library. See my original response to your other question: https://forums.minecraftforge.net/topic/117495-1192-trying-to-draw-a-line-behind-player/
-
Minecraft forge below 1.19 crashes on generating world
-805306369 is a crash in native code. You probably have a file beginning "hs_err_pid" in your minecraft folder. Don't post the full file, just post the 30 first lines or so that shows the error.
IPS spam blocked by CleanTalk.