warjort
Members-
Posts
5420 -
Joined
-
Last visited
-
Days Won
175
Everything posted by warjort
-
You are absolutely correct: https://forge.gemwire.uk/wiki/Key_Mappings 🙂
-
You get the world path using level.getServer().getWorldPath(LevelResource.ROOT) If you are trying to store additional data for a level or chunk I would recommend using a capability. See Data Storage here: https://forge.gemwire.uk/wiki/Main_Page
-
This means this code won't be executed in single player mode. Why do you need this? The server logical side is always available, unlike the client.
-
Use http://gist.github.com or similar.
-
Server tick loop in a singleplayer world
warjort replied to ElPro123MasterX's topic in Support & Bug Reports
You have the wrong version of optifine for the version of forge you are using. -
One of your mods has broken network serialization. Impossible to say which with so little information shown.
-
1.19.2 Server On Ubuntu 22.04 But Wont Load Mods
warjort replied to BaytaeTistear's topic in Support & Bug Reports
There is no error in the log. -
Minecraft custom Totem's Animation not functioning
warjort replied to Bogienin's topic in Modder Support
And what about your debugging I suggested you do? This works fine for me. I get a spinning diamond when I jump. @Mod.EventBusSubscriber(modid = MOD_ID, value=Dist.CLIENT) public class Test { @SubscribeEvent public static void livingJump(LivingJumpEvent event) { var entity = event.getEntity(); if (entity instanceof LocalPlayer) { Minecraft.getInstance().gameRenderer.displayItemActivation(new ItemStack(Items.DIAMOND, 1)); } } } -
Mod loading fails with java.lang.StringIndexOutOfBoundsException
warjort replied to luckykid's topic in Modder Support
I suggest, you download the mdk and modify that. https://docs.minecraftforge.net/en/latest/gettingstarted/ It's almost like you are deliberately trying to make your mod have every possible misconfiguration/error. While at the same time forcing us to continually ask for information rather than you posting the relevant files you have changed. And you must have seen the footnote to my posts multiple times now. Most likely this problem is caused by you not specifying your minecraft dependency or run configuration properly in the build.gradle or the mods.toml? Or you changed something important and didn't regenerate your ide run configurations. But I can only guess with you drip feeding information. -
Mod loading fails with java.lang.StringIndexOutOfBoundsException
warjort replied to luckykid's topic in Modder Support
Looks like your class is not in a package? For some reason Forge doesn't like mod classes in the root package. -
You can attach a capability to a LevelChunk. See Data Storage here: https://forge.gemwire.uk/wiki/Main_Page
-
Mod loading fails with java.lang.StringIndexOutOfBoundsException
warjort replied to luckykid's topic in Modder Support
Nope. It doesn't even show the StringIndexOutOfBoundException you partially quoted earlier. -
Mixin doesn't like you using java 19. Use java 17
-
Mod loading fails with java.lang.StringIndexOutOfBoundsException
warjort replied to luckykid's topic in Modder Support
Why don't you show the full error message? One obvious thing is you can't have uppercase characters in block names or any ResourceLocation. But AFAIK you don't get that error message for this. -
Remove rubidium, oculus and other broken client side only mods from the server. You don't need them there.
-
[1.18.2] Make hostile entities can't target player
warjort replied to FantaLaTone's topic in Modder Support
ok, you are using 1.18 which doesn't have that event. So you will need to setTarget(null) manually. -
[1.18.2] Make hostile entities can't target player
warjort replied to FantaLaTone's topic in Modder Support
You tried something different. It is LivingChangeTargetEvent which is cancellable. You should learn to do your own research/debugging instead of asking us to fix every little problem you come across. -
https://github.com/sp614x/optifine/issues/7103
-
[1.18.2] Make hostile entities can't target player
warjort replied to FantaLaTone's topic in Modder Support
LivingEntityChangeTargetEvent -
FMLCommonSetupEvent or FMLClientSetupEvent runs after the config loading (I assume you are not using server configs which are loaded with the world) . See: https://forge.gemwire.uk/wiki/Stages_of_Modloading You should read that wiki in general.
-
Looks like one of your mods is messing around with the block break progress and has broken it. That is where this error is occurring. I have highlighted the mods that have changed the affected class. But this could be any of your mods. Check you have the latest version of your mods and see if one of them has this already reported as a bug. Otherwise, you will have to experiment with removing mods until you find the problem one. (Backup your world before doing this). Start with mods that modify block breaking, e.g. I can see you have multimine and reap.