warjort
Members-
Posts
5420 -
Joined
-
Last visited
-
Days Won
175
Everything posted by warjort
-
Not your computer as such, something is misconfigured. Show your hosts file: %windir%\system32\drivers\etc\hosts where %windir% is probably c:\windows
-
@Mod.EventBusSubscriber(modid = ALMTS.MOD_ID) // ** ADD THIS ** public class ModWorldEventsAlt { -- snip -- @SubscribeEvent public static void biomeLoadingEvent(final BiomeLoadingEvent event) { You don't have a subscriber annotation. See the comment above. I assume you don't have other (not shown) code registering that event handler?
-
ava.lang.NoSuchFieldError: f_13131_ at com.firecontroller1847.levelhearts.gui.IngameGui.redrawAir(IngameGui.java:108) ~[levelhearts-1.18.2-2.4.0.jar%2373!:?] {re:classloading} You are trying to use a mod for 1.18.2 with minecraft 1.18, this won't work. You need to download the 1.18 version (see "Game Version") of that mod: https://www.curseforge.com/minecraft/mc-mods/levelhearts/files/all?filter-game-version=1738749986%3a73250
-
There's like zero chance this is minecraft/forge issue. It's a java program that run's in a java virtual machine. It doesn't even get to talk to the operating system directly, let alone the hardware. minecraft/forge -> java -> operating system -> hardware You should look at your operating system logs to see if it recorded something, e.g. windows event viewer Otherwise, your most likely causes are; An interruption or spike in your power supply Faulty hardware (overheating is only one example of this). But PC support is not really a subject for these forums. ๐
-
ban a player who has reached the time limit played
warjort replied to 3mptysl's topic in Modder Support
I don't think you want to reset the vanilla stat. Some other mod might be using for some other processing. You should make your own stat, something like: // Registration public static final DeferredRegister<ResourceLocation> STATS = DeferredRegister.create(Registry.CUSTOM_STAT_REGISTRY, MODID); public static final RegistryObject<ResourceLocation> MY_PLAY_TIME = STATS.register("my_play_time", () -> new ResourceLocation(MODID, "my_play_time")); @SubscribeEvent public static void tickHandler(TickEvent.PlayerTickEvent event) { if (event.side.isServer() && event.phase == Phase.END) { ServerPlayer player = (ServerPlayer) event.player; ServerStatsCounter stats = player.getStats(); // Increment the stat Stat<ResourceLocation> stat = Stats.CUSTOM.get(MY_PLAY_TIME.get()); player.awardStat(stat); // Check the stat int playTime = stats.getValue(stat); if (playTime >= 200) { player.resetStat(stat); // Your ban code here } } } You obviously need to register the STATS registry like other DeferredRegisters. And you will want to add something to your language file so the stat has a proper description in the stats screen. That way the players can see how long they have until they get banned. ๐ -
How to remove the sight (cross in the center of the screen)
warjort replied to Luckydel's topic in Modder Support
@Mod.EventBusSubscriber(modid = MODID, value = Dist.CLIENT) public class ClientEvents { @SubscribeEvent public static void renderCrossHair(RenderGuiOverlayEvent.Pre event) { if (VanillaGuiOverlay.CROSSHAIR.type() == event.getOverlay()) { if (Minecraft.getInstance().player.getItemInHand(InteractionHand.OFF_HAND).is(Items.DIAMOND)) { event.setCanceled(true); } } } } Now put a diamond in your offhand/shield slot. ๐ -
ban a player who has reached the time limit played
warjort replied to 3mptysl's topic in Modder Support
You can use one of those player stats I suggested. Or you can attach a player capability that holds the data. Look at "DataStorage" here: https://forge.gemwire.uk/wiki/Main_Page -
ban a player who has reached the time limit played
warjort replied to 3mptysl's topic in Modder Support
The most important part of that code for your question is "timerToKick" and yet you don't show how it is defined? I can deduce it must be a static field somewhere which means every player is updating/checking the same timer. Also, I guess you never tested this code on a client? It would crash on that unchecked cast to a ServerPlayer. -
How to remove the sight (cross in the center of the screen)
warjort replied to Luckydel's topic in Modder Support
Subscribe to RenderGuiOverlayEvent.Pre and event.setCancel(true) for whatever conditions you want. The overlay you want is: VanillaGuiOverlay.CROSSHAIR -
ban a player who has reached the time limit played
warjort replied to 3mptysl's topic in Modder Support
Show what you tried. "It doesn't work" type statements are useless. We are not psychic. ๐ I don't know if these are useful to you, but every player has a number of Stats that keep track of durations (in ticks). e.g. Stats.PLAY_TIME or Stats.TIME_SINCE_DEATH You could also make your own Stat using a PlayerTickEvent if these are not what you want. -
Mod File: /C:/Users/compu/AppData/Roaming/.minecraft/mods/AdditionalEnchantedMiner-1.19.2-19.6.jar Failure message: QuarryPlus has class loading errors java.lang.reflect.InvocationTargetException: null Mod Version: 19.6 Mod Issue URL: https://github.com/Kotori316/QuarryPlus/issues Exception message: java.lang.IncompatibleClassChangeError: Method 'net.minecraftforge.eventbus.api.BusBuilder net.minecraftforge.eventbus.api.BusBuilder.builder()' must be Methodref constant If you have the latest versions, you should contact the mod author using that link.
-
Caused by: java.lang.NoClassDefFoundError: com/simibubi/create/repack/registrate/Registrate at com.github.talrey.createdeco.CreateDecoMod.<init>(CreateDecoMod.java:53) ~[createdeco-1.2.9-1.18.2.jar%2382!/:1.2.9-1.18.2] ... 14 more This is an issue with createdeco. It's probably not up-to-date with the latest changes to create. https://github.com/talrey/CreateDeco/issues/36 https://github.com/Creators-of-Create/Create/issues/3645
-
For curseforge you need to enable the forge debug.log in the minecraft settings. It will then be in the logs subfolder of the profile folder.
-
That's a misrepresentation and I think you know it. ๐ Isn't having fun the whole point of writing mods? I agree they are 2 different philosophies (which you prefer is a matter of taste): Forge: A one-stop shop for everything you need for modding, concentrating on mod compatibility/correctness Fabric: An a-la-carte (don't pay for what you don't need) approach where the fabric-api concentrates on common use cases and the ecosystem provides more specialised apis, and don't expect it to hold your hand when it comes to writing correct mods Forge itself has something of the a-la-carte with mods like curios, "waila", jei, patchoulli, terrablender, etc. having specialised apis not provided by forge. It's really a matter of where the 2 draw the line. I agree the difference in philosophy makes porting mods more difficult. For the original poster, Litematica are already working on it (but they have been for a while): https://github.com/maruohon/litematica/issues/234
-
java.lang.ClassCastException: class net.minecraft.client.renderer.CubeMap cannot be cast to class shadows.packmenu.panorama.VariedRenderSkyboxCube (net.minecraft.client.renderer.CubeMap is in module [email protected] of loader 'TRANSFORMER' @1ad1be5d; shadows.packmenu.panorama.VariedRenderSkyboxCube is in module [email protected] of loader 'TRANSFORMER' @1ad1be5d) at shadows.packmenu.PackMenuClient.lambda$load$0(PackMenuClient.java:140) ~[PackMenu-1.18.2-4.1.1.jar%23274!/:4.1.1] {re:classloading} The actual error is in PackMenu. But given the error message, it is likely an earlier problem not shown in the crash report. Post a link to your logs/debug.log
-
Crash when using Goat Horn (Forge 1.19.2-43.1.1)
warjort replied to TacoRaptor's topic in Support & Bug Reports
This was fixed in 43.1.2: https://github.com/MinecraftForge/MinecraftForge/issues/8985 https://maven.minecraftforge.net/net/minecraftforge/forge/1.19.2-43.1.2/forge-1.19.2-43.1.2-changelog.txt -
-- MOD createcurios -- Details: Mod File: /C:/Users/A0001/curseforge/minecraft/Instances/Betta Minecraft/mods/Create-Curios-1.18.2-v1.0.0.jar Failure message: Create Curios (createcurios) encountered an error during the sided_setup event phase java.lang.NoSuchFieldError: GOGGLES Mod Version: 1.0.0 Mod Issue URL: NOT PROVIDED Exception message: java.lang.NoSuchFieldError: GOGGLES Stacktrace: at com.luis.createcurios.goggle.Render.register(Render.java:14) ~[Create-Curios-1.18.2-v1.0.0.jar%23110!/:1.0] {re:classloading,pl:runtimedistcleaner:A} at com.luis.createcurios.goggle.Overlay.onClientSetup(Overlay.java:32) ~[Create-Curios-1.18.2-v1.0.0.jar%23110!/:1.0] {re:classloading} It's an issue with createcurios, it's probably not up-to-date with the recent changes in create, contact the mod author.
-
I deduce you didn't read what I suggested. ๐
-
You are going to need spend time looking at that wiki. You will just annoy people if you keep asking questions about stuff that is answered there. e.g. your modded item question is answered in the Registration section under @ObjectHolder Since you don't show your code, I have no idea why it gives you 2 items. I can tell you that a debugger will help you understand what is happening. By the way, earlier you posted a screen shot of your code. Don't do this. In some forums posting text as images will get your thread locked or deleted, not here though, people will just complain. ๐ You should always post code using <> tool so we can clearly see it and quote it.