warjort
Members-
Posts
5420 -
Joined
-
Last visited
-
Days Won
175
Everything posted by warjort
-
I have no idea why you are creating a DeferredRegister then using the RegisterEvent instead of a RegistryObject? Either way, static initialisation of an object that goes in a registry will usually fail because the registries are frozen. The exact time of classloading is almost completely random. You need to use a Supplier/RegistryObject to defer object construction until the correct time, or create the object during the RegisterEvent callback. But, this forum is a support forum for people with real problems. It is not a mod learning forum. You need to read the documentation, search the forum and look at other mods or vanilla code if you want to learn. You also need to stop posting snippets of code in the forum. You should put all the relevant code on github that reproduces your problem. If the issue is not obvious from what little information you post, you will likely just end up with your question getting ignored.
-
Like all registered objects, use a DeferredRegister/RegistryObject and don't create things at classloading time like your FASTCART object. The registry you want is https://github.com/MinecraftForge/MinecraftForge/blob/42115d37d6a46856e3dc914b54a1ce6d33b9872a/src/main/java/net/minecraftforge/registries/ForgeRegistries.java#L75 And entity renderers should not be registered like that. Besides crashing game on a server where those classes don't exist, it is the wrong time to do it. https://github.com/MinecraftForge/MinecraftForge/blob/42115d37d6a46856e3dc914b54a1ce6d33b9872a/src/main/java/net/minecraftforge/client/event/EntityRenderersEvent.java#L103 I suggest you familiarise yourself with the wiki: https://forge.gemwire.uk/wiki/Main_Page if you want to avoid all the common mistakes.
-
Modify the main menu? (Forge 1.19.2 43.2)
warjort replied to The Typholorian's topic in Modder Support
Can you please use search and do your own research. This forum is not a way for you to use us as a search engine. It is a support forum for people that have real problems. This question and others like it have been answered many times before. To repeat (for people that do use search) https://github.com/MinecraftForge/MinecraftForge/blob/1.19.x/src/main/java/net/minecraftforge/client/event/ScreenEvent.java Add your button in the Post event when the screen is the TitleScreen class. Since many other mods think they are important enough to warrant their own button on the initial screen, you will probably want to be clever about where you place it. e.g. check the "children" of the screen to see what areas are already occupied -
Forced to go safe mode or return to main menu bug
warjort replied to RIDERGHGH's topic in Support & Bug Reports
I don't see the error you refer to in that log. Are you sure it is the correct log? I do see some other errors that might be causing it. Some projecte/create error An issue with alltheores. that is the most likely cause since it is worldgen. Minecraft won't let you create/load saves with missing worldgen. -
That's not the way to do it. https://github.com/Leronus/mOres/blob/b4215d26b0ddb2cf5beb6f1d41c4d4189bddab14/src/main/java/mod/leronus/mores/Mores.java#L30 Loading config in your mod constructor will just mean the client and server can have different configurations/durabilities in multiplayer mode. Which will lead to all sorts of bugs and glitches. That's why you need a server config and do it dynamically, like it says on that other thread. e.g. what happens if the player joins server1 which has the copper shield with durability 100, then the player switches to server 2 which says it is 200 You have no way to handle this if you just read the client's (probably default) config at mod loading/construction time.
-
[1.19.2] Make only one player can open GUI at the same time.
warjort replied to Wen Li's topic in Modder Support
Show what you have tried and what problems you have. With reproducable code for your problem on github. This is a support forum not a learn modding forum. We help you fix problems after you have tried to figure it out for yourself. We don't write or design your mod for you. If I was going to do something like that, I would investigate how ChestBlockEntity uses ContainerOpenersCounter to track whether it should render the lid as open. i.e. how many players have the container open. Then modify the logic for your usecase. -
[1.19.4] example of send a package to world player side
warjort replied to perromercenary00's topic in Modder Support
There are literally hundreds of threads in this forum where this is discussed because people do it wrong. Use Minecraft.getInstance() on the client then get what state you want. But you should put all client code in a separate class otherwise you are very likely going to crash the game on a dedicated server. https://docs.minecraftforge.net/en/latest/networking/simpleimpl/#handling-packets -
Rendering overlay error - Modded MC 1.18.2
warjort replied to ERboundary's topic in Support & Bug Reports
-
See ClientboundBlockUpdatePacket.
- 1 reply
-
- 1
-
java.lang.reflect.InvocationTargetException: Null
warjort replied to Lorys Blanchard's topic in Support & Bug Reports
Looks like you are missingf the koitlin mod wanted by the essential mod. -
You should speak to mod authors. From what I understand create updated their mod and broke their extension mods. So you will probably have to use the previous version of create until all other the mods catchup.
-
Mixins errors galore - Server Fails to Start
warjort replied to Mods_o_joy .'s topic in Support & Bug Reports
https://forums.minecraftforge.net/topic/122698-forge-1182-server-wont-load-up-with-dawncraft/#comment-533997 -
Mixins errors galore - Server Fails to Start
warjort replied to Mods_o_joy .'s topic in Support & Bug Reports
Then you need to show the log when you are using java 17 (the long term support version of java). Java 20 won't work if you have any mods that use mixins. -
Mixins errors galore - Server Fails to Start
warjort replied to Mods_o_joy .'s topic in Support & Bug Reports
Use java 17 -
Got this error when i create a new world
warjort replied to RIDERGHGH's topic in Support & Bug Reports
Conflict betewen apotheosis and unique enchantments. -
Need help with my All the mods 8 modpack Pls
warjort replied to Cjex's topic in Support & Bug Reports
-
[1.19.4] How can I stop trees spawning on top of ponds?
warjort replied to Feroov's topic in Modder Support
FLUID_SPRINGS are done before VEGETAL_DECORATION, see the GenerationStep.Decoration Without seeing your code (all the relevant code on github) it is impossible to say what is wrong. But if you look at the vanilla TreePlacements class it uses the following logic by default for the sapling that grows the tree: PlacementUtils.filteredBlockBySurvival() -> WouldSurvivePredicate -> [Sapling/Bush]Block.canSurvive() -> Block.mayPlaceOn() and Block.canSustainPlant() or in json https://github.com/misode/mcmeta/blob/data/data/minecraft/worldgen/placed_feature/oak.json -
Issue with expandability. There is a previous warning about a conflict with UnlimitedFluidity which might be the cause? But a warning normally means it handled the error.
-
Probably install the previous version of create until other mods have had chance to update? The create related mod authors would give you better help.
-
Some issue with create. From what I understand create recently updated their mod for 1.18.2 and broke some or all of their extension mods? e.g. there are many others.
-
Or from my footer: Or from the original response to your post Why do we have to keep repeating ourselves?
-
which I guess is this mod?