Jump to content

Recommended Posts

Posted

 

Здравствуйте, мы с другом решили поиграть в сборку Техномага. Пока мы играли, все было хорошо, но когда вышел мой друг, мне захотелось еще немного поиграть и построить шахту. Я спустился по лестнице и нашел спаунер скелетов и 2 сундука, и мне захотелось открыть 1 из них. , а когда пошел за вторым и открыл 2, то выбросил. Когда я снова вхожу в мир и открываю тот сундук, меня не выкидывает и я спокойно забираю добычу из сундука. Потом я иду дальше исследовать шахту и меня бросил пещерный паук в лаву. Я умираю, нажимаю кнопку оживления и меня снова выбрасывают. Потом я отправился исследовать мир и через некоторое время наступила ночь и на меня напал маленький зомби, я даже не успел его ударить как игра вылетела.

Список модов:

Ботания
Промышленность Вышеупомянутая
Магия крови
Дополнительный Зачарованный Шахтер
EvilCraft
ProjectE
Механики Конструкт
Мистическое Сельское хозяйство
PlantTech 2
Описания чар Биомы O' Plenty TerraForged Железные сундуки Hwyla Достаточно предметов (JEI)



 

вот мои журналы

https://pastebin.com/JfweXQqC

 

Posted

 

---- Minecraft Crash Report ----

// Hi. I'm Minecraft, and I'm a crashaholic.

 

Time: 08.01.24 0:01

Description: Rendering screen

 

java.lang.NullPointerException: Rendering screen

at net.minecraft.util.text.TextProcessing.func_238340_a_(SourceFile:88) ~[?:?] {re:classloading}

at net.minecraft.util.text.TextProcessing.func_238339_a_(SourceFile:84) ~[?:?] {re:classloading}

at net.minecraft.util.text.TextProcessing.func_238337_a(SourceFile:128) ~[?:?] {re:classloading}

at net.minecraft.util.text.TextProcessing$$Lambda$9563/306942428.accept(Unknown Source) ~[?:?] {}

at net.minecraft.util.text.ITextComponent.func_230534_b_(SourceFile:112) ~[?:?] {re:classloading}

at net.minecraft.util.text.ITextComponent.func_230439_a_(SourceFile:79) ~[?:?] {re:classloading}

at net.minecraft.util.text.ITextComponent.func_230439_a_(SourceFile:85) ~[?:?] {re:classloading}

at net.minecraft.util.text.TextProcessing.func_238343_a_(SourceFile:128) ~[?:?] {re:classloading}

at net.minecraft.util.text.CharacterManager.func_238356_a_(SourceFile:47) ~[?:?] {re:classloading}

at net.minecraft.client.gui.FontRenderer.func_238414_a_(SourceFile:329) ~[?:?] {re:classloading,pl:accesstransformer:B}

at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:458) ~[?:?] {re:classloading}

at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:422) ~[?:?] {re:classloading}

at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:397) ~[?:?] {re:classloading}

at net.minecraft.client.gui.screen.Screen.renderWrappedToolTip(Screen.java:134) ~[?:?] {re:computing_frames,pl:accesstransformer:B,xf:fml:configured:set_background_texture_2,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:configured:set_background_texture_2,pl:runtimedistcleaner:A}

at net.minecraft.client.gui.screen.Screen.func_230457_a_(Screen.java:118) ~[?:?] {re:computing_frames,pl:accesstransformer:B,xf:fml:configured:set_background_texture_2,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:configured:set_background_texture_2,pl:runtimedistcleaner:A}

at net.minecraft.client.gui.screen.inventory.ContainerScreen.func_230459_a_(ContainerScreen.java:164) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}

at net.minecraft.client.gui.screen.inventory.InventoryScreen.func_230430_a_(SourceFile:96) ~[?:?] {re:classloading,pl:accesstransformer:B}

at net.minecraftforge.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:363) ~[?:?] {re:classloading}

at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:356) ~[?:?] {re:classloading}

at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:492) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}

at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}

at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}

at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}

at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [forge-1.16.5-36.2.41.jar:36.2] {}

at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$499/903716563.call(Unknown Source) [forge-1.16.5-36.2.41.jar:36.2] {}

at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}

at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}

at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}

at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {re:classloading}

at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {re:classloading}

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Thread: Render thread

Stacktrace:

at net.minecraft.util.text.TextProcessing.func_238340_a_(SourceFile:88) ~[?:?] {re:classloading}

at net.minecraft.util.text.TextProcessing.func_238339_a_(SourceFile:84) ~[?:?] {re:classloading}

at net.minecraft.util.text.TextProcessing.func_238337_a(SourceFile:128) ~[?:?] {re:classloading}

at net.minecraft.util.text.TextProcessing$$Lambda$9563/306942428.accept(Unknown Source) ~[?:?] {}

at net.minecraft.util.text.ITextComponent.func_230534_b_(SourceFile:112) ~[?:?] {re:classloading}

at net.minecraft.util.text.ITextComponent.func_230439_a_(SourceFile:79) ~[?:?] {re:classloading}

at net.minecraft.util.text.ITextComponent.func_230439_a_(SourceFile:85) ~[?:?] {re:classloading}

at net.minecraft.util.text.TextProcessing.func_238343_a_(SourceFile:128) ~[?:?] {re:classloading}

at net.minecraft.util.text.CharacterManager.func_238356_a_(SourceFile:47) ~[?:?] {re:classloading}

at net.minecraft.client.gui.FontRenderer.func_238414_a_(SourceFile:329) ~[?:?] {re:classloading,pl:accesstransformer:B}

at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:458) ~[?:?] {re:classloading}

at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:422) ~[?:?] {re:classloading}

at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:397) ~[?:?] {re:classloading}

at net.minecraft.client.gui.screen.Screen.renderWrappedToolTip(Screen.java:134) ~[?:?] {re:computing_frames,pl:accesstransformer:B,xf:fml:configured:set_background_texture_2,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:configured:set_background_texture_2,pl:runtimedistcleaner:A}

at net.minecraft.client.gui.screen.Screen.func_230457_a_(Screen.java:118) ~[?:?] {re:computing_frames,pl:accesstransformer:B,xf:fml:configured:set_background_texture_2,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:configured:set_background_texture_2,pl:runtimedistcleaner:A}

at net.minecraft.client.gui.screen.inventory.ContainerScreen.func_230459_a_(ContainerScreen.java:164) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}

at net.minecraft.client.gui.screen.inventory.InventoryScreen.func_230430_a_(SourceFile:96) ~[?:?] {re:classloading,pl:accesstransformer:B}

at net.minecraftforge.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:363) ~[?:?] {re:classloading}

at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:356) ~[?:?] {re:classloading}

-- Screen render details --

Details:

Screen name: net.minecraft.client.gui.screen.inventory.InventoryScreen

Mouse location: Scaled: (433, 261). Absolute: (867.000000, 522.000000)

Screen size: Scaled: (960, 505). Absolute: (1920, 1009). Scale factor of 2.000000

 

-- Affected level --

Details:

All players: 1 total; [ClientPlayerEntity['ChepuChill'/939, l='ClientLevel', x=81.62, y=83.00, z=-11030.59]]

Chunk stats: Client Chunk Cache: 729, 481

Level dimension: minecraft:overworld

Level spawn location: World: (1472,75,1408), Chunk: (at 0,4,0 in 92,88; contains blocks 1472,0,1408 to 1487,255,1423), Region: (2,2; contains chunks 64,64 to 95,95, blocks 1024,0,1024 to 1535,255,1535)

Level time: 461243 game time, 517435 day time

Server brand: Mohist

Server type: Non-integrated multiplayer server

Stacktrace:

at net.minecraft.client.world.ClientWorld.func_72914_a(ClientWorld.java:458) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}

at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2031) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:623) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}

at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}

at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}

at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [forge-1.16.5-36.2.41.jar:36.2] {}

at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$499/903716563.call(Unknown Source) [forge-1.16.5-36.2.41.jar:36.2] {}

at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}

at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}

at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}

at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {re:classloading}

at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {re:classloading}

 

 

-- System Details --

Details:

Minecraft Version: 1.16.5

Minecraft Version ID: 1.16.5

Operating System: Windows 10 (amd64) version 10.0

Java Version: 1.8.0_51, Oracle Corporation

Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 512388472 bytes (488 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)

CPUs: 12

JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+IgnoreUnrecognizedVMOptions -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

ModLauncher: 8.1.3+8.1.3+main-8.1.x.c94d18ec

ModLauncher launch target: fmlclient

ModLauncher naming: srg

ModLauncher services:

/mixin-0.8.4.jar mixin PLUGINSERVICE

/eventbus-4.0.0.jar eventbus PLUGINSERVICE

/forge-1.16.5-36.2.41.jar object_holder_definalize PLUGINSERVICE

/forge-1.16.5-36.2.41.jar runtime_enum_extender PLUGINSERVICE

/accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE

/forge-1.16.5-36.2.41.jar capability_inject_definalize PLUGINSERVICE

/forge-1.16.5-36.2.41.jar runtimedistcleaner PLUGINSERVICE

/mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE

/forge-1.16.5-36.2.41.jar fml TRANSFORMATIONSERVICE

FML: 36.2

Forge: net.minecraftforge:36.2.41

FML Language Providers:

[email protected]

minecraft@1

[email protected]

Mod List:

forge-1.16.5-36.2.41-client.jar |Minecraft |minecraft |1.16.5 |DONE |Manifest: NOSIGNATURE

Tinkers-Construct-3.3.4.335-for-1.16.5.jar |Tinkers' Construct |tconstruct |3.3.4.335 |DONE |Manifest: NOSIGNATURE

industrial-foregoing-1.16.5-3.2.14.7-19.jar |Industrial Foregoing |industrialforegoing |3.2.14.7 |DONE |Manifest: NOSIGNATURE

EvilCraft-1.16.5-1.1.17.jar |EvilCraft |evilcraft |1.1.17 |DONE |Manifest: NOSIGNATURE

configured-1.5.4-1.16.5.jar |Configured |configured |1.5.4 |DONE |Manifest: NOSIGNATURE

CyclopsCore-1.16.5-1.12.4.jar |Cyclops Core |cyclopscore |1.12.4 |DONE |Manifest: NOSIGNATURE

Bookshelf-Forge-1.16.5-10.4.33.jar |Bookshelf |bookshelf |10.4.33 |DONE |Manifest: eb:c4:b1:67:8b:f9:0c:db:dc:4f:01:b1:8e:61:64:39:4c:10:85:0b:a6:c4:c7:48:f0:fa:95:f2:cb:08:3a:e5

EnchantmentDescriptions-1.16.5-7.1.23.jar |EnchantmentDescriptions |enchdesc |7.1.23 |DONE |Manifest: eb:c4:b1:67:8b:f9:0c:db:dc:4f:01:b1:8e:61:64:39:4c:10:85:0b:a6:c4:c7:48:f0:fa:95:f2:cb:08:3a:e5

titanium-1.16.5-3.2.8.8-24.jar |Titanium |titanium |3.2.8.8 |DONE |Manifest: NOSIGNATURE

Cucumber-1.16.5-4.1.12.jar |Cucumber Library |cucumber |4.1.12 |DONE |Manifest: NOSIGNATURE

AdditionalEnchantedMiner-1.16.5-16.1.11.jar |QuarryPlus |quarryplus |16.1.11 |DONE |Manifest: 1a:13:52:63:6f:dc:0c:ad:7f:8a:64:ac:46:58:8a:0c:90:ea:2c:5d:11:ac:4c:d4:62:85:c7:d1:00:fa:9c:76

Biomes-O-Plenty-1.16.5-13.1.0.488.jar |Biomes O' Plenty |biomesoplenty |1.16.5-13.1.0.488 |DONE |Manifest: NOSIGNATURE

Hwyla_forge_1.10.11_B78_1.16.2.jar |Waila |waila |1.10.11-B78_1.16.2 |DONE |Manifest: NOSIGNATURE

jei-1.16.5-7.8.0.1009.jar |Just Enough Items |jei |7.8.0.1009 |DONE |Manifest: NOSIGNATURE

Botania-1.16.5-420.3.jar |Botania |botania |1.16.5-420.3 |DONE |Manifest: NOSIGNATURE

ProjectE-1.16.5-PE1.0.2.jar |ProjectE |projecte |PE1.0.2 |DONE |Manifest: NOSIGNATURE

PlantTech-2-0.02.34-1.16.5.jar |PlantTech 2 |planttech2 |0.02.34 |DONE |Manifest: NOSIGNATURE

forge-1.16.5-36.2.41-universal.jar |Forge |forge |36.2.41 |DONE |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90

BloodMagic-1.16.4-3.1.13-39.jar |Blood Magic |bloodmagic |1.16.4-3.1.13-39 |DONE |Manifest: NOSIGNATURE

curios-forge-1.16.5-4.1.0.0.jar |Curios API |curios |1.16.5-4.1.0.0 |DONE |Manifest: NOSIGNATURE

Patchouli-1.16.4-53.3.jar |Patchouli |patchouli |1.16.4-53.3 |DONE |Manifest: NOSIGNATURE

Mantle-1.16.5-1.6.157.jar |Mantle |mantle |1.6.157 |DONE |Manifest: NOSIGNATURE

TerraForged-0.2.16-1.16.5.jar |TerraForged |terraforged |0.2.16 |DONE |Manifest: 7b:73:d0:a2:c3:40:13:84:35:4f:c9:0e:2b:85:8c:08:ea:3c:3c:eb:f1:98:8b:5b:6e:ca:8a:a0:9a:cf:12:b3

MysticalAgriculture-1.16.5-4.2.6.jar |Mystical Agriculture |mysticalagriculture |4.2.6 |DONE |Manifest: NOSIGNATURE

ironchest-1.16.5-11.2.21.jar |Iron Chests |ironchest |1.16.5-11.2.21 |DONE |Manifest: NOSIGNATURE

Crash Report UUID: f99ba385-435b-4780-9280-8e9f4fa06218

Patchouli open book context: n/a

Launched Version: 1.16.5-forge-36.2.41

Backend library: LWJGL version 3.2.2 build 10

Backend API: Intel(R) UHD Graphics 630 GL version 4.6.0 - Build 27.20.100.9664, Intel

GL Caps: Using framebuffer using OpenGL 3.0

Using VBOs: Yes

Is Modded: Definitely; Client brand changed to 'forge'

Type: Client (map_client.txt)

Graphics mode: fancy

Resource Packs: vanilla, mod_resources

Current Language: English (US)

CPU: 12x Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz

 

 

Posted

It's out again

Same error

new log 
 

---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

Time: 08.01.24 22:28
Description: Rendering screen

java.lang.NullPointerException: Rendering screen
    at net.minecraft.util.text.TextProcessing.func_238340_a_(SourceFile:88) ~[?:?] {re:classloading}
    at net.minecraft.util.text.TextProcessing.func_238339_a_(SourceFile:84) ~[?:?] {re:classloading}
    at net.minecraft.util.text.TextProcessing.func_238337_a(SourceFile:128) ~[?:?] {re:classloading}
    at net.minecraft.util.text.TextProcessing$$Lambda$9570/615098252.accept(Unknown Source) ~[?:?] {}
    at net.minecraft.util.text.ITextComponent.func_230534_b_(SourceFile:112) ~[?:?] {re:classloading}
    at net.minecraft.util.text.ITextComponent.func_230439_a_(SourceFile:79) ~[?:?] {re:classloading}
    at net.minecraft.util.text.ITextComponent.func_230439_a_(SourceFile:85) ~[?:?] {re:classloading}
    at net.minecraft.util.text.TextProcessing.func_238343_a_(SourceFile:128) ~[?:?] {re:classloading}
    at net.minecraft.util.text.CharacterManager.func_238356_a_(SourceFile:47) ~[?:?] {re:classloading}
    at net.minecraft.client.gui.FontRenderer.func_238414_a_(SourceFile:329) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:458) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:422) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:397) ~[?:?] {re:classloading}
    at net.minecraft.client.gui.screen.Screen.renderWrappedToolTip(Screen.java:134) ~[?:?] {re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.gui.screen.Screen.func_230457_a_(Screen.java:118) ~[?:?] {re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.gui.screen.inventory.ContainerScreen.func_230459_a_(ContainerScreen.java:164) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.gui.screen.inventory.InventoryScreen.func_230430_a_(SourceFile:96) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraftforge.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:363) ~[?:?] {re:classloading}
    at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:356) ~[?:?] {re:classloading}
    at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:492) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [forge-1.16.5-36.2.41.jar:36.2] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$499/1609960076.call(Unknown Source) [forge-1.16.5-36.2.41.jar:36.2] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {re:classloading}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {re:classloading}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at net.minecraft.util.text.TextProcessing.func_238340_a_(SourceFile:88) ~[?:?] {re:classloading}
    at net.minecraft.util.text.TextProcessing.func_238339_a_(SourceFile:84) ~[?:?] {re:classloading}
    at net.minecraft.util.text.TextProcessing.func_238337_a(SourceFile:128) ~[?:?] {re:classloading}
    at net.minecraft.util.text.TextProcessing$$Lambda$9570/615098252.accept(Unknown Source) ~[?:?] {}
    at net.minecraft.util.text.ITextComponent.func_230534_b_(SourceFile:112) ~[?:?] {re:classloading}
    at net.minecraft.util.text.ITextComponent.func_230439_a_(SourceFile:79) ~[?:?] {re:classloading}
    at net.minecraft.util.text.ITextComponent.func_230439_a_(SourceFile:85) ~[?:?] {re:classloading}
    at net.minecraft.util.text.TextProcessing.func_238343_a_(SourceFile:128) ~[?:?] {re:classloading}
    at net.minecraft.util.text.CharacterManager.func_238356_a_(SourceFile:47) ~[?:?] {re:classloading}
    at net.minecraft.client.gui.FontRenderer.func_238414_a_(SourceFile:329) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:458) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:422) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(GuiUtils.java:397) ~[?:?] {re:classloading}
    at net.minecraft.client.gui.screen.Screen.renderWrappedToolTip(Screen.java:134) ~[?:?] {re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.gui.screen.Screen.func_230457_a_(Screen.java:118) ~[?:?] {re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.gui.screen.inventory.ContainerScreen.func_230459_a_(ContainerScreen.java:164) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.gui.screen.inventory.InventoryScreen.func_230430_a_(SourceFile:96) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraftforge.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:363) ~[?:?] {re:classloading}
    at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:356) ~[?:?] {re:classloading}
-- Screen render details --
Details:
    Screen name: net.minecraft.client.gui.screen.inventory.InventoryScreen
    Mouse location: Scaled: (433, 263). Absolute: (866.000000, 526.000000)
    Screen size: Scaled: (960, 505). Absolute: (1920, 1009). Scale factor of 2.000000

-- Affected level --
Details:
    All players: 1 total; [ClientPlayerEntity['ChepuChill'/117, l='ClientLevel', x=60.43, y=84.00, z=-11056.61]]
    Chunk stats: Client Chunk Cache: 729, 481
    Level dimension: minecraft:overworld
    Level spawn location: World: (1472,75,1408), Chunk: (at 0,4,0 in 92,88; contains blocks 1472,0,1408 to 1487,255,1423), Region: (2,2; contains chunks 64,64 to 95,95, blocks 1024,0,1024 to 1535,255,1535)
    Level time: 465719 game time, 521911 day time
    Server brand: Mohist
    Server type: Non-integrated multiplayer server
Stacktrace:
    at net.minecraft.client.world.ClientWorld.func_72914_a(ClientWorld.java:458) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2031) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:623) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [forge-1.16.5-36.2.41.jar:36.2] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$499/1609960076.call(Unknown Source) [forge-1.16.5-36.2.41.jar:36.2] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {re:classloading}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {re:classloading}


-- System Details --
Details:
    Minecraft Version: 1.16.5
    Minecraft Version ID: 1.16.5
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 2422143728 bytes (2309 MB) / 4294967296 bytes (4096 MB) up to 4294967296 bytes (4096 MB)
    CPUs: 12
    JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+IgnoreUnrecognizedVMOptions -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 8.1.3+8.1.3+main-8.1.x.c94d18ec
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /mixin-0.8.4.jar mixin PLUGINSERVICE 
        /eventbus-4.0.0.jar eventbus PLUGINSERVICE 
        /forge-1.16.5-36.2.41.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.16.5-36.2.41.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE 
        /forge-1.16.5-36.2.41.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.16.5-36.2.41.jar runtimedistcleaner PLUGINSERVICE 
        /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE 
        /forge-1.16.5-36.2.41.jar fml TRANSFORMATIONSERVICE 
    FML: 36.2
    Forge: net.minecraftforge:36.2.41
    FML Language Providers: 
        [email protected]
        minecraft@1
        [email protected]
    Mod List: 
        forge-1.16.5-36.2.41-client.jar                   |Minecraft                     |minecraft                     |1.16.5              |DONE      |Manifest: NOSIGNATURE
        Tinkers-Construct-3.3.4.335-for-1.16.5.jar        |Tinkers' Construct            |tconstruct                    |3.3.4.335           |DONE      |Manifest: NOSIGNATURE
        industrial-foregoing-1.16.5-3.2.14.7-19.jar       |Industrial Foregoing          |industrialforegoing           |3.2.14.7            |DONE      |Manifest: NOSIGNATURE
        EvilCraft-1.16.5-1.1.17.jar                       |EvilCraft                     |evilcraft                     |1.1.17              |DONE      |Manifest: NOSIGNATURE
        CyclopsCore-1.16.5-1.12.4.jar                     |Cyclops Core                  |cyclopscore                   |1.12.4              |DONE      |Manifest: NOSIGNATURE
        Bookshelf-Forge-1.16.5-10.4.33.jar                |Bookshelf                     |bookshelf                     |10.4.33             |DONE      |Manifest: eb:c4:b1:67:8b:f9:0c:db:dc:4f:01:b1:8e:61:64:39:4c:10:85:0b:a6:c4:c7:48:f0:fa:95:f2:cb:08:3a:e5
        EnchantmentDescriptions-1.16.5-7.1.23.jar         |EnchantmentDescriptions       |enchdesc                      |7.1.23              |DONE      |Manifest: eb:c4:b1:67:8b:f9:0c:db:dc:4f:01:b1:8e:61:64:39:4c:10:85:0b:a6:c4:c7:48:f0:fa:95:f2:cb:08:3a:e5
        titanium-1.16.5-3.2.8.8-24.jar                    |Titanium                      |titanium                      |3.2.8.8             |DONE      |Manifest: NOSIGNATURE
        Cucumber-1.16.5-4.1.12.jar                        |Cucumber Library              |cucumber                      |4.1.12              |DONE      |Manifest: NOSIGNATURE
        AdditionalEnchantedMiner-1.16.5-16.1.11.jar       |QuarryPlus                    |quarryplus                    |16.1.11             |DONE      |Manifest: 1a:13:52:63:6f:dc:0c:ad:7f:8a:64:ac:46:58:8a:0c:90:ea:2c:5d:11:ac:4c:d4:62:85:c7:d1:00:fa:9c:76
        Biomes-O-Plenty-1.16.5-13.1.0.488.jar             |Biomes O' Plenty              |biomesoplenty                 |1.16.5-13.1.0.488   |DONE      |Manifest: NOSIGNATURE
        Hwyla_forge_1.10.11_B78_1.16.2.jar                |Waila                         |waila                         |1.10.11-B78_1.16.2  |DONE      |Manifest: NOSIGNATURE
        jei-1.16.5-7.8.0.1009.jar                         |Just Enough Items             |jei                           |7.8.0.1009          |DONE      |Manifest: NOSIGNATURE
        Botania-1.16.5-420.3.jar                          |Botania                       |botania                       |1.16.5-420.3        |DONE      |Manifest: NOSIGNATURE
        ProjectE-1.16.5-PE1.0.2.jar                       |ProjectE                      |projecte                      |PE1.0.2             |DONE      |Manifest: NOSIGNATURE
        PlantTech-2-0.02.34-1.16.5.jar                    |PlantTech 2                   |planttech2                    |0.02.34             |DONE      |Manifest: NOSIGNATURE
        forge-1.16.5-36.2.41-universal.jar                |Forge                         |forge                         |36.2.41             |DONE      |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
        BloodMagic-1.16.4-3.1.13-39.jar                   |Blood Magic                   |bloodmagic                    |1.16.4-3.1.13-39    |DONE      |Manifest: NOSIGNATURE
        curios-forge-1.16.5-4.1.0.0.jar                   |Curios API                    |curios                        |1.16.5-4.1.0.0      |DONE      |Manifest: NOSIGNATURE
        Patchouli-1.16.4-53.3.jar                         |Patchouli                     |patchouli                     |1.16.4-53.3         |DONE      |Manifest: NOSIGNATURE
        Mantle-1.16.5-1.6.157.jar                         |Mantle                        |mantle                        |1.6.157             |DONE      |Manifest: NOSIGNATURE
        TerraForged-0.2.16-1.16.5.jar                     |TerraForged                   |terraforged                   |0.2.16              |DONE      |Manifest: 7b:73:d0:a2:c3:40:13:84:35:4f:c9:0e:2b:85:8c:08:ea:3c:3c:eb:f1:98:8b:5b:6e:ca:8a:a0:9a:cf:12:b3
        MysticalAgriculture-1.16.5-4.2.6.jar              |Mystical Agriculture          |mysticalagriculture           |4.2.6               |DONE      |Manifest: NOSIGNATURE
        ironchest-1.16.5-11.2.21.jar                      |Iron Chests                   |ironchest                     |1.16.5-11.2.21      |DONE      |Manifest: NOSIGNATURE
    Crash Report UUID: 544ff4af-1cb8-484e-b57f-eba5e5659826
    Patchouli open book context: n/a
    Launched Version: 1.16.5-forge-36.2.41
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: Intel(R) UHD Graphics 630 GL version 4.6.0 - Build 27.20.100.9664, Intel
    GL Caps: Using framebuffer using OpenGL 3.0
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    Graphics mode: fancy
    Resource Packs: 
    Current Language: English (US)
    CPU: 12x Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
    • Do you use features of inventory profiles next (ipnext) or is there a change without it?
    • Remove rubidium - you are already using embeddium, which is a fork of rubidium
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.