Jump to content

Search the Community

Showing results for tags 'entities'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Minecraft Forge
    • Releases
    • Support & Bug Reports
    • Suggestions
    • General Discussion
  • Mod Developer Central
    • Modder Support
    • User Submitted Tutorials
  • Non-Forge
    • Site News (non-forge)
    • Minecraft General
    • Off-topic
  • Forge Mods
    • Mods

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


XMPP/GTalk


Gender


URL


Location


ICQ


AIM


Yahoo IM


MSN Messenger


Personal Text

Found 19 results

  1. ---- Minecraft Crash Report ---- // Uh... Did I do that? Time: 2024-06-04 14:18:44 Description: Unexpected error java.lang.NullPointerException: Registry Object not present: travelersbackpack:bee at java.util.Objects.requireNonNull(Objects.java:336) ~[?:?] {re:mixin} at net.minecraftforge.registries.RegistryObject.get(RegistryObject.java:204) ~[forge-1.19.2-43.3.0-universal.jar%23256!/:?] {re:mixin,re:classloading} at com.tiviacz.travelersbackpack.common.BackpackAbilities.beeAbility(BackpackAbilities.java:638) ~[travelersbackpack-forge-1.19.2-8.2.40.jar%23245!/:forge-1.19.2-8.2.40] {re:classloading} at com.tiviacz.travelersbackpack.handlers.ForgeEventHandler.onHit(ForgeEventHandler.java:386) ~[travelersbackpack-forge-1.19.2-8.2.40.jar%23245!/:forge-1.19.2-8.2.40] {re:classloading} at com.tiviacz.travelersbackpack.handlers.__ForgeEventHandler_onHit_AttackEntityEvent.invoke(.dynamic) ~[travelersbackpack-forge-1.19.2-8.2.40.jar%23245!/:forge-1.19.2-8.2.40] {re:classloading,pl:eventbus:B} at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.3.jar%2385!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.3.jar%2385!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.3.jar%2385!/:?] {} at net.minecraftforge.common.ForgeHooks.onPlayerAttackTarget(ForgeHooks.java:826) ~[forge-1.19.2-43.3.0-universal.jar%23256!/:?] {re:classloading} at net.minecraft.world.entity.player.Player.m_5706_(Player.java:1101) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:blue_skies.mixins.json:PlayerEntityMixin,pl:mixin:APP:forge-mca.mixin.json:MixinPlayerEntity,pl:mixin:APP:forge-mca.mixin.json:client.MixinPlayerEntityClient,pl:mixin:APP:aether.mixins.json:common.PlayerMixin,pl:mixin:APP:aether.mixins.json:common.accessor.PlayerAccessor,pl:mixin:APP:comforts.mixins.json:AccessorPlayer,pl:mixin:APP:mixins.essential.json:entity.player.EntityPlayerAccessor,pl:mixin:APP:mixins.essential.json:entity.player.MixinEntityPlayer,pl:mixin:A} at net.minecraft.client.multiplayer.MultiPlayerGameMode.m_105223_(MultiPlayerGameMode.java:412) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_202354_(Minecraft.java:1603) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_91279_(Minecraft.java:1949) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_91398_(Minecraft.java:1768) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1078) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:700) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.m_239872_(Main.java:212) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:51) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {} at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19.2-43.3.0.jar%23101!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {} at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) [ForgeWrapper-prism-2024-02-29.jar:prism-2024-02-29] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace: at java.util.Objects.requireNonNull(Objects.java:336) ~[?:?] {re:mixin} at net.minecraftforge.registries.RegistryObject.get(RegistryObject.java:204) ~[forge-1.19.2-43.3.0-universal.jar%23256!/:?] {re:mixin,re:classloading} at com.tiviacz.travelersbackpack.common.BackpackAbilities.beeAbility(BackpackAbilities.java:638) ~[travelersbackpack-forge-1.19.2-8.2.40.jar%23245!/:forge-1.19.2-8.2.40] {re:classloading} at com.tiviacz.travelersbackpack.handlers.ForgeEventHandler.onHit(ForgeEventHandler.java:386) ~[travelersbackpack-forge-1.19.2-8.2.40.jar%23245!/:forge-1.19.2-8.2.40] {re:classloading} at com.tiviacz.travelersbackpack.handlers.__ForgeEventHandler_onHit_AttackEntityEvent.invoke(.dynamic) ~[travelersbackpack-forge-1.19.2-8.2.40.jar%23245!/:forge-1.19.2-8.2.40] {re:classloading,pl:eventbus:B} at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.3.jar%2385!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.3.jar%2385!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.3.jar%2385!/:?] {} at net.minecraftforge.common.ForgeHooks.onPlayerAttackTarget(ForgeHooks.java:826) ~[forge-1.19.2-43.3.0-universal.jar%23256!/:?] {re:classloading} at net.minecraft.world.entity.player.Player.m_5706_(Player.java:1101) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:blue_skies.mixins.json:PlayerEntityMixin,pl:mixin:APP:forge-mca.mixin.json:MixinPlayerEntity,pl:mixin:APP:forge-mca.mixin.json:client.MixinPlayerEntityClient,pl:mixin:APP:aether.mixins.json:common.PlayerMixin,pl:mixin:APP:aether.mixins.json:common.accessor.PlayerAccessor,pl:mixin:APP:comforts.mixins.json:AccessorPlayer,pl:mixin:APP:mixins.essential.json:entity.player.EntityPlayerAccessor,pl:mixin:APP:mixins.essential.json:entity.player.MixinEntityPlayer,pl:mixin:A} at net.minecraft.client.multiplayer.MultiPlayerGameMode.m_105223_(MultiPlayerGameMode.java:412) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_202354_(Minecraft.java:1603) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_91279_(Minecraft.java:1949) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} -- Affected level -- Details: All players: 1 total; [LocalPlayer['cdkplayz'/251, l='ClientLevel', x=-29.66, y=62.00, z=3.37]] Chunk stats: 289, 169 Level dimension: minecraft:overworld Level spawn location: World: (16,68,-16), Section: (at 0,4,0 in 1,4,-1; chunk contains blocks 16,-64,-16 to 31,319,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,-64,-512 to 511,319,-1) Level time: 130805 game time, 1669 day time Server brand: forge Server type: Non-integrated multiplayer server Stacktrace: at net.minecraft.client.multiplayer.ClientLevel.m_6026_(ClientLevel.java:580) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,xf:OptiFine:default,re:computing_frames,xf:OptiFine:default,re:classloading,xf:OptiFine:default,pl:mixin:APP:blue_skies.mixins.json:ClientLevelMixin,pl:mixin:APP:citadel.mixins.json:client.ClientLevelMixin,pl:mixin:APP:blueprint.mixins.json:client.ClientLevelMixin,pl:mixin:APP:architectury.mixins.json:MixinClientLevel,pl:mixin:APP:mixins.essential.json:feature.particles.Mixin_AddParticleSystemToClientWorld,pl:mixin:A} at net.minecraft.client.Minecraft.m_91354_(Minecraft.java:2280) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:722) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.Mixin_RunEssentialTasks,pl:mixin:APP:mixins.essential.json:client.MixinMinecraft,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_FixKeybindUnpressedInEmoteWheel,pl:mixin:APP:mixins.essential.json:client.gui.Mixin_RecalculateMenuScale,pl:mixin:APP:mixins.essential.json:compatibility.vanilla.Mixin_WorkaroundBrokenFramebufferBlitBlending,pl:mixin:APP:mixins.essential.json:events.Mixin_RenderTickEvent,pl:mixin:APP:mixins.essential.json:feature.skin_overwrites.Mixin_InstallTrustingServicesKeyInfo,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.m_239872_(Main.java:212) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:51) ~[client-1.19.2-20220805.130853-srg.jar%23251!/:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {} at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19.2-43.3.0.jar%23101!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2388!/:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {} at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) [ForgeWrapper-prism-2024-02-29.jar:prism-2024-02-29] {} -- Last reload -- Details: Reload number: 1 Reload reason: initial Finished: Yes Packs: Default, Mod Resources, MCAVoices-1.0.0.zip, Essential Assets, Essential (forge_1.19.2).jar -- System Details -- Details: Minecraft Version: 1.19.2 Minecraft Version ID: 1.19.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 17.0.8, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 689627984 bytes (657 MiB) / 2147483648 bytes (2048 MiB) up to 2147483648 bytes (2048 MiB) CPUs: 4 Processor Vendor: GenuineIntel Processor Name: Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz Identifier: Intel64 Family 6 Model 58 Stepping 9 Microarchitecture: Ivy Bridge (Client) Frequency (GHz): 3.29 Number of physical packages: 1 Number of physical CPUs: 2 Number of logical CPUs: 4 Graphics card #0 name: Intel(R) HD Graphics 4000 Graphics card #0 vendor: Intel Corporation (0x8086) Graphics card #0 VRAM (MB): 3072.00 Graphics card #0 deviceId: 0x0162 Graphics card #0 versionInfo: DriverVersion=10.18.10.4252 Graphics card #1 name: NVIDIA GeForce GTX 970 Graphics card #1 vendor: NVIDIA (0x10de) Graphics card #1 VRAM (MB): 4095.00 Graphics card #1 deviceId: 0x13c2 Graphics card #1 versionInfo: DriverVersion=31.0.15.3623 Memory slot #0 capacity (MB): 8192.00 Memory slot #0 clockSpeed (GHz): 1.60 Memory slot #0 type: DDR3 Memory slot #1 capacity (MB): 8192.00 Memory slot #1 clockSpeed (GHz): 1.60 Memory slot #1 type: DDR3 Virtual memory max (MB): 19285.43 Virtual memory used (MB): 11070.45 Swap memory total (MB): 3968.00 Swap memory used (MB): 157.18 JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M Launched Version: 1.19.2-forge-43.3.0-wrapper Backend library: LWJGL version 3.3.1 build 7 Backend API: NVIDIA GeForce GTX 970/PCIe/SSE2 GL version 3.2.0 NVIDIA 536.23, NVIDIA Corporation Window size: 1920x1080 GL Caps: Using framebuffer using OpenGL 3.2 GL debug messages: Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'forge' Type: Client (map_client.txt) Graphics mode: fast Resource Packs: vanilla, mod_resources, file/MCAVoices-1.0.0.zip (incompatible) Current Language: English (US) CPU: 4x Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz OptiFine Version: OptiFine_1.19.2_HD_U_H9 OptiFine Build: 20220820-230904 Render Distance Chunks: 8 Mipmaps: 4 Anisotropic Filtering: 1 Antialiasing: 0 Multitexture: false Shaders: null OpenGlVersion: 3.2.0 NVIDIA 536.23 OpenGlRenderer: NVIDIA GeForce GTX 970/PCIe/SSE2 OpenGlVendor: NVIDIA Corporation CpuCount: 4 ModLauncher: 10.0.8+10.0.8+main.0ef7e830 ModLauncher launch target: forgeclient ModLauncher naming: srg ModLauncher services: mixin-0.8.5.jar mixin PLUGINSERVICE eventbus-6.0.3.jar eventbus PLUGINSERVICE fmlloader-1.19.2-43.3.0.jar slf4jfixer PLUGINSERVICE fmlloader-1.19.2-43.3.0.jar object_holder_definalize PLUGINSERVICE fmlloader-1.19.2-43.3.0.jar runtime_enum_extender PLUGINSERVICE fmlloader-1.19.2-43.3.0.jar capability_token_subclass PLUGINSERVICE accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE fmlloader-1.19.2-43.3.0.jar runtimedistcleaner PLUGINSERVICE modlauncher-10.0.8.jar mixin TRANSFORMATIONSERVICE modlauncher-10.0.8.jar OptiFine TRANSFORMATIONSERVICE modlauncher-10.0.8.jar essential-loader TRANSFORMATIONSERVICE modlauncher-10.0.8.jar fml TRANSFORMATIONSERVICE FML Language Providers: [email protected] [email protected] lowcodefml@null javafml@null Mod List: blue_skies-1.19.2-1.3.20.jar |Blue Skies |blue_skies |1.3.20 |DONE |Manifest: NOSIGNATURE aether-1.19.2-1.4.2-forge.jar |The Aether |aether |1.19.2-1.4.2-forge |DONE |Manifest: NOSIGNATURE jei-1.19.2-forge-11.6.0.1019.jar |Just Enough Items |jei |11.6.0.1019 |DONE |Manifest: NOSIGNATURE callablehorses-1.19.2-1.2.2.3.jar |Callable Horses |callablehorses |1.2.2.3 |DONE |Manifest: 8c:03:ac:7d:21:62:65:e2:83:91:f3:22:57:99:ed:75:78:1e:db:de:03:99:ef:53:3b:59:95:18:01:bc:84:a9 libraryferret-forge-1.19.2-4.0.0.jar |Library ferret |libraryferret |4.0.0 |DONE |Manifest: NOSIGNATURE goblintraders-1.8.0-1.19.2.jar |Goblin Traders |goblintraders |1.8.0 |DONE |Manifest: NOSIGNATURE Incendium_1.19.3_v5.1.6.jar |Incendium |incendium |5.1.6 |DONE |Manifest: NOSIGNATURE waystones-forge-1.19.2-11.4.2.jar |Waystones |waystones |11.4.2 |DONE |Manifest: NOSIGNATURE awesomedungeon-forge-1.19.2-3.2.0.jar |Awesome dungeon |awesomedungeon |3.2.0 |DONE |Manifest: NOSIGNATURE comforts-forge-6.0.7+1.19.2.jar |Comforts |comforts |6.0.7+1.19.2 |DONE |Manifest: NOSIGNATURE citadel-2.1.4-1.19.jar |Citadel |citadel |2.1.4 |DONE |Manifest: NOSIGNATURE alexsmobs-1.21.1 (1).jar |Alex's Mobs |alexsmobs |1.21.1 |DONE |Manifest: NOSIGNATURE travelersbackpack-forge-1.19.2-8.2.40.jar |Traveler's Backpack |travelersbackpack |8.2.40 |DONE |Manifest: NOSIGNATURE breezy-1.19.2-1.0.6.jar |Breezy |breezy |1.19.2-1.0.6 |DONE |Manifest: NOSIGNATURE SereneSeasons-1.19.2-8.1.0.24.jar |Serene Seasons |sereneseasons |0.0NONE |DONE |Manifest: NOSIGNATURE YungsApi-1.19.2-Forge-3.8.10.jar |YUNG's API |yungsapi |1.19.2-Forge-3.8.10 |DONE |Manifest: NOSIGNATURE mixinextras-forge-0.2.0-beta.9.jar |MixinExtras |mixinextras |0.2.0-beta.9 |DONE |Manifest: NOSIGNATURE DungeonCrawl-1.19-2.3.12.jar |Dungeon Crawl |dungeoncrawl |2.3.12 |DONE |Manifest: NOSIGNATURE takesapillage-1.0.1-1.19.2.jar |It Takes A Pillage |takesapillage |1.0.1 |DONE |Manifest: NOSIGNATURE balm-forge-1.19.2-4.6.0.jar |Balm |balm |4.6.0 |DONE |Manifest: NOSIGNATURE Terralith_1.19.3_v2.3.12.jar |Terralith |terralith |2.3.12 |DONE |Manifest: NOSIGNATURE blueprint-1.19.2-6.2.0.jar |Blueprint |blueprint |6.2.0 |DONE |Manifest: NOSIGNATURE forge-1.19.2-43.3.0-universal.jar |Forge |forge |43.3.0 |DONE |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90 ctov-3.2.6c.jar |ChoiceTheorem's Overhauled Vil|ctov |3.2.6c |DONE |Manifest: NOSIGNATURE structure_gel-1.19.2-2.7.3.jar |Structure Gel API |structure_gel |2.7.3 |DONE |Manifest: NOSIGNATURE DungeonsArise-1.19.2-2.1.54-release.jar |When Dungeons Arise |dungeons_arise |2.1.54-1.19.2 |DONE |Manifest: NOSIGNATURE client-1.19.2-20220805.130853-srg.jar |Minecraft |minecraft |1.19.2 |DONE |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f FarmersDelight-1.19.2-1.2.4.jar |Farmer's Delight |farmersdelight |1.19.2-1.2.4 |DONE |Manifest: NOSIGNATURE TerraBlender-forge-1.19.2-2.0.1.136.jar |TerraBlender |terrablender |2.0.1.136 |DONE |Manifest: NOSIGNATURE BiomesOPlenty-1.19.2-17.1.1.162.jar |Biomes O' Plenty |biomesoplenty |17.1.1.162 |DONE |Manifest: NOSIGNATURE endrem_forge-5.2.1-R-1.19.X.jar |End Remastered |endrem |5.2.1-R-1.19.2 |DONE |Manifest: NOSIGNATURE dungeons_plus-1.19.2-1.3.1.jar |Dungeons Plus |dungeons_plus |1.3.1 |DONE |Manifest: NOSIGNATURE armortrims-1.19.2-1.3.3.jar |Armor Trims Backport |armor_trims |1.3.3 |DONE |Manifest: NOSIGNATURE MinecraftCapes Forge 1.19.2-12.3.6.jar |MinecraftCapes Mod |minecraftcapes |12.3.6 |DONE |Manifest: NOSIGNATURE spectrelib-forge-0.12.8+1.19.2.jar |SpectreLib |spectrelib |0.12.8+1.19.2 |DONE |Manifest: NOSIGNATURE curios-forge-1.19.2-5.1.4.1.jar |Curios API |curios |1.19.2-5.1.4.1 |DONE |Manifest: NOSIGNATURE cumulus_menus-1.19.2-1.0.0-forge.jar |Cumulus |cumulus_menus |1.19.2-1.0.0-forge |DONE |Manifest: NOSIGNATURE Wabi-Sabi-Structures-1.1.1-Forge.jar |Wabi-Sabi Structures |wabi_sabi_structures |1.1.1 |DONE |Manifest: NOSIGNATURE tlc_forge-1.0.2-R-1.19.2.jar |The Lost Castle |tlc |1.0.2 |DONE |Manifest: NOSIGNATURE mvs-4.1.2-1.19.2-forge.jar |Moog's Voyager Structures |mvs |4.1.2-1.19.2-forge |DONE |Manifest: NOSIGNATURE deeperdarker-forge-1.19.2-1.2.2.jar |Deeper and Darker |deeperdarker |1.2.2 |DONE |Manifest: NOSIGNATURE architectury-6.6.92-forge.jar |Architectury |architectury |6.6.92 |DONE |Manifest: NOSIGNATURE minecraft-comes-alive-7.5.14+1.19.2-universal.jar |Minecraft Comes Alive |mca |7.5.14+1.19.2 |DONE |Manifest: NOSIGNATURE nitrogen_internals-1.19.2-1.0.3-forge.jar |Nitrogen |nitrogen_internals |1.19.2-1.0.3-forge |DONE |Manifest: NOSIGNATURE smallships-forge-1.19.2-2.0.0-b1.2.jar |Small Ships |smallships |2.0.0-b1.2 |DONE |Manifest: NOSIGNATURE Towns-and-Towers-v.1.10-_FORGE-1.19.2_.jar |Towns and Towers |t_and_t |1.10 |DONE |Manifest: NOSIGNATURE YungsBetterMineshafts-1.19.2-Forge-3.2.1.jar |YUNG's Better Mineshafts |bettermineshafts |1.19.2-Forge-3.2.1 |DONE |Manifest: NOSIGNATURE geckolib-forge-1.19-3.1.40.jar |GeckoLib |geckolib3 |3.1.40 |DONE |Manifest: NOSIGNATURE End's Phantasm - BETAv1.2.10.5 - 1.19.2.jar |End's Phantasm |phantasm |1.2.10.5 |DONE |Manifest: NOSIGNATURE Essential (forge_1.19.2).jar |Essential |essential |1.3.2.5+ge4fdbcd438 |DONE |Manifest: NOSIGNATURE xptome-1.19-2.1.7.jar |XP Tome |xpbook |2.1.7 |DONE |Manifest: NOSIGNATURE Crash Report UUID: 01a02f32-123c-4b1c-adbe-fe48d6e7bb9c FML: 43.3 Forge: net.minecraftforge:43.3.0
  2. I've decided to make an add-on mod for Immersive Aircraft, adding a Seaplane. I'm basically aiming to have all the functions of a vanilla boat slapped onto a Biplane. My main priority is having it float like a boat on the surface of water. I've looked around a bit but haven't found anything clear on how boats float or how I could apply that to an entity. It very well could be a simple thing that I overlooked or misunderstood, code confuses me. ;-; The other two things, which are not as important but still crucial to a completely finished plane, are having solid, block-like collision to where players and entities can stand on the plane and not be able to walk through it, and moving slow on land as it wouldn't have wheels. Though I'm sure I can figure those out myself, besides, I need to do some of this problem solving on my own xd
  3. Hey folks. I am working on a custom "Mecha" entity (extended from LivingEntity) that the player builds up from blocks that should get modular stats depending on the used blocks. e.g. depending on what will be used for the legs, the entity will have a different jump strength. However, something unexpected is happening when trying to override a few of LivingEntity's functions and using my new own "Mecha" specific fields: instead of their actual instance-specific value, the default value is used (0f for a float, null for an object...) This is especially strange as when executing with the same entity from a point in the code specific to the mecha entity, the correct value is used. Here are some code snippets to better illustrate what I mean: /* The main Mecha class, cut down for brevity */ public class Mecha extends LivingEntity { protected float jumpMultiplier; //somewhere later during the code when spawning the entity, jumpMultiplier is set to something like 1.5f //changing the access to public didn't help @Override //Overridden from LivingEntity, this function is only used in the jumpFromGround() function, used in the aiStep() function, used in the LivingEntity tick() function protected float getJumpPower() { //something is wrong with this function //for some reason I can't correctly access the fields and methods from the instanciated entity when I am in one of those overridden protected functions. this is very annoying LogUtils.getLogger().info(String.valueOf(this.jumpMultiplier))) //will print 0f return this.jumpMultiplier * super.getJumpPower(); } //The code above does not operate properly. Written as is, the entity will not jump, and adding debug logs shows that when executing the code, the value of this.jumpMultiplier is 0f //in contrast, it will be the correct value when done here: @Override public void tick() { super.tick(); //inherited LivingEntity logic //Custom logic LogUtils.getLogger().info(String.valueOf(this.jumpMultiplier))) //will print 1.5f } } My actual code is slightly different, as the jumpMuliplier is stored in another object (so I am calling "this.legModule.getJumpPower()" instead of the float), but even using a simple float exactly like in the code above didn't help. When running my usual code, the object I try to use is found to be null instead, leading to a crash from a nullPointerException. Here is the stacktrace of said crash: The full code can be viewed here. I have found a workaround in the case of jump strength, but have already found the same problem for another parameter I want to do, and I do not understand why the code is behaving as such, and I would very much like to be able to override those methods as intended - they seemed to work just fine like that for vanilla mobs... Any clues as to what may be happening here?
  4. How can I change player jump height with attributes modifiers? I want to make boots that increase the strength of the jump. I want to make it like the jump boost effect works. I know that I can give jump boost effect to player every time when he jumps but there are several problems with this solution. 1) I can give jump boost effect of exact integers. This mean I can't give jump boost level between 1 and 2 (1.875 and 2.5 blocks). 2) The sign in the inventory. I can cancel event that show all these signs but that means when the boots will be on the player he will not see signs of others effects. How can I change player jump height with attributes modifiers?
  5. Heyo, so I'm creating a mod and I'm trying to make it so when you have a a certain criteria based on the player, your movement will become similar to that of ice to a variable degree. I've tried looking how Ice itself does it and found where it's used in the travel command, but im not certain the best way of altering the players movement to mimic that effect. Any guidance would be greatly appreciated.
  6. My mobs are all subclasses of PathfinderMob and don't have any spawning restrictions. I added each mob to the respective biomes with weight: 100, minCount: 1, and maxCount: 2. I can send any relevant code if it helps with troubleshooting. When I first teleport to my custom dimension and run /forge entity list, I get the following: After I fly ~500 blocks away and run the command again, there are significantly less entities spawning. If I return to the first location and run the command again, even less entities. In the vanilla overworld I am seeing anywhere between 200 and 300 entities, so I know there's an issue. But I'm not sure where to start looking. Which files restrict mob spawning?
  7. Hi everyone! I'm learning modding on forge 1.16.5 and want to make the Leviathan Axe from the God of War games, but I'm facing two problems: 1) The entity model in the air and on the ground when thrown is not rendered 2) There's no sound of picking up the axe Moreover, when thrown, the entity itself spawns, that is, it causes damage, falls, creates sounds of falling and hitting other entities, but the axe model is not visible. I registered the renderer in the doClientStuff method in the main class of the mod, but still the model is not rendered. Renderer class: LeviathanAxeRenderer Model class: LeviathanAxeModel Entity class: LeviathanAxeEntity Item Class: LeviathanAxeItem I hope this information is enough to help me resolve the issue, if not I will be happy to provide more. I would be very grateful for your help, I’ve been struggling with this for a day now and can’t figure out what the problem is
  8. I am coding the mod using Intellij community edition with the Adoptium sdk 17 download, all the models i have made using Blockbench, the minecraft version is 1.20.4 and the forge version is 49.0.30. I am trying to make a medieval furnace and i have made the model exceed the 1 block so i have made 3 block models, the medieval furnace thats mentioned previously, the bottom of the furnace that made up the block and the top of the furnace that exceeded the block. I have been following a youtube tutorial by Modding by Kaupenjoe(this is the playlist im following) and he doesnt cover the multiblock function in his tutorial. I have looked to see other solutions but they havent been the right one i have been looking for. I am wanting when the top of the furnace is placed on top and is facing the same direction as the bottom of the furnace and it will let the player interact with the furnace whether they click on the bottom of the furnace or the top of the furnace. Im not entirely sure on what part of my code i should give either im sorry.
  9. Hi, I have a scenario where I would like the player to die no-matter-what. Player#die(DamageSource dmgSrc) seemed like the obvious solution, but I couldn't for the life of me figure out why my custom damage source's death message wasn't displaying (I originally had DamageSource.GENERIC as a placeholder). Then I realised that it didn't matter what DamageSource I put, #die always gave the generic death message. The next most obvious solution is to just hurt the player for a ridiculous amount of damage that bypasses armor, invulnerability, and magic, but that doesn't feel very neat. I was wondering if anyone had any suggestions on a better way. In a modded environment one doesn't always know what ridiculous things have been done with the player's health, so it's hard to know what level of silliness the damage number should possess. I'll leave it with the hurt solution in the mean time.
  10. I made a projectile extending the AbstractHurtingProjectile class. The relevant code and video showing the error are shown below. I want my projectile to be able to pass through blocks and hit multiple entities, it should only despawn after a certain amount of time. For some reason, it does not hit entities in the situations shown below. It can't hit the bottom of the entity if there are blocks in the way, even though the projectile has been shown to damage an entity through blocks as long as I aim body level. Also, it can't hit entities through blocks if I shoot from above or below. Why is my projectile behaving like this? I am at my wit's end. (Ignore the chat I put that there for debugging purposes) Video demonstrating issues Class that defines projectile behavior: Item class that shoots projectile when right-clicked (lines 37 and 53-56 are the relevant ones): Class where I register the projectile entity:
  11. sorry,i found the issues just some stupid reasons. but idont know how to delete the post
  12. I have followed KaupenJoe's tutorial and wanted to make an entity. But when I implemented the animations, they broke and look weird. I think they are playing the walk animation and the idle over each other, but I am not sure. Here is my GitHub repository: https://github.com/Skwarken/KNKforge The videos show how it should look and how it looks in game: https://drive.google.com/drive/folders/1LsXzjMfkp4fNxt5epDJaJF5PyyzHMxGp?usp=sharing
  13. I am adding in an entity identical to the Creeper. I have an Idle animation, a Running animation, and a Walking animation. At the moment, the Idle and Walk animations are conflicting whenever it stands still, causing a jittery movement. Though I followed the Minecraft modding course by KaupenJoe to a tee, my animations seem to conflict with the code which Kaupen wrote. - I would like to implement the walk animation to only play when it is randomly walking. - I would like to implement the Idle animation only when it is idle, standing still. - I would like to implement the running animation to play when the creeper is targeting another entity, because it speeds up in movement. Any help is appreciated! Here is a gist of my current Model.java. Let me know if you need any more info! Thank you in advance.
  14. Hello, guys! I'm creating a mod that includes a machine. This machine has 4 slots: 2 input slots and 2 output slots. For this machine to work, it needs two things: 2 valid items in the input slots, and it requires that the player clicks on the "uncraft" button in the center of the GUI. Then the progress will start. However, I'm not able to make the block entity understand that the button was clicked on the client side. Does anybody know how to implement a GUI button that updates a block entity variable? This is my project: https://github.com/jujulioed/Dukas_Utilities_Mod (in this version, the button interaction was not implemented yet.)
  15. I have a block with entity block which should emit redstone signal if there's a player nearby. I have a POWER property that represents the redstone signal power, it's updated from the block entity tick and I do update the blockstate and notify neighbors about it (if I do it in a right way, I'm new to modding in Minecraft :D) According to what I see from some debugging, ticks actually happen and property actually changes its value (I didn't test that from the block code though, only in the block entity code) but redstone signal doesn't change. Here's my block code: package net.mabutingtao.fadinglight.block; import net.mabutingtao.fadinglight.init.MyBlockEntityRegistry; import net.mabutingtao.fadinglight.util.TickableBlockEntity; import net.minecraft.world.level.block.entity.BlockEntityTicker; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.StateDefinition; import net.minecraft.world.level.block.state.properties.IntegerProperty; import net.minecraft.world.level.block.state.properties.Property; import net.minecraft.world.phys.shapes.VoxelShape; import net.minecraft.world.phys.shapes.Shapes; import net.minecraft.world.phys.shapes.CollisionContext; import net.minecraft.world.level.storage.loot.LootParams; import net.minecraft.world.level.block.state.properties.NoteBlockInstrument; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.SoundType; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.BlockGetter; import net.minecraft.world.item.TooltipFlag; import net.minecraft.world.item.ItemStack; import net.minecraft.network.chat.Component; import net.minecraft.core.Direction; import net.minecraft.core.BlockPos; import java.util.List; import java.util.Collections; import java.util.ArrayList; import net.minecraft.world.level.LevelAccessor; import net.minecraft.world.entity.Entity; import net.minecraft.world.level.Level; import java.util.Random; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.EntityBlock; import javax.annotation.Nullable; import net.minecraft.world.level.block.RenderShape; public class SoulSensorBlock extends Block implements EntityBlock { public static final IntegerProperty POWER = IntegerProperty.create("power", 0, 15); public SoulSensorBlock() { super(Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(1f, 10f).noOcclusion().isRedstoneConductor((bs, br, bp) -> true)); this.registerDefaultState(((BlockState) this.stateDefinition.any()).setValue(POWER, 15)); } protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) { builder.add(POWER); } @Nullable @Override public BlockEntity newBlockEntity(BlockPos pos, BlockState state) { return MyBlockEntityRegistry.SOUL_SENSOR.get().create(pos, state); } @org.jetbrains.annotations.Nullable @Override public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, BlockState state, BlockEntityType<T> type) { return TickableBlockEntity.getTickerHelper(level); } @Override public boolean triggerEvent(BlockState state, Level world, BlockPos pos, int eventID, int eventParam) { super.triggerEvent(state, world, pos, eventID, eventParam); BlockEntity blockEntity = world.getBlockEntity(pos); return blockEntity == null ? false : blockEntity.triggerEvent(eventID, eventParam); } @Override public void onPlace(BlockState state, Level level, BlockPos pos, BlockState state1, boolean b) { Direction[] directions = Direction.values(); for (Direction direction : directions) { level.updateNeighborsAt(pos.relative(direction), this); } } @Override public void onRemove(BlockState state, Level level, BlockPos pos, BlockState state1, boolean b) { if (!b) { Direction[] directions = Direction.values(); for (Direction direction : directions) { level.updateNeighborsAt(pos.relative(direction), this); } } } @Override public void appendHoverText(ItemStack itemstack, BlockGetter world, List<Component> list, TooltipFlag flag) { super.appendHoverText(itemstack, world, list, flag); } @Override public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) { return 15; } @Override public VoxelShape getVisualShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) { return Shapes.empty(); } @Override public boolean isSignalSource(BlockState state) { return true; } @Override public int getSignal(BlockState blockstate, BlockGetter blockAccess, BlockPos pos, Direction direction) { return blockstate.getValue(POWER); } @Override public int getDirectSignal(BlockState blockstate, BlockGetter blockAccess, BlockPos pos, Direction direction) { return blockstate.getValue(POWER); } @Override public boolean canConnectRedstone(BlockState state, BlockGetter world, BlockPos pos, Direction side) { return true; } @Override public List<ItemStack> getDrops(BlockState state, LootParams.Builder builder) { List<ItemStack> dropsOriginal = super.getDrops(state, builder); if (!dropsOriginal.isEmpty()) return dropsOriginal; return Collections.singletonList(new ItemStack(this, 1)); } } And here's the code of block entity: package net.mabutingtao.fadinglight.block; import net.mabutingtao.fadinglight.init.*; import net.mabutingtao.fadinglight.init.MyBlockEntityRegistry; import net.mabutingtao.fadinglight.util.TickableBlockEntity; import net.minecraft.core.Direction; import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.BlockGetter; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.*; import net.minecraft.world.level.block.entity.BlockEntityTicker; import net.minecraft.world.level.block.state.properties.BlockStateProperties; import net.minecraft.world.phys.Vec3; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.event.server.ServerStartingEvent; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.api.distmarker.Dist; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.core.BlockPos; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraftforge.registries.RegistryObject; import net.minecraft.core.Registry; public class SoulSensorEntityBlock extends BlockEntity implements TickableBlockEntity { private int last_output = 0; public SoulSensorEntityBlock(BlockPos pos, BlockState state) { super(MyBlockEntityRegistry.SOUL_SENSOR.get(), pos, state); } public void tick() { Level level = this.getLevel(); BlockPos pos = this.getBlockPos(); BlockState state = this.getBlockState(); int output = 0; if (isPlayerNearby(level, pos, 4)) { output = 15; } if (output != last_output) { level.setBlockAndUpdate(pos, state.setValue(SoulSensorBlock.POWER, output)); this.updateNeighbours(state, level, pos); } last_output = output; } private void updateNeighbours(BlockState state, Level level, BlockPos pos) { level.updateNeighborsAt(pos, state.getBlock()); Direction[] directions = Direction.values(); for (Direction direction : directions) { level.updateNeighborsAt(pos.relative(direction), state.getBlock()); } } private boolean isPlayerNearby(Level level, BlockPos pos, double distance) { for (Player player : level.players()) { if (player.distanceToSqr(Vec3.atCenterOf(pos)) <= distance) return true; } return false; } } Thanks in advance for help.
  16. How to make an entity have a short animation when an event is triggered?
  17. Project https://github.com/PositiveEStudio/undergroundfire I register the entity, model and renderer, but I find model has not been loaded in game. Can someone help me to solve my problem?
  18. When I am testing my mod, I cannot summon my Corrupted Zombie entity. This is the code: https://github.com/WitherBean/Decaying-Worlds-1.19-Forge/tree/main. The mod is for Forge 1.19. I am using Visual Studio Code.
×
×
  • Create New...

Important Information

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