Jump to content

Minecraft crashing when entering the world with Baubles reborn installed.


Harazu

Recommended Posts

Every time I try to enter a world with Baubles reborn installed it crashes and this log appears:. ---- Minecraft Crash Report ----

// Why did you do that?

 

Time: 25/03/23 21:06

Description: Unexpected error

 

java.lang.NoClassDefFoundError: com/lazy/baubles/api/BaublesAPI

 at org.cyclops.cyclopscore.modcompat.baubles.InventoryExtenderBaubles.getInventory(InventoryExtenderBaubles.java:18) ~[?:1.13.0] {re:classloading}

 at org.cyclops.cyclopscore.inventory.PlayerExtendedInventoryIterator.<init>(PlayerExtendedInventoryIterator.java:32) ~[?:1.13.0] {re:classloading}

 at org.cyclops.evilcraft.event.RenderOverlayEventHook.onRenderOverlayEvent(RenderOverlayEventHook.java:46) ~[?:1.1.17] {re:classloading}

 at net.minecraftforge.eventbus.ASMEventHandler_702_RenderOverlayEventHook_onRenderOverlayEvent_Post.invoke(.dynamic) ~[?:?] {}

 at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}

 at net.minecraftforge.eventbus.EventBus$$Lambda$3151/1831953318.invoke(Unknown Source) ~[?:?] {}

 at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}

 at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}

 at net.minecraftforge.client.gui.ForgeIngameGui.post(ForgeIngameGui.java:832) ~[?:?] {re:classloading}

 at net.minecraftforge.client.gui.ForgeIngameGui.func_238445_a_(ForgeIngameGui.java:222) ~[?:?] {re:classloading}

 at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:472) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:tombstone.mixins.json:GameRendererMixin,pl:mixin:A,pl:runtimedistcleaner:A}

 at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}

 at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,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:51) [forge-1.16.5-36.2.34.jar:36.2] {}

 at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$527/1610014012.call(Unknown Source) [forge-1.16.5-36.2.34.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}

Caused by: java.lang.ClassNotFoundException: com.lazy.baubles.api.BaublesAPI

 at java.lang.ClassLoader.findClass(ClassLoader.java:530) ~[?:1.8.0_51] {}

 at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_51] {}

 at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:106) ~[modlauncher-8.1.3.jar:?] {re:classloading}

 at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}

 ... 25 more

 Suppressed: java.lang.ClassNotFoundException

  at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:282) ~[modlauncher-8.1.3.jar:?] {}

  at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) ~[modlauncher-8.1.3.jar:?] {re:classloading}

  at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) ~[modlauncher-8.1.3.jar:?] {re:classloading}

  at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}

  at org.cyclops.cyclopscore.modcompat.baubles.InventoryExtenderBaubles.getInventory(InventoryExtenderBaubles.java:18) ~[?:1.13.0] {re:classloading}

  at org.cyclops.cyclopscore.inventory.PlayerExtendedInventoryIterator.<init>(PlayerExtendedInventoryIterator.java:32) ~[?:1.13.0] {re:classloading}

  at org.cyclops.evilcraft.event.RenderOverlayEventHook.onRenderOverlayEvent(RenderOverlayEventHook.java:46) ~[?:1.1.17] {re:classloading}

  at net.minecraftforge.eventbus.ASMEventHandler_702_RenderOverlayEventHook_onRenderOverlayEvent_Post.invoke(.dynamic) ~[?:?] {}

  at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}

  at net.minecraftforge.eventbus.EventBus$$Lambda$3151/1831953318.invoke(Unknown Source) ~[?:?] {}

  at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}

  at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}

  at net.minecraftforge.client.gui.ForgeIngameGui.post(ForgeIngameGui.java:832) ~[?:?] {re:classloading}

  at net.minecraftforge.client.gui.ForgeIngameGui.func_238445_a_(ForgeIngameGui.java:222) ~[?:?] {re:classloading}

  at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:472) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:tombstone.mixins.json:GameRendererMixin,pl:mixin:A,pl:runtimedistcleaner:A}

  at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}

  at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,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:51) [forge-1.16.5-36.2.34.jar:36.2] {}

  at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$527/1610014012.call(Unknown Source) [forge-1.16.5-36.2.34.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 org.cyclops.cyclopscore.modcompat.baubles.InventoryExtenderBaubles.getInventory(InventoryExtenderBaubles.java:18) ~[?:1.13.0] {re:classloading}

 at org.cyclops.cyclopscore.inventory.PlayerExtendedInventoryIterator.<init>(PlayerExtendedInventoryIterator.java:32) ~[?:1.13.0] {re:classloading}

 at org.cyclops.evilcraft.event.RenderOverlayEventHook.onRenderOverlayEvent(RenderOverlayEventHook.java:46) ~[?:1.1.17] {re:classloading}

 at net.minecraftforge.eventbus.ASMEventHandler_702_RenderOverlayEventHook_onRenderOverlayEvent_Post.invoke(.dynamic) ~[?:?] {}

 at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}

 at net.minecraftforge.eventbus.EventBus$$Lambda$3151/1831953318.invoke(Unknown Source) ~[?:?] {}

 at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}

 at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}

 at net.minecraftforge.client.gui.ForgeIngameGui.post(ForgeIngameGui.java:832) ~[?:?] {re:classloading}

 at net.minecraftforge.client.gui.ForgeIngameGui.func_238445_a_(ForgeIngameGui.java:222) ~[?:?] {re:classloading}

-- Affected level --

Details:

 All players: 1 total; [ClientPlayerEntity['IHarazuI'/387, l='ClientLevel', x=-102.50, y=63.00, z=132.50]]

 Chunk stats: Client Chunk Cache: 841, 441

 Level dimension: minecraft:overworld

 Level spawn location: World: (-112,65,140), Chunk: (at 0,4,12 in -7,8; contains blocks -112,0,128 to -97,255,143), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

 Level time: 262 game time, 262 day time

 Server brand: forge

 Server type: Integrated singleplayer server

Stacktrace:

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

 at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2031) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}

 at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:628) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,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:51) [forge-1.16.5-36.2.34.jar:36.2] {}

 at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$527/1610014012.call(Unknown Source) [forge-1.16.5-36.2.34.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: 3582537656 bytes (3416 MB) / 5368709120 bytes (5120 MB) up to 5368709120 bytes (5120 MB)

 CPUs: 4

 JVM Flags: 9 total; -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M -Xmx5120m -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -XX:+IgnoreUnrecognizedVMOptions

 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.34.jar object_holder_definalize PLUGINSERVICE 

  /forge-1.16.5-36.2.34.jar runtime_enum_extender PLUGINSERVICE 

  /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE 

  /forge-1.16.5-36.2.34.jar capability_inject_definalize PLUGINSERVICE 

  /forge-1.16.5-36.2.34.jar runtimedistcleaner PLUGINSERVICE 

  /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE 

  /forge-1.16.5-36.2.34.jar fml TRANSFORMATIONSERVICE 

 FML: 36.2

 Forge: net.minecraftforge:36.2.34

 FML Language Providers: 

  [email protected]

  minecraft@1

 Mod List: 

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

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

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

  Jade-1.16.4-2.8.3.jar |Jade |jade |2.8.3 |DONE |Manifest: NOSIGNATURE

  baubles-1.8.7.1-1.16.5.jar |Baubles |baubles |1.8.7 |DONE |Manifest: NOSIGNATURE

  ironfurnaces-1.16.5-2.7.7.jar |Iron Furnaces |ironfurnaces |2.7.7 |DONE |Manifest: NOSIGNATURE

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

  constructsarmory-forge-2.0.0-alpha.2+1.16.5.jar |Construct's Armory |constructsarmory |2.0.0-alpha.2+1.16.5|DONE |Manifest: NOSIGNATURE

  jousting-1.16.5-v1.0.5.jar |Jousting |jousting |1.16.5-v1.0.5 |DONE |Manifest: NOSIGNATURE

  scannable-1.16.5-forge-1.7.6+00198b7.jar |Scannable |scannable |1.7.6 |DONE |Manifest: NOSIGNATURE

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

  Mekanism-1.16.5-10.1.2.457.jar |Mekanism |mekanism |10.1.2 |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

  dragonseeker-1.1.jar |Dragonseeker |dragonseeker |1.1 |DONE |Manifest: NOSIGNATURE

  journeymap-1.16.5-5.8.5p6.jar |Journeymap |journeymap |5.8.5p6 |DONE |Manifest: NOSIGNATURE

  citadel-1.8.1-1.16.5.jar |Citadel |citadel |1.8.1 |DONE |Manifest: NOSIGNATURE

  TravelersBackpack-1.16.5-5.4.33.jar |Traveler's Backpack |travelersbackpack |5.4.33 |DONE |Manifest: NOSIGNATURE

  FluxNetworks-1.16.5-6.2.1.14.jar |Flux Networks |fluxnetworks |6.2.1.14 |DONE |Manifest: NOSIGNATURE

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

  tombstone-6.8.11-1.16.5.jar |Corail Tombstone |tombstone |6.8.11 |DONE |Manifest: NOSIGNATURE

  MekanismTools-1.16.5-10.1.2.457.jar |Mekanism: Tools |mekanismtools |10.1.2 |DONE |Manifest: NOSIGNATURE

  mcjtylib-1.16-5.1.8.jar |McJtyLib |mcjtylib |1.16-5.1.8 |DONE |Manifest: NOSIGNATURE

  rftoolsbase-1.16-2.1.5.jar |RFToolsBase |rftoolsbase |1.16-2.1.5 |DONE |Manifest: NOSIGNATURE

  notenoughwands-1.16-3.0.2.jar |Not Enough Wands |notenoughwands |1.16-3.0.2 |DONE |Manifest: NOSIGNATURE

  Vampirism-1.16.5-1.9.3.jar |Vampirism |vampirism |1.9.3 |DONE |Manifest: NOSIGNATURE

  VampirismIntegrations-1.16.5-1.6.1.jar |Vampirism Integrations |vampirism_integrations |1.6.1 |DONE |Manifest: NOSIGNATURE

  Werewolves-1.16.5-1.1.0.1.jar |Werewolves |werewolves |1.1.0.1 |DONE |Manifest: NOSIGNATURE

  mahoutsukai-1.16.5-v1.34.43.jar |Mahou Tsukai |mahoutsukai |1.16.5-v1.34.43 |DONE |Manifest: NOSIGNATURE

  iceandfire-2.1.12-1.16.5.jar |Ice and Fire |iceandfire |2.1.12-1.16.5 |DONE |Manifest: NOSIGNATURE

  projecte-integration-1.16.5-4.6.1.jar |ProjectE Integration |projecteintegration |4.6.1 |DONE |Manifest: NOSIGNATURE

  MekanismGenerators-1.16.5-10.1.2.457.jar |Mekanism: Generators |mekanismgenerators |10.1.2 |DONE |Manifest: NOSIGNATURE

  cloth-config-4.15.82-forge.jar |Cloth Config v4 API |cloth-config |4.15.82 |DONE |Manifest: NOSIGNATURE

  inventorypets-1.16.5-2.0.15.jar |Inventory Pets |inventorypets |2.0.15 |DONE |Manifest: NOSIGNATURE

  Auxilium-1.16.5-1.0.1.1.jar |Auxilium |auxilium |1.0.1.1 |DONE |Manifest: NOSIGNATURE

  VampiresNeedUmbrellas-1.16.5-1.1.5.jar |Vampires Need Umbrellas |vampiresneedumbrellas |1.1.5 |DONE |Manifest: NOSIGNATURE

  conjuring-forgery-0.2.2.jar |Conjuring - Forgery |conjuring |0.2.2 |DONE |Manifest: NOSIGNATURE

  forge-1.16.5-36.2.34-universal.jar |Forge |forge |36.2.34 |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

  wings-2.1.0-1.16.5.jar |Wings |wings |2.1.0 |DONE |Manifest: NOSIGNATURE

  refinedstorage-1.9.18.jar |Refined Storage |refinedstorage |1.9.18 |DONE |Manifest: NOSIGNATURE

  GodlyVampirism-1.16.5-1.0.2.jar |Godly Vampirism |godly-vampirism |1.0.2 |DONE |Manifest: NOSIGNATURE

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

  extra-utilities-reborn-1.7.3-1.16.5.jar |Extra Utilities Rebirth |extrautilitiesrebirth |1.7.3 |DONE |Manifest: NOSIGNATURE

 Crash Report UUID: 6bfb8873-9c40-461b-943f-eb5fc600a7d0

 Patchouli open book context: n/a

 Launched Version: 1.16.5-forge-36.2.34

 Backend library: LWJGL version 3.2.2 build 10

 Backend API: Intel(R) HD Graphics 620 GL version 4.6.0 - Build 31.0.101.2111, 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: Português (Brasil)

 CPU: 4x Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This is now replaced in the latest version, under Advanced Settings. Not available under the registry anymore.
    • You have to set the java path in your start script
    • i tried that and i got rid of java to install the new one but it still says i have the old one and i cant get the new one because of the old one  
    • I created a boss for Minecraft and when is it called «An unexpected error occurred while trying to run this command» "net.minecraft.world.entity.ai.attributes.attribute instance.m_22100_ (double)" because the return value "net.minecraft.world.entity.monster.zombie.m_21051_(net.minecraft.world.entity.ai.attributes.attribute)" is null. I don't fully understand what the error is. But it seems to be related to attributes. Please help me figure it out   Here is the boss class itself: package org.mymod.afraid; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.EquipmentSlot; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.ai.goal.*; import net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal; import net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal; import net.minecraft.world.entity.monster.Zombie; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.phys.Vec3; import net.minecraft.core.BlockPos; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.entity.projectile.SmallFireball; import org.jetbrains.annotations.NotNull; public class AfraidBoss extends Zombie { private static final int MAX_HEALTH = 1000; private static final double ATTACK_DAMAGE = 10.0D; private static final double FOLLOW_RANGE = 50.0D; private static final double ATTACK_KNOCKBACK = 1.0D; private static final double MOVEMENT_SPEED = 0.25D; private static final int TELEPORT_RADIUS = 20; private static final int FIREBALL_COOLDOWN = 100; // 5 seconds (20 ticks per second) private static final int FIREBALL_COUNT = 3; private int fireballCooldown = 0; private int fireDashCooldown = 0; public AfraidBoss(EntityType<? extends Zombie> type, Level level) { super(type, level); this.setHealth(MAX_HEALTH); this.setItemSlot(EquipmentSlot.MAINHAND, new ItemStack(Items.DIAMOND_SWORD)); this.setItemSlot(EquipmentSlot.OFFHAND, new ItemStack(Items.DIAMOND_SWORD)); } @Override protected void registerGoals() { this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.0, true)); this.goalSelector.addGoal(2, new MoveTowardsTargetGoal(this, 1.0, (float) TELEPORT_RADIUS)); this.goalSelector.addGoal(3, new LookAtPlayerGoal(this, Player.class, 8.0F)); this.goalSelector.addGoal(4, new WaterAvoidingRandomStrollGoal(this, 1.0)); this.goalSelector.addGoal(5, new HurtByTargetGoal(this)); this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, Player.class, true)); } @Override public void aiStep() { super.aiStep(); if (this.getTarget() instanceof Player) { Player player = (Player) this.getTarget(); double distanceToPlayer = this.distanceToSqr(player); // Fire Dash ability if (distanceToPlayer <= TELEPORT_RADIUS * TELEPORT_RADIUS && fireDashCooldown == 0) { this.fireDash(player); fireDashCooldown = 200; // Cooldown for fire dash (10 seconds) } // Fireball attack if (fireballCooldown == 0) { this.shootFireballs(player); fireballCooldown = FIREBALL_COOLDOWN; // Cooldown for fireball attack (5 seconds) } // Decrement cooldowns if (fireDashCooldown > 0) { fireDashCooldown--; } if (fireballCooldown > 0) { fireballCooldown--; } } } private void fireDash(Player player) { Vec3 direction = player.position().subtract(this.position()).normalize(); Vec3 newPos = this.position().add(direction.scale(10)); this.teleportTo(newPos.x, newPos.y, newPos.z); this.createFireTrail(newPos); player.hurt(DamageSource.mobAttack(this), 20.0F); // Damage the player } private void createFireTrail(Vec3 position) { for (int x = -2; x <= 2; x++) { for (int z = -2; z <= 2; z++) { BlockPos firePos = new BlockPos(position.x + x, position.y, position.z + z); this.level.setBlock(firePos, Blocks.FIRE.defaultBlockState(), 11); } } } private void shootFireballs(Player player) { Vec3 direction = player.position().subtract(this.position()).normalize(); for (int i = 0; i < FIREBALL_COUNT; i++) { SmallFireball fireball = new SmallFireball(this.level, this, direction.x, direction.y, direction.z); fireball.setPos(this.getX() + direction.x, this.getY() + direction.y, this.getZ() + direction.z); this.level.addFreshEntity(fireball); } } public static AttributeSupplier.Builder createAttributes() { return Zombie.createMobAttributes() .add(Attributes.MAX_HEALTH, MAX_HEALTH) .add(Attributes.ATTACK_DAMAGE, ATTACK_DAMAGE) .add(Attributes.FOLLOW_RANGE, FOLLOW_RANGE) .add(Attributes.ATTACK_KNOCKBACK, ATTACK_KNOCKBACK) .add(Attributes.MOVEMENT_SPEED, MOVEMENT_SPEED); } @Override public boolean hurt(@NotNull DamageSource source, float amount) { boolean flag = super.hurt(source, amount); if (flag && source.getEntity() instanceof Player) { Player player = (Player) source.getEntity(); if (this.random.nextInt(10) == 0) { this.teleportAndAttack(player); } } return flag; } private void teleportAndAttack(Player player) { Vec3 randomPos = player.position().add((this.random.nextDouble() - 0.5) * 4, 0, (this.random.nextDouble() - 0.5) * 4); if (this.randomTeleport(randomPos.x, randomPos.y, randomPos.z, true)) { player.hurt(DamageSource.mobAttack(this), 10.0F); // Damage the player } } }  
  • Topics

×
×
  • Create New...

Important Information

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