Everything posted by warjort
-
Adding Mod Recipe Types Breaks Multiplayer JEI but Still works in single player.
You don't directly register into registries with forge. You are trying to do it in the mod's constructor. You should use the same DeferredRegistry pattern you used for the serializers to register the recipe types.
-
Forge 1.18.2 crashes when trying to launch
The error is with the obfuscate mod. I don't see a 1.18 version of that mod on curseforge? Which version do you have installed? https://www.curseforge.com/minecraft/mc-mods/obfuscate/files
-
minecraft likes squares???
You are missing a dependency - the vr_library mod.
-
Minecraft 1.18 stops responding when loading terrain
I believe this is caused by your maxFps being set to zero in the options.txt in your minecraft folder? Change the value in minecraft's video settings. Or if that doesn't work, change it in the file and restart minecraft.
-
How to detect if a player uses my mod?
You need to get people's informed permission to collect data about them. And having an open rest endpoint that anybody can query isn't good either (even if the data might seem trivial).
-
How to find a block in a world client-side?
You don't need to update a minimap every 0.05 seconds. I'm pretty sure you are writing an x-ray.🙂 Anyway have a look at BlockPos.findClosestMatch() or one of the other static methods like betweenClosed(). Their main optimisation I guess is using MutableBlockPos instead of creating 120,000 new BlockPos() like you are.
-
Use decimal numbers in a text
getBurnTime() returns an int. 100/200 = 0 for an int cast it to a float first ((float) 100)/200 = 0.5 But you will probably want to use String.format() on the result to choose the significant digits?
-
The game crashed whilst rendering overlay
This issue was fixed in forge 40.1.54, you have 40.1.53 https://maven.minecraftforge.net/net/minecraftforge/forge/1.18.2-40.1.60/forge-1.18.2-40.1.60-changelog.txt
-
[1.18.2] Force clientsided Chunk Update
By the way, the method you are using to change the biomes won't work in 1.19 The biomes are now stored in a PalettedContainerRO (RO = read only)
-
[1.18.2] Force clientsided Chunk Update
For the same reason, you can't use net.minecraft.world.level.biome.Biomes.SNOWY_TAIGA You have to look it up in the registry. Sorry, its a ResourceKey not the actual biome. 🙂
-
help, please, I was doing a modpack and suddenly such an error popped up, I don't know what to do!
Not create, it is createcafe, a food mod. 🙂
-
[1.18.2] Force clientsided Chunk Update
You won't be able to use the builtin registries for biomes at runtime. They are just templates. The ones actually used are found using MinecraftServer.registryAccess().registryOrThrow() These are copies of the builtin ones augmented with the stuff from datapacks.
-
Forge installer is asking me to use an application to open
https://johann.loefflmann.net/en/software/jarfix/index.html
-
[1.18.2] Force clientsided Chunk Update
Can you confirm the packet is received by the client. If it is, I would guess there is something about the way you are updating the data that means the code that creates the packet cannot see your change? You should try deserialising the packet after you create it to see if the data it contains is correct.
-
[1.18.2] Force clientsided Chunk Update
Are you sure the player is correct? You should really be sending to all players that have that chunk loaded. Maybe get the list using something like (I am not sure this is correct)? List<ServerPlayer> list = serverLevel.getChunkSource().chunkMap.getPlayers(chunkPos, false); You should also be able to see if your chunk packet is actually received on the client if you listen for forge's ChunkEvent.Load
-
[1.18.1] Torch not dropping on break and not quite rendering properly
I still don't see a lootTables.put() in the above code?
-
[1.18.1] Torch not dropping on break and not quite rendering properly
For the torch rendering, not really my area of expertise. But you are using RenderType.translucent() while vanilla uses RenderType.cutout() https://github.com/Mattah12/Kanohi_Craft2022/blob/62dac5df0ba4f7e5e381ef78e01050721ed2dcd8/src/main/java/com/Mattah12/kanohicraft/setup/ClientSetup.java#L21
-
[1.18.1] Torch not dropping on break and not quite rendering properly
For the loot pool stuff, you create your builders here, but don't do anything with the return value? https://github.com/Mattah12/Kanohi_Craft2022/blob/62dac5df0ba4f7e5e381ef78e01050721ed2dcd8/src/main/java/com/Mattah12/kanohicraft/datagen/KanLootTables.java#L26
-
[1.19] Check if coordinates are air
To answer your question directly: Level level = player.level; BlockPos pos = player.blockPosition(); boolean isAir = level.getBlockState(pos).isAir(); But I think you need to familiarise yourself with the main minecraft classes. The above is basic stuff, but it might not be what you really want. e.g. maybe you want one of the level.isUnobstructed() to check for blocks the player can walk through
-
1.18.2 - 40.1.60 server crash
You need to use forge-40.1.57 if you want to run optifine. Until it updates. https://github.com/sp614x/optifine/issues/6974
-
1.18.2 - 40.1.60 server crash
Uninstall Optifine, you don't need it on the server.
-
Game not open because of mekanism
Your actual error is Which is the radium mod. If you only get the problem when mekanism is loaded then they must be conflicting with each other in some way. Check you have the latest versions of these mods, then contact their mod authors.
-
Pigman don't go after turtle eggs
I reported this issue so it doesn't get lost: https://github.com/MinecraftForge/MinecraftForge/issues/8853
-
Forge version 40.1.59 and 40.1.60 crash
There is no compatible optifine version. forge 40.1.58 (released yesterday) changed a method signature that optifine uses. So its either use forge 40.1.57 or remove optifine until it updates. https://github.com/sp614x/optifine/issues/6974
-
i'm new to the forge app and tried to launch a modpack, my game crashed
Click on your "mod pack" (the image not the play button) In its main screen there are three vertical dots next to the play button, click that and select "Profile Options". Change the forge version in the advanced settings.
IPS spam blocked by CleanTalk.