warjort
Members-
Posts
5420 -
Joined
-
Last visited
-
Days Won
175
Everything posted by warjort
-
Forge 1.18.2 crashes when trying to launch
warjort replied to BossEagle655's topic in Support & Bug Reports
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 -
You are missing a dependency - the vr_library mod.
-
Minecraft 1.18 stops responding when loading terrain
warjort replied to Potheadsipdit's topic in Support & Bug Reports
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. -
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).
-
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.
-
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
warjort replied to shroomy's topic in Support & Bug Reports
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 -
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)
-
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. 🙂
-
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.
-
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.
-
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
warjort replied to Mattah12's topic in Modder Support
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
warjort replied to Mattah12's topic in Modder Support
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
warjort replied to Mattah12's topic in Modder Support
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 -
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
warjort replied to Moonlight shinesparkle's topic in Support & Bug Reports
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
warjort replied to Moonlight shinesparkle's topic in Support & Bug Reports
Uninstall Optifine, you don't need it on the server. -
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.
-
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
warjort replied to Nobotter's topic in Support & Bug Reports
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