Jump to content

Recommended Posts

Posted (edited)

as the title says...

it happened on a serverver and we are trying to figure out what was going on... any ideas ?

 

here is the crash report

 

Spoiler

---- Minecraft Crash Report ----

WARNING: coremods are present:
  Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)
  FMLPlugin (elulib-0.1.12.jar)
  ForgelinPlugin (Forgelin-1.7.4.jar)
  BedPatch (bedpatch-2.2-1.12.2.jar)
  CTMCorePlugin (CTM-MC1.12.2-0.3.2.18.jar)
  OpenModsCorePlugin (OpenModsLib-1.12.2-0.11.5.jar)
  LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)
  IELoadingPlugin (ImmersiveEngineering-core-0.12-85.jar)
  AppleCore (AppleCore-mc1.12.2-3.1.4.jar)
  SplashAnimationCoremod (SplashAnimation-0.1.0.jar)
  LoadingPlugin (Quark-r1.5-129.jar)
  Do not report to Forge! Remove FoamFixAPI (or replace with FoamFixAPI-Lawful) and try again. (foamfix-0.10.1-1.12.2.jar)
Contact their authors BEFORE contacting forge

// Would you like a cupcake?

Time: 12/9/18 5:06 PM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
    at zmaster587.advancedRocketry.dimension.DimensionProperties.getSunColor(DimensionProperties.java:351)
    at zmaster587.advancedRocketry.world.provider.WorldProviderPlanet.getSunColor(WorldProviderPlanet.java:368)
    at zmaster587.advancedRocketry.client.render.planet.RenderPlanetarySky.render(RenderPlanetarySky.java:230)
    at net.minecraft.client.renderer.RenderGlobal.func_174976_a(RenderGlobal.java:1274)
    at net.minecraft.client.renderer.EntityRenderer.func_175068_a(EntityRenderer.java:1296)
    at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1259)
    at net.minecraft.client.renderer.EntityRenderer.func_181560_a(EntityRenderer.java:1062)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1118)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


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

-- Head --
Thread: Client thread
Stacktrace:
    at zmaster587.advancedRocketry.dimension.DimensionProperties.getSunColor(DimensionProperties.java:351)
    at zmaster587.advancedRocketry.world.provider.WorldProviderPlanet.getSunColor(WorldProviderPlanet.java:368)
    at zmaster587.advancedRocketry.client.render.planet.RenderPlanetarySky.render(RenderPlanetarySky.java:230)
    at net.minecraft.client.renderer.RenderGlobal.func_174976_a(RenderGlobal.java:1274)
    at net.minecraft.client.renderer.EntityRenderer.func_175068_a(EntityRenderer.java:1296)
    at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1259)

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [EntityPlayerSP['DoorLord2'/643, l='MpServer', x=-1537.50, y=129.00, z=-1535.50]]
    Chunk stats: MultiplayerChunkCache: 0, 0
    Level seed: 0
    Level generator: ID 07 - Space, ver 0. Features enabled: false
    Level generator options: 
    Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 70740622 game time, 70740622 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    Forced entities: 1 total; [EntityPlayerSP['DoorLord2'/643, l='MpServer', x=-1537.50, y=129.00, z=-1535.50]]
    Retry entities: 0 total; []
    Server brand: Waterfall (git:Waterfall-Bootstrap:1.13-SNAPSHOT:d91c0dd:234) <- fml,forge,sponge
    Server type: Non-integrated multiplayer server
Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:420)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2740)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:426)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    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: 2805771304 bytes (2675 MB) / 4249354240 bytes (4052 MB) up to 8589934592 bytes (8192 MB)
    JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx9216m -Xms256m -XX:PermSize=256m
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.4.2759 154 mods loaded, 154 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State  | ID                        | Version                  | Source                                          | Signature                                |
    |:------ |:------------------------- |:------------------------ |:----------------------------------------------- |:---------------------------------------- |
    | UCHIJA | minecraft                 | 1.12.2                   | minecraft.jar                                   | None                                     |
    | UCHIJA | mcp                       | 9.42                     | minecraft.jar                                   | None                                     |
    | UCHIJA | FML                       | 8.0.99.99                | forge-1.12.2-14.23.4.2759.jar                   | None                                     |
    | UCHIJA | forge                     | 14.23.4.2759             | forge-1.12.2-14.23.4.2759.jar                   | None                                     |
    | UCHIJA | openmodscore              | 0.11.5                   | minecraft.jar                                   | None                                     |
    | UCHIJA | foamfixcore               | 7.7.4                    | minecraft.jar                                   | None                                     |
    | UCHIJA | elucore                   | 1.0                      | minecraft.jar                                   | None                                     |
    | UCHIJA | fastbench                 | 1.5.3                    | FastWorkbench-1.12.2-1.5.3.jar                  | None                                     |
    | UCHIJA | actuallyadditions         | 1.12.2-r140              | ActuallyAdditions-1.12.2-r140.jar               | None                                     |
    | UCHIJA | redstoneflux              | 2.0.2                    | RedstoneFlux-1.12-2.0.2.3-universal.jar         | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | UCHIJA | cofhcore                  | 4.5.3                    | CoFHCore-1.12.2-4.5.3.20-universal.jar          | None                                     |
    | UCHIJA | libvulpes                 | 0.2.8.-37                | LibVulpes-1.12.2-0.2.8-37-universal.jar         | None                                     |
    | UCHIJA | advancedrocketry          | 1.4.0.-101               | AdvancedRocketry-1.12.2-1.4.0-101-universal.jar | None                                     |
    | UCHIJA | appliedenergistics2       | rv5-stable-11            | appliedenergistics2-rv5-stable-11.jar           | None                                     |
    | UCHIJA | bdlib                     | 1.14.3.12                | bdlib-1.14.3.12-mc1.12.2.jar                    | None                                     |
    | UCHIJA | ae2stuff                  | 0.7.0.4                  | ae2stuff-0.7.0.4-mc1.12.2.jar                   | None                                     |
    | UCHIJA | applecore                 | 3.1.4                    | AppleCore-mc1.12.2-3.1.4.jar                    | None                                     |
    | UCHIJA | charset                   | 0.5.5.5                  | Charset-Lib-0.5.5.5.jar                         | None                                     |
    | UCHIJA | crafttweaker              | 4.1.9                    | CraftTweaker2-1.12-4.1.9.jar                    | None                                     |
    | UCHIJA | mtlib                     | 3.0.5                    | MTLib-3.0.5.jar                                 | None                                     |
    | UCHIJA | modtweaker                | 4.0.13                   | modtweaker-4.0.14.jar                           | None                                     |
    | UCHIJA | jei                       | 4.12.0.216               | jei_1.12.2-4.12.0.216.jar                       | None                                     |
    | UCHIJA | appleskin                 | 1.0.9                    | AppleSkin-mc1.12-1.0.9.jar                      | None                                     |
    | UCHIJA | quark                     | r1.5-129                 | Quark-r1.5-129.jar                              | None                                     |
    | UCHIJA | autoreglib                | 1.3-20                   | AutoRegLib-1.3-20.jar                           | None                                     |
    | UCHIJA | badwithernocookiereloaded | 1.12.2-3.1.14            | badwithernocookiereloaded-1.12.2-3.1.14.jar     | None                                     |
    | UCHIJA | base                      | 3.10.0                   | base-1.12.2-3.10.0.jar                          | None                                     |
    | UCHIJA | baubles                   | 1.5.2                    | Baubles-1.12-1.5.2.jar                          | None                                     |
    | UCHIJA | betteradvancements        | 0.0.5.17                 | BetterAdvancements-1.12.2-0.0.5.17.jar          | None                                     |
    | UCHIJA | betterbuilderswands       | 0.12.0                   | BetterBuildersWands-1.12-0.12.0.251+d6c4d93.jar | None                                     |
    | UCHIJA | betterquesting            | 3.5.266                  | BetterQuesting-3.5.266.jar                      | None                                     |
    | UCHIJA | bqt                       | 1.0                      | BetterQuestingTriggerer-1.0.jar                 | None                                     |
    | UCHIJA | bibliocraft               | 2.4.5                    | BiblioCraft[v2.4.5][MC1.12.2].jar               | None                                     |
    | UCHIJA | mantle                    | 1.12-1.3.2.24            | Mantle-1.12-1.3.2.24.jar                        | None                                     |
    | UCHIJA | natura                    | 1.12.2-4.3.2.62          | natura-1.12.2-4.3.2.62.jar                      | None                                     |
    | UCHIJA | reborncore                | 3.10.1.335               | RebornCore-1.12.2-3.10.1.335-universal.jar      | 8727a3141c8ec7f173b87aa78b9b9807867c4e6b |
    | UCHIJA | techreborn                | 2.17.4.824               | TechReborn-1.12.2-2.17.4.824-universal.jar      | 8727a3141c8ec7f173b87aa78b9b9807867c4e6b |
    | UCHIJA | forestry                  | 5.8.1.341                | forestry_1.12.2-5.8.1.341.jar                   | None                                     |
    | UCHIJA | binniecore                | 2.5.0.168                | binnie-mods-1.12.2-2.5.0.168.jar                | None                                     |
    | UCHIJA | binniedesign              | 2.5.0.168                | binnie-mods-1.12.2-2.5.0.168.jar                | None                                     |
    | UCHIJA | genetics                  | 2.5.0.168                | binnie-mods-1.12.2-2.5.0.168.jar                | None                                     |
    | UCHIJA | botany                    | 2.5.0.168                | binnie-mods-1.12.2-2.5.0.168.jar                | None                                     |
    | UCHIJA | extrabees                 | 2.5.0.168                | binnie-mods-1.12.2-2.5.0.168.jar                | None                                     |
    | UCHIJA | extratrees                | 2.5.0.168                | binnie-mods-1.12.2-2.5.0.168.jar                | None                                     |
    | UCHIJA | blockcraftery             | 0.1.3                    | blockcraftery-0.1.3.jar                         | None                                     |
    | UCHIJA | bookshelf                 | 2.3.559                  | Bookshelf-1.12.2-2.3.559.jar                    | d476d1b22b218a10d845928d1665d45fce301b27 |
    | UCHIJA | careerbees                | 1.0                      | careerbees-0.4.0.jar                            | None                                     |
    | UCHIJA | chameleon                 | 1.12-4.1.3               | Chameleon-1.12-4.1.3.jar                        | None                                     |
    | UCHIJA | chesttransporter          | 2.8.8                    | ChestTransporter-1.12.2-2.8.8.jar               | None                                     |
    | UCHIJA | ctm                       | MC1.12.2-0.3.2.18        | CTM-MC1.12.2-0.3.2.18.jar                       | None                                     |
    | UCHIJA | chisel                    | MC1.12.2-0.2.1.34        | Chisel-MC1.12.2-0.2.1.34.jar                    | None                                     |
    | UCHIJA | chiselsandbits            | 14.24                    | chiselsandbits-14.24.jar                        | None                                     |
    | UCHIJA | clumps                    | 3.1.1                    | Clumps-3.1.1.jar                                | None                                     |
    | UCHIJA | codechickenlib            | 3.2.1.351                | CodeChickenLib-1.12.2-3.2.1.351-universal.jar   | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
    | UCHIJA | cofhworld                 | 1.2.0                    | CoFHWorld-1.12.2-1.2.0.5-universal.jar          | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | UCHIJA | controlling               | 3.0.6                    | Controlling-3.0.6.jar                           | None                                     |
    | UCHIJA | cookingforblockheads      | 6.4.61                   | CookingForBlockheads_1.12.2-6.4.61.jar          | None                                     |
    | UCHIJA | ctgui                     | 1.0.0                    | CraftTweaker2-1.12-4.1.9.jar                    | None                                     |
    | UCHIJA | crafttweakerjei           | 2.0.2                    | CraftTweaker2-1.12-4.1.9.jar                    | None                                     |
    | UCHIJA | custommainmenu            | 2.0.8                    | CustomMainMenu-MC1.12.2-2.0.8.jar               | None                                     |
    | UCHIJA | darkutils                 | 1.8.211                  | DarkUtils-1.12.2-1.8.211.jar                    | d476d1b22b218a10d845928d1665d45fce301b27 |
    | UCHIJA | journeymap                | 1.12.2-5.5.2             | journeymap-1.12.2-5.5.2.jar                     | None                                     |
    | UCHIJA | defaultoptions            | 9.2.7                    | DefaultOptions_1.12.2-9.2.7.jar                 | None                                     |
    | UCHIJA | diethopper                | 1.1                      | diethopper-1.1.jar                              | None                                     |
    | UCHIJA | mcjtylib_ng               | 3.0.5                    | mcjtylib-1.12-3.0.5.jar                         | None                                     |
    | UCHIJA | efab                      | 0.1.1                    | efab-0.1.1.jar                                  | None                                     |
    | UCHIJA | enderstorage              | 2.4.5.135                | EnderStorage-1.12.2-2.4.5.135-universal.jar     | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
    | UCHIJA | tconstruct                | 1.12.2-2.10.1.87         | TConstruct-1.12.2-2.10.1.87.jar                 | None                                     |
    | UCHIJA | tesla                     | 1.0.63                   | Tesla-1.12.2-1.0.63.jar                         | d476d1b22b218a10d845928d1665d45fce301b27 |
    | UCHIJA | theoneprobe               | 1.4.24                   | theoneprobe-1.12-1.4.24.jar                     | None                                     |
    | UCHIJA | thermalfoundation         | 2.5.0                    | ThermalFoundation-1.12.2-2.5.0.19-universal.jar | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | UCHIJA | immersiveengineering      | 0.12-85                  | ImmersiveEngineering-0.12-85.jar                | 4cb49fcde3b43048c9889e0a3d083225da926334 |
    | UCHIJA | engineersdoors            | 0.7.2                    | engineersdoors-0.7.2.jar                        | None                                     |
    | UCHIJA | engineersworkshop         | 1.0.8.37                 | EngineersWorkshopReborn-1.12.2-1.0.8.37.jar     | 8727a3141c8ec7f173b87aa78b9b9807867c4e6b |
    | UCHIJA | valkyrielib               | 1.12.2-2.0.15.1          | valkyrielib-1.12.2-2.0.15.1.jar                 | None                                     |
    | UCHIJA | environmentaltech         | 1.12.2-2.0.15.1          | environmentaltech-1.12.2-2.0.15.1.jar           | None                                     |
    | UCHIJA | thermalexpansion          | 5.5.0                    | ThermalExpansion-1.12.2-5.5.0.29-universal.jar  | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | UCHIJA | exchangers                | 1.12.2-2.7.3             | Exchangers-1.12.2-2.7.3.jar                     | 4ffa87db52cf086d00ecc4853a929367b1c39b5c |
    | UCHIJA | extracells                | 2.5.13                   | ExtraCells-1.12.2-2.5.13a60.jar                 | None                                     |
    | UCHIJA | extrautils2               | 1.0                      | extrautils2-1.12-1.9.2.jar                      | None                                     |
    | UCHIJA | zerocore                  | 1.12-0.1.2.2             | zerocore-1.12-0.1.2.2.jar                       | None                                     |
    | UCHIJA | bigreactors               | 1.12.2-0.4.5.49          | ExtremeReactors-1.12.2-0.4.5.49.jar             | None                                     |
    | UCHIJA | flatcoloredblocks         | mc1.12-6.6               | flatcoloredblocks-mc1.12-6.6.jar                | None                                     |
    | UCHIJA | sonarcore                 | 5.0.16                   | sonarcore-1.12.2-5.0.16-16.jar                  | None                                     |
    | UCHIJA | fluxnetworks              | 3.0.16                   | fluxnetworks-1.12.2-3.0.16-11.jar               | None                                     |
    | UCHIJA | foamfix                   | 0.10.1-1.12.2            | foamfix-0.10.1-1.12.2.jar                       | None                                     |
    | UCHIJA | forgelin                  | 1.7.4                    | Forgelin-1.7.4.jar                              | None                                     |
    | UCHIJA | forgemultipartcbe         | 2.5.0.71                 | ForgeMultipart-1.12.2-2.5.0.71-universal.jar    | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
    | UCHIJA | microblockcbe             | 2.5.0.71                 | ForgeMultipart-1.12.2-2.5.0.71-universal.jar    | None                                     |
    | UCHIJA | minecraftmultipartcbe     | 2.5.0.71                 | ForgeMultipart-1.12.2-2.5.0.71-universal.jar    | None                                     |
    | UCHIJA | ftblib                    | 5.3.0.51                 | FTBLib-5.3.0.51.jar                             | None                                     |
    | UCHIJA | ftbguides                 | 1.0.2.22                 | FTBGuides-1.0.2.22.jar                          | None                                     |
    | UCHIJA | ftbutilities              | 5.3.0.50                 | FTBUtilities-5.3.0.50.jar                       | None                                     |
    | UCHIJA | gendustry                 | 1.6.5.8                  | gendustry-1.6.5.8-mc1.12.2.jar                  | None                                     |
    | UCHIJA | harvest                   | 1.12-1.2.6-18            | Harvest-1.12-1.2.6-18.jar                       | None                                     |
    | UCHIJA | immersivepetroleum        | 1.1.9                    | immersivepetroleum-1.12.2-1.1.9.jar             | None                                     |
    | UCHIJA | teslacorelib              | 1.0.15                   | tesla-core-lib-1.12.2-1.0.15.jar                | d476d1b22b218a10d845928d1665d45fce301b27 |
    | UCHIJA | industrialforegoing       | 1.12.2-1.12.2            | industrialforegoing-1.12.2-1.11.2-212.jar       | None                                     |
    | UCHIJA | initialinventory          | 2.0.2                    | InitialInventory-3.0.0.jar                      | None                                     |
    | UCHIJA | inventorytweaks           | 1.63+release.109.220f184 | InventoryTweaks-1.63.jar                        | 55d2cd4f5f0961410bf7b91ef6c6bf00a766dcbe |
    | UCHIJA | ironbackpacks             | 1.12.2-3.0.8-12          | IronBackpacks-1.12.2-3.0.8-12.jar               | None                                     |
    | UCHIJA | ironchest                 | 1.12.2-7.0.46.831        | ironchest-1.12.2-7.0.46.831.jar                 | None                                     |
    | UCHIJA | harvestcraft              | 1.12.2z                  | Pam's HarvestCraft 1.12.2z.jar                  | None                                     |
    | UCHIJA | jehc                      | 1.12.2                   | JEHC-1.12.2-1.6.1.0.jar                         | None                                     |
    | UCHIJA | jeibees                   | 0.9.0.5                  | jeibees-0.9.0.5-mc1.12.2.jar                    | None                                     |
    | UCHIJA | jeiintegration            | 1.5.1.36                 | jeiintegration_1.12.2-1.5.1.36.jar              | None                                     |
    | UCHIJA | lttweaker                 | 1.1.14                   | LootTableTweaker-1.12.2-1.1.14.jar              | d476d1b22b218a10d845928d1665d45fce301b27 |
    | UCHIJA | magicbees                 | 1.0                      | MagicBees-1.12.2-3.1.10.jar                     | None                                     |
    | UCHIJA | minetogether              | unspecified              | minetogether-1.10.2-2.1.3.jar                   | None                                     |
    | UCHIJA | minetogetherserver        | unspecified              | minetogether-1.10.2-2.1.3.jar                   | None                                     |
    | UCHIJA | moreoverlays              | 1.14                     | moreoverlays-1.14-mc1.12.2.jar                  | None                                     |
    | UCHIJA | morpheus                  | 1.12-3.3.2               | Morpheus-1.12-3.3.2.jar                         | None                                     |
    | UCHIJA | mousetweaks               | 2.8                      | MouseTweaks-2.8-mc1.12.1.jar                    | None                                     |
    | UCHIJA | netherportalfix           | 5.3.17                   | NetherPortalFix_1.12.1-5.3.17.jar               | None                                     |
    | UCHIJA | oreexcavation             | 1.4.129                  | OreExcavation-1.4.129.jar                       | None                                     |
    | UCHIJA | oeintegration             | 2.3.4                    | oeintegration-2.3.4.jar                         | None                                     |
    | UCHIJA | openmods                  | 0.11.5                   | OpenModsLib-1.12.2-0.11.5.jar                   | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |
    | UCHIJA | openblocks                | 1.7.6                    | OpenBlocks-1.12.2-1.7.6.jar                     | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |
    | UCHIJA | projecte                  | 1.12-PE1.3.1B            | ProjectE-1.12-PE1.3.1B.jar                      | None                                     |
    | UCHIJA | p455w0rdslib              | 2.0.35                   | p455w0rdslib-1.12-2.0.35.jar                    | None                                     |
    | UCHIJA | prettybeaches             | 1.0.3                    | PrettyBeaches_1.12.2-1.0.3.jar                  | None                                     |
    | UCHIJA | quickleafdecay            | 1.2.4                    | QuickLeafDecay-MC1.12.1-1.2.4.jar               | None                                     |
    | UCHIJA | rangedpumps               | 0.5                      | rangedpumps-0.5.jar                             | None                                     |
    | UCHIJA | redstonearsenal           | 2.5.1                    | RedstoneArsenal-1.12.2-2.5.1.13-universal.jar   | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | UCHIJA | refinedstorage            | 1.6.5                    | refinedstorage-1.6.5.jar                        | 57893d5b90a7336e8c63fe1c1e1ce472c3d59578 |
    | UCHIJA | resourceloader            | 1.5.3                    | ResourceLoader-MC1.12.1-1.5.3.jar               | d72e0dd57935b3e9476212aea0c0df352dd76291 |
    | UCHIJA | rftools                   | 7.56                     | rftools-1.12-7.56.jar                           | None                                     |
    | UCHIJA | rftoolscontrol            | 1.9.1                    | rftoolsctrl-1.12-1.9.1.jar                      | None                                     |
    | UCHIJA | rftoolspower              | 1.1.1                    | rftoolspower-1.12-1.1.1.jar                     | None                                     |
    | UCHIJA | thermaldynamics           | 2.5.1                    | ThermalDynamics-1.12.2-2.5.1.14-universal.jar   | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | UCHIJA | simplyjetpacks            | 2.2.7.45                 | SimplyJetpacks2-1.12.2-2.2.7.45.jar             | None                                     |
    | UCHIJA | snad                      | 1.12.1-1.7.09.16a        | Snad-1.12.1-1.7.09.16a.jar                      | None                                     |
    | UCHIJA | spiceoflife               | 1.3.12                   | SpiceOfLife-mc1.12-1.3.12.jar                   | None                                     |
    | UCHIJA | bq_standard               | 3.4.145                  | StandardExpansion-3.4.145.jar                   | None                                     |
    | UCHIJA | stevescarts               | 2.4.23.115               | StevesCarts-1.12.2-2.4.23.115.jar               | None                                     |
    | UCHIJA | storagedrawers            | 1.12-5.3.5               | StorageDrawers-1.12.2-5.3.7.jar                 | None                                     |
    | UCHIJA | storagedrawersextra       | @VERSION@                | StorageDrawersExtras-1.12-3.1.0.jar             | None                                     |
    | UCHIJA | thermalcultivation        | 0.3.0                    | ThermalCultivation-1.12.2-0.3.0.7-universal.jar | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | UCHIJA | tinkertoolleveling        | 1.12.2-1.0.5.DEV.30c7957 | TinkerToolLeveling-1.12.2-1.0.5.jar             | None                                     |
    | UCHIJA | tipthescales              | 1.0.1                    | TipTheScales-1.12.2-1.0.1.jar                   | None                                     |
    | UCHIJA | topaddons                 | 1.12.2-1.9.0             | topaddons-1.12.2-1.9.0.jar                      | None                                     |
    | UCHIJA | torchmaster               | 1.6.4.62                 | torchmaster_1.12.2-1.6.4.62.jar                 | 5e9a436b366831c8f54a7e80b015784da69278c6 |
    | UCHIJA | translocators             | 2.5.1.77                 | Translocators-1.12.2-2.5.1.77-universal.jar     | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
    | UCHIJA | traverse                  | 1.6.0                    | Traverse-1.12.2-1.6.0-69.jar                    | None                                     |
    | UCHIJA | universalmodifiers        | 1.12.2-1.0.9a            | valkyrielib-1.12.2-2.0.15.1.jar                 | None                                     |
    | UCHIJA | wanionlib                 | 1.12.2-1.5               | WanionLib-1.12.2-1.5.jar                        | None                                     |
    | UCHIJA | wct                       | 3.9.67                   | WirelessCraftingTerminal-1.12.2-3.9.67.jar      | None                                     |
    | UCHIJA | wrcbe                     | 2.3.1                    | WR-CBE-1.12.2-2.3.1.29-universal.jar            | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
    | UCHIJA | xnet                      | 1.7.4                    | xnet-1.12-1.7.4.jar                             | None                                     |
    | UCHIJA | yabba                     | 1.1.2.26                 | YABBA-1.1.2.26.jar                              | None                                     |
    | UCHIJA | reauth                    | 3.6.0                    | reauth-3.6.0.jar                                | daba0ec4df71b6da841768c49fb873def208a1e3 |
    | UCHIJA | elulib                    | 0.1.12                   | elulib-0.1.12.jar                               | None                                     |
    | UCHIJA | teslacorelib_registries   | 1.0.15                   | tesla-core-lib-1.12.2-1.0.15.jar                | None                                     |
    | UCHIJA | unidict                   | 1.12.2-2.7b              | UniDict-1.12.2-2.7b.jar                         | None                                     |

    Loaded coremods (and transformers): 
Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)
  invtweaks.forge.asm.ContainerTransformer
FMLPlugin (elulib-0.1.12.jar)
  elucent.elulib.asm.ASMTransformer
ForgelinPlugin (Forgelin-1.7.4.jar)
  
BedPatch (bedpatch-2.2-1.12.2.jar)
  com.mordenkainen.bedpatch.BedPatchASM
CTMCorePlugin (CTM-MC1.12.2-0.3.2.18.jar)
  team.chisel.ctm.client.asm.CTMTransformer
OpenModsCorePlugin (OpenModsLib-1.12.2-0.11.5.jar)
  openmods.core.OpenModsClassTransformer
LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)
  lumien.resourceloader.asm.ClassTransformer
IELoadingPlugin (ImmersiveEngineering-core-0.12-85.jar)
  blusunrize.immersiveengineering.common.asm.IEClassTransformer
AppleCore (AppleCore-mc1.12.2-3.1.4.jar)
  squeek.applecore.asm.TransformerModuleHandler
SplashAnimationCoremod (SplashAnimation-0.1.0.jar)
  pl.asie.splashanimation.core.SplashProgressTransformer
LoadingPlugin (Quark-r1.5-129.jar)
  vazkii.quark.base.asm.ClassTransformer
Do not report to Forge! Remove FoamFixAPI (or replace with FoamFixAPI-Lawful) and try again. (foamfix-0.10.1-1.12.2.jar)
  pl.asie.foamfix.coremod.FoamFixTransformer
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 377.83' Renderer: 'Quadro 2000M/PCIe/SSE2'
    OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:FINISHED],[player_render_hook:FINISHED],[horse_null_fix:FINISHED]
    AE2 Version: stable rv5-stable-11 for Forge 14.23.1.2554
    Pulsar/natura loaded Pulses: 
        - NaturaCommons (Enabled/Forced)
        - NaturaOverworld (Enabled/Not Forced)
        - NaturaNether (Enabled/Not Forced)
        - NaturaDecorative (Enabled/Not Forced)
        - NaturaTools (Enabled/Not Forced)
        - NaturaEntities (Enabled/Not Forced)
        - NaturaOredict (Enabled/Forced)
        - NaturaWorld (Enabled/Not Forced)

    Pulsar/tconstruct loaded Pulses: 
        - TinkerCommons (Enabled/Forced)
        - TinkerWorld (Enabled/Not Forced)
        - TinkerTools (Enabled/Not Forced)
        - TinkerHarvestTools (Enabled/Forced)
        - TinkerMeleeWeapons (Enabled/Forced)
        - TinkerRangedWeapons (Enabled/Forced)
        - TinkerModifiers (Enabled/Forced)
        - TinkerSmeltery (Enabled/Not Forced)
        - TinkerGadgets (Enabled/Not Forced)
        - TinkerOredict (Enabled/Forced)
        - TinkerIntegration (Enabled/Forced)
        - TinkerFluids (Enabled/Forced)
        - TinkerMaterials (Enabled/Forced)
        - TinkerModelRegister (Enabled/Forced)
        - chiselIntegration (Enabled/Not Forced)
        - chiselsandbitsIntegration (Enabled/Not Forced)
        - theoneprobeIntegration (Enabled/Not Forced)

    List of loaded APIs: 
        * actuallyadditionsapi (34) from ActuallyAdditions-1.12.2-r140.jar
        * AppleCoreAPI (3.1.0) from AppleCore-mc1.12.2-3.1.4.jar
        * appliedenergistics2|API (rv5) from appliedenergistics2-rv5-stable-11.jar
        * Base|API (1.0.0) from base-1.12.2-3.10.0.jar
        * Baubles|API (1.4.0.2) from WirelessCraftingTerminal-1.12.2-3.9.67.jar
        * betteradvancements|API (0.0.5.17) from BetterAdvancements-1.12.2-0.0.5.17.jar
        * BetterQuesting|API (3.1) from BetterQuesting-3.5.266.jar
        * BetterQuesting|API2 (3.1) from BetterQuesting-3.5.266.jar
        * BetterWithModsAPI (Beta 0.6) from AppleSkin-mc1.12-1.0.9.jar
        * bigreactors|API (4.0.1) from ExtremeReactors-1.12.2-0.4.5.49.jar
        * CharsetAPI (0.1) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Audio (0.0) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Carry (0.0) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Laser (0.0) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Lib (0.2) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Locks (0.1) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Pipes (0.3) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Storage (0.1) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Tape (0.0) from Charset-Lib-0.5.5.5.jar
        * CharsetAPI|Wires (0.3) from Charset-Lib-0.5.5.5.jar
        * chesttransporter|api (2) from ChestTransporter-1.12.2-2.8.8.jar
        * Chisel-API (0.0.1) from Chisel-MC1.12.2-0.2.1.34.jar
        * ChiselAPI|Carving (0.0.1) from Chisel-MC1.12.2-0.2.1.34.jar
        * ChiselsAndBitsAPI (14.24.0) from chiselsandbits-14.24.jar
        * cofhapi (2.5.0) from CoFHCore-1.12.2-4.5.3.20-universal.jar
        * ctm-api (0.1.0) from CTM-MC1.12.2-0.3.2.18.jar
        * ctm-api-events (0.1.0) from CTM-MC1.12.2-0.3.2.18.jar
        * ctm-api-models (0.1.0) from CTM-MC1.12.2-0.3.2.18.jar
        * ctm-api-textures (0.1.0) from CTM-MC1.12.2-0.3.2.18.jar
        * ctm-api-utils (0.1.0) from CTM-MC1.12.2-0.3.2.18.jar
        * fluxapi (1.0) from fluxnetworks-1.12.2-3.0.16-11.jar
        * ForestryAPI|apiculture (5.0.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|arboriculture (4.3.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|book (5.8.1) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|circuits (3.1.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|climate (5.0.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|core (5.7.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|farming (5.8.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|food (1.1.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|fuels (3.0.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|genetics (5.7.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|greenhouse (5.2.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|gui (5.8.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|hives (4.1.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|lepidopterology (1.4.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|mail (3.1.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|modules (5.7.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|multiblock (3.0.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|recipes (5.4.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|storage (5.0.0) from forestry_1.12.2-5.8.1.341.jar
        * ForestryAPI|world (2.1.0) from forestry_1.12.2-5.8.1.341.jar
        * gendustryAPI (2.3.0) from gendustry-1.6.5.8-mc1.12.2.jar
        * ImmersiveEngineering|API (1.0) from ImmersiveEngineering-0.12-85.jar
        * ImmersiveEngineering|ImmersiveFluxAPI (1.0) from ImmersiveEngineering-0.12-85.jar
        * industrialforegoingapi (5) from industrialforegoing-1.12.2-1.11.2-212.jar
        * journeymap|client-api (1.4) from journeymap-1.12.2-5.5.2.jar
        * journeymap|client-api-display (1.4) from journeymap-1.12.2-5.5.2.jar
        * journeymap|client-api-event (1.4) from journeymap-1.12.2-5.5.2.jar
        * journeymap|client-api-model (1.4) from journeymap-1.12.2-5.5.2.jar
        * journeymap|client-api-util (1.4) from journeymap-1.12.2-5.5.2.jar
        * JustEnoughItemsAPI (4.13.0) from jei_1.12.2-4.12.0.216.jar
        * modtogether|api (1.0) from minetogether-1.10.2-2.1.3.jar
        * MouseTweaks|API (1.0) from MouseTweaks-2.8-mc1.12.1.jar
        * openblocks|api (1.2) from OpenBlocks-1.12.2-1.7.6.jar
        * projecteapi (1.12.2-1.0.0) from ProjectE-1.12-PE1.3.1B.jar
        * ProjectEAPI (1.9.4-1.0.0) from p455w0rdslib-1.12-2.0.35.jar
        * QuarkAPI (2) from Quark-r1.5-129.jar
        * reborncoreAPI (3.10.1.335) from RebornCore-1.12.2-3.10.1.335-universal.jar
        * reborncoreAPI|Power (3.10.1.335) from RebornCore-1.12.2-3.10.1.335-universal.jar
        * reborncoreAPI|Recipe (3.10.1.335) from RebornCore-1.12.2-3.10.1.335-universal.jar
        * reborncoreAPI|Tile (3.10.1.335) from RebornCore-1.12.2-3.10.1.335-universal.jar
        * sonarapi (1.0.1) from sonarcore-1.12.2-5.0.16-16.jar
        * stevescartsAPI (${version}) from StevesCarts-1.12.2-2.4.23.115.jar
        * stevescartsAPI|FARMS (${version}) from StevesCarts-1.12.2-2.4.23.115.jar
        * StorageDrawersAPI (2.1.0) from StorageDrawers-1.12.2-5.3.7.jar
        * StorageDrawersAPI|event (2.1.0) from StorageDrawers-1.12.2-5.3.7.jar
        * StorageDrawersAPI|registry (2.1.0) from StorageDrawers-1.12.2-5.3.7.jar
        * StorageDrawersAPI|render (2.1.0) from StorageDrawers-1.12.2-5.3.7.jar
        * StorageDrawersAPI|storage (2.1.0) from StorageDrawers-1.12.2-5.3.7.jar
        * StorageDrawersAPI|storage-attribute (2.1.0) from StorageDrawers-1.12.2-5.3.7.jar
        * techrebornAPI (2.17.4.824) from TechReborn-1.12.2-2.17.4.824-universal.jar
        * theoneprobe_api (1.4.4) from theoneprobe-1.12-1.4.24.jar
        * valkyrielib.api (1.12.2-2.0.10a) from valkyrielib-1.12.2-2.0.15.1.jar
        * wct|api (1.1) from WirelessCraftingTerminal-1.12.2-3.9.67.jar
        * zerocore|API|multiblock (1.10.2-0.0.2) from zerocore-1.12-0.1.2.2.jar
        * zerocore|API|multiblock|rectangular (1.10.2-0.0.2) from zerocore-1.12-0.1.2.2.jar
        * zerocore|API|multiblock|tier (1.10.2-0.0.2) from zerocore-1.12-0.1.2.2.jar
        * zerocore|API|multiblock|validation (1.10.2-0.0.2) from zerocore-1.12-0.1.2.2.jar
    RebornCore: 
        Plugin Engine: 0
        RebornCore Version: 3.10.1.335
        Runtime Debofucsation 1
        RenderEngine: 0
    AE2 Integration: IC2:OFF, RC:OFF, MFR:OFF, Waila:OFF, InvTweaks:ON, JEI:ON, Mekanism:OFF, OpenComputers:OFF, THE_ONE_PROBE:ON, TESLA:ON, CRAFTTWEAKER:ON
    Launched Version: forge-14.23.4.2759
    LWJGL: 2.9.4
    OpenGL: Quadro 2000M/PCIe/SSE2 GL version 4.5.0 NVIDIA 377.83, NVIDIA Corporation
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

    Using VBOs: No
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    CPU: 8x Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz

 

crash-2018-12-09_17.06.09-client.txt

Edited by Doorlord2
Posted (edited)

You are using an old version of lipVulpes and Advanced rocketry.  Update them and try it again.

 

Some other mods (e.g foamfix) are also outdated. Update them wen you got a problem because newer verisons usually grant bugfixes to those problems.

Edited by Cornspies

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

×
×
  • Create New...

Important Information

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