Search the Community
Showing results for tags 'client'.
-
My mod requires a DiscordRPC and Alphine and net.minecraft on a 10.0.2 Modding Gradle setup as 4.9, I do not have any of these? and I wen't to the forums to know a little about Gradle Implementations and Compiling Software.
-
I'm trying to have some code run on the tick that certain keybinds are initially pressed; I'm doing this in a ClientTickEvent event, and here's my code: @SubscribeEvent public static void playerInputSignatureHandler(TickEvent.ClientTickEvent event) { LocalPlayer player = Minecraft.getInstance().player; if (player == null) {return;} if (player.isSpectator()) {return;} ((IAbilityActivatingEntity) player).greater_adventures$setTimeSinceLastInput( ((IAbilityActivatingEntity) player).greater_adventures$getTimeSinceLastInput() - 1 ); if (((IAbilityActivatingEntity) player).greater_adventures$getTimeSinceLastInput() <= 0) { ((IAbilityActivatingEntity) player).greater_adventures$resetInputSignature(); } if (event.phase == TickEvent.Phase.END) { while (Minecraft.getInstance().options.keyLeft.consumeClick()) { if (((IAbilityActivatingEntity) player).greater_adventures$getTimeSinceLastInput() > 0) {return;} if (((IAbilityActivatingEntity) player).greater_adventures$getInputSignature().contains("key.left")) {return;} ((IAbilityActivatingEntity) player).greater_adventures$addToInputSignature("key.left"); // Mixins setPlayerInputTime(player); player.setDeltaMovement(0, 0.2, 0); // This line is for in-game testing purposes. } } } // This method is going to be used several times in the future. private static void setPlayerInputTime(LocalPlayer player) { ((IAbilityActivatingEntity) player).greater_adventures$setTimeSinceLastInput(10); } I was following the forge docs for some of this. I thought consumeClick() is supposed to return true upon the initial key press, but here the code runs as long as the keybind is held down, and I have no idea why. Any help is appreciated
-
Completely out of the blue my forge loader is lagging, although at 120 fps. Like when I turn it lags, or hit mobs it lags, or run sometimes although staying at 120 fps. I found another person having a similar problem: But there was no solution I dont think. I tried everything from: 1. Updating my computer 2. Updating/reinstalling forge 3. Testing if allocated memory was problem (if it was low or high or mid nothing changed) 4. Adding various performance mods 5. Deleting most of my profiles if storage was a problem. Really not sure what to do next or if forge is just broken for ever for me now. I am on mac btw.
-
Hello forgers, Can someone help me with with player detection functionality. I want the client to check if there is a player within 10 chunks of my character (same chunk included). So i need a way to constantly check if there is a player nearby. Maybe using the onClientTick event but i don't know what to use to achieve that. I've made mods back in forge 1.8 and a lot of things have changed since. Some methods got removed and some got changed. Any help is appreciated. Thank you!
-
Game keeps crashing with Exit Code: -1073741819
BabaMillions posted a topic in Support & Bug Reports
I'm playing Minecraft Forge 1.12.2 with my friends on a server hosted on my friends PC. All my friends can play the game normally and have all the same mods installed as me. But my game for some reason keeps crashing after about 2-3 minutes with the exit code: -1073741819, which I can't find any solutions or references for on the internet either. Often times it crashes my discord aswell, which I then have to manually restart. In some cases it has even caused a blackscreen. I have an AMD RX 6500 XT and a Ryzen 5 5500, with the latest 24.1.1 drivers installed. Everytime the game crashes, it also resets my AMD performance tuning "due to an unexpected system failure". One more thing to note, is that there is always an error window appearing, which states: "exception processing message: 0xc0000005 unexpected parameters". If anyone could help me fix this issue, I would be incredibly thankful. Here is the mod list: MixinBooster, SecurityCraft, ToggleSneak, Aether, AmbientSounds, AutoRegLib, Baubles, BetterCaves, BetterEnchantment, BetterMineshaftsForge, BetterNether, BiomesOPlenty, Bookshelf, CarryOn, CensoredASM, CreativeCore, DecoCraft, DungeonsMod, EnchantingPlus, EndReborn, MrCrayfishsFurniture, Galacticraft, Gravestone, Hwyla, IceAndFire, iChunUtil, InvMove, IronChest, JEI, LLibrary, Mantle, MowziesMobs, OpenBlocks, OpenModsLib, Optifine, PortalGun, PRTLib, Quark, RoguelikeDungeonsFnarEdition, SlashBlades, TinkersConstruct, Thaumcraft, TwilightForest, uTeamCore, UsefulBackpacks, Warpbook -
I am trying to create a (client-side) mod which would work almost like using F3 screen, but with custom pictures blit on player HUD (for example showing N/S when player is facing North/South etc.). Currently I am able to blit any image on screen I want, but I don't know, how to access player data for use in some logic to switch between images. I need help in what I should add in the blank space bellow so that the mod will blit on screen 1 if I'm facing South-ish (range -45 to 45 degrees) and 0 otherwise. public class HUDOverlay { private static final ResourceLocation COMPASS_0 = new ResourceLocation(HUDMod.MODID, "textures/compass/0.png"); private static final ResourceLocation COMPASS_1 = new ResourceLocation(HUDMod.MODID, "textures/compass/1.png"); public static final IGuiOverlay COMPASS_OVERLAY = ((gui, guiGraphics, partialTick, screenWidth, screenHeight) -> { int facing_direction = ___?___; if(-45 < facing_direction && facing_direction < 45) { guiGraphics.blit(COMPASS_1, screenWidth/2, 5, 0,0,3,4,3,4); } else { guiGraphics.blit(COMPASS_0, screenWidth/2, 5, 0,0,3,4,3,4); } }); } Essentially I'm asking for help in getting current client data. Thanks for any help.
-
I'm playing minecraft 1.20.1 (forge-1.20.1-47.2.0-installer) a very strange and unusual error has appeared that I've never encountered before. The problem is that I can not change the skin, nor connect to any to the server. This problem occurs ONLY ON MINECRAFT FORGE, on other versions (Fabric, Vanilla, Quilt) this error does not occur. Below is an example from the log with the main error: [08:53:53] [Worker-Main-9/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@5df12991[id=219d1209-1e4e-4b0b-bca3-916bc11b0c61,name=Lord_of_anime,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:119) ~[authlib-4.0.43.jar%23111!/:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:91) ~[authlib-4.0.43.jar%23111!/:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) ~[authlib-4.0.43.jar%23111!/:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:51) ~[authlib-4.0.43.jar%23111!/:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:48) ~[authlib-4.0.43.jar%23111!/:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3533) ~[guava-31.1-jre.jar%23109!/:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2282) ~[guava-31.1-jre.jar%23109!/:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2159) ~[guava-31.1-jre.jar%23109!/:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2049) ~[guava-31.1-jre.jar%23109!/:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3966) ~[guava-31.1-jre.jar%23109!/:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3989) ~[guava-31.1-jre.jar%23109!/:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4950) ~[guava-31.1-jre.jar%23109!/:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4956) ~[guava-31.1-jre.jar%23109!/:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:149) ~[authlib-4.0.43.jar%23111!/:?] at net.minecraft.client.Minecraft.m_91095_(Minecraft.java:2438) ~[client-1.20.1-20230612.114412-srg.jar%23156!/:?] at net.minecraft.client.resources.SkinManager.m_118821_(SkinManager.java:107) ~[client-1.20.1-20230612.114412-srg.jar%23156!/:?] at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395) ~[?:?] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] Caused by: java.net.SocketTimeoutException: Connect timed out at sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:551) ~[?:?] at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) ~[?:?] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?] at java.net.Socket.connect(Socket.java:633) ~[?:?] at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304) ~[?:?] at sun.net.NetworkClient.doConnect(NetworkClient.java:178) ~[?:?] at sun.net.www.http.HttpClient.openServer(HttpClient.java:533) ~[?:?] at sun.net.www.http.HttpClient.openServer(HttpClient.java:638) ~[?:?] at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266) ~[?:?] at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380) ~[?:?] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) ~[?:?] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) ~[?:?] at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:140) ~[authlib-4.0.43.jar%23111!/:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:96) ~[authlib-4.0.43.jar%23111!/:?] ... 21 more I have a licensed minecraft. Reinstalling Windows, reinstalling minecraft, reinstalling Java did not help. full log - https://paste.ee/p/lWQj2
-
I created a item when you click on block it will generate a skyisland. But it just generate one dirt on where I click. I'm sure it generated because there is an invisible barrel in which the dirt should be. And when I restart the game, the invisible dirt appear. level.setBlockAndUpdate() is the same. Item.java package net.p1nero.skyislandbuilder.item; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.InteractionResultHolder; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.context.UseOnContext; import net.minecraft.world.level.Level; import net.p1nero.skyislandbuilder.utils.SkyIslandGenerator; public class PerlinSkyIslandBuilderItem extends Item { public PerlinSkyIslandBuilderItem(Properties properties) { super(properties); } @Override public InteractionResultHolder<ItemStack> use(Level p_41432_, Player p_41433_, InteractionHand p_41434_) { //TODO: Open setting window return super.use(p_41432_, p_41433_, p_41434_); } @Override public InteractionResult useOn(UseOnContext context) { SkyIslandGenerator skyIslandGenerator = new SkyIslandGenerator(context.getClickedPos(),context.getLevel()); skyIslandGenerator.printSkyIsland(); return super.useOn(context); } } SkyIslandGenerator.java public void printSkyIsland() { double[][] skyIsland = generateSkyIsland(width, height, scale, octaves, persistence, lacunarity, seed, maxHeight*10); int maxHeight = -1; int max_x = 0, max_z = 0; for (int x = 0; x < width; x++) { for (int z = 0; z < height; z++) { if (skyIsland[x][z] > maxHeight) { maxHeight = (int)skyIsland[x][z]; max_x = x; max_z = z; } System.out.print("("+x+','+z+"):"+(int)skyIsland[x][z]+" "); } System.out.println(); } for (int x = 0; x < width; x++) { for (int z = 0; z < height; z++) { for(int y = bottom.getY()+maxHeight ; y>bottom.getY()+maxHeight-skyIsland[x][z] ; y--){ level.setBlock(new BlockPos(bottom.getX()+x-max_x,y,bottom.getZ()+z-max_z), Blocks.DIRT.defaultBlockState(),3); } } } }
-
How to make an entity have a short animation when an event is triggered?
-
Topic for making tags
-
- 1.10.2
- 1.11.2
-
(and 81 more)
Tagged with:
- 1.10.2
- 1.11.2
- 1.12.2
- 1.13.2
- 1.14.4
- 1.15.2
- 1.16.5
- 1.17.1
- 1.18.2
- 1.19.0
- 1.19.1
- 1.19.2
- 1.19.3
- 1.19.4
- 1.2.5
- 1.20.0
- 1.3.2
- 1.4.7
- 1.5.2
- 1.6.4
- 1.7.10
- 1.8.9
- 1.9.4
- armour
- bad jvm args
- biomes
- blocks
- broken mod
- bug
- capabilities
- client
- client-only mods on server
- codecs
- commands
- dimensions
- effects
- enchantments
- entities
- events
- feature request
- fluids
- food
- gradle
- groovy
- guis
- ide
- installer
- items
- java
- kotlin
- launcher
- libraries
- loot
- metadata
- missing jar association
- missing java
- missing mods
- mixin
- needs more info
- networking
- news
- optifine
- ores
- out of memory
- outdated drivers
- particles
- performance
- porting
- potions
- recipes
- registries
- rendering
- scala
- server
- solved
- sounds
- textures
- tools
- tutorial
- weapons
- worldgen
- wrong java version
- wrong mod version