Jump to content

Entity not spawning


Overtek

Recommended Posts

Hi ! I'm new to modding and java (i'm actually learning). I made a penguin entity following a tutorial on youtube about it. My entity won't spawn and I out of idea.

 

Here the error. It say that I have no attributes but I gave him. So I don't understand.

Spoiler

[31juil.2022 23:36:42.937] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 1.19, --assetsDir, C:\Users\Shadow\.gradle\caches\forge_gradle\assets, --gameDir, ., --fml.forgeVersion, 41.1.0, --fml.mcVersion, 1.19, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220607.102129]
[31juil.2022 23:36:42.943] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.4 by Oracle Corporation; OS Windows 10 arch amd64 version 10.0
[31juil.2022 23:36:43.154] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/Shadow/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.5/9d1c0c3a304ae6697ecd477218fa61b850bf57fc/mixin-0.8.5.jar%23118!/ Service=ModLauncher Env=CLIENT
[31juil.2022 23:36:43.675] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\Shadow\.gradle\caches\modules-2\files-2.1\net.minecraftforge\javafmllanguage\1.19-41.1.0\be32fef2bf3091b53308e5a1b1930169dd34136c\javafmllanguage-1.19-41.1.0.jar is missing mods.toml file
[31juil.2022 23:36:43.689] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\Shadow\.gradle\caches\modules-2\files-2.1\net.minecraftforge\lowcodelanguage\1.19-41.1.0\887bff594c934cc4088c9c867db193b8537ee1f6\lowcodelanguage-1.19-41.1.0.jar is missing mods.toml file
[31juil.2022 23:36:43.703] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\Shadow\.gradle\caches\modules-2\files-2.1\net.minecraftforge\mclanguage\1.19-41.1.0\48ae61dcde926300da0c051d88c072ef1dc71ebb\mclanguage-1.19-41.1.0.jar is missing mods.toml file
[31juil.2022 23:36:43.718] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\Shadow\.gradle\caches\modules-2\files-2.1\net.minecraftforge\fmlcore\1.19-41.1.0\a11d8b3111ba256064745a6a79f7fee189751152\fmlcore-1.19-41.1.0.jar is missing mods.toml file
[31juil.2022 23:36:43.907] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: No dependencies to load found. Skipping!
[31juil.2022 23:36:45.700] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclientuserdev' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Shadow\.gradle\caches\forge_gradle\assets, --assetIndex, 1.19]
[31juil.2022 23:36:50.479] [pool-3-thread-1/INFO] [net.minecraft.util.datafix.DataFixers/]: Building unoptimized datafixer
[31juil.2022 23:36:52.871] [Render thread/WARN] [net.minecraft.server.packs.VanillaPackResources/]: Assets URL 'union:/C:/Users/Shadow/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.19-41.1.0_mapped_official_1.19/forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/assets/.mcassetsroot' uses unexpected schema
[31juil.2022 23:36:52.871] [Render thread/WARN] [net.minecraft.server.packs.VanillaPackResources/]: Assets URL 'union:/C:/Users/Shadow/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.19-41.1.0_mapped_official_1.19/forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/data/.mcassetsroot' uses unexpected schema
[31juil.2022 23:36:52.905] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[31juil.2022 23:36:52.911] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
[31juil.2022 23:36:53.053] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.3.1 build 7
[31juil.2022 23:36:53.890] [modloading-worker-0/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 41.1.0, for MC 1.19 with MCP 20220607.102129
[31juil.2022 23:36:53.894] [modloading-worker-0/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v41.1.0 Initialized
[31juil.2022 23:36:55.116] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
[31juil.2022 23:36:55.162] [Render thread/INFO] [net.minecraftforge.gametest.ForgeGameTestHooks/]: Enabled Gametest Namespaces: [pingoo]
[31juil.2022 23:36:55.575] [Render thread/INFO] [net.minecraft.server.packs.resources.ReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources
[31juil.2022 23:36:56.022] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json
[31juil.2022 23:37:11.041] [Forge Version Check/WARN] [net.minecraftforge.fml.VersionChecker/]: Failed to process update information
java.net.http.HttpConnectTimeoutException: HTTP connect timed out
    at jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:567) ~[java.net.http:?]
    at jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123) ~[java.net.http:?]
    at net.minecraftforge.fml.VersionChecker$1.openUrlString(VersionChecker.java:139) ~[fmlcore-1.19-41.1.0.jar%23185!/:?]
    at net.minecraftforge.fml.VersionChecker$1.process(VersionChecker.java:177) ~[fmlcore-1.19-41.1.0.jar%23185!/:?]
    at java.lang.Iterable.forEach(Iterable.java:75) [?:?]
    at net.minecraftforge.fml.VersionChecker$1.run(VersionChecker.java:114) [fmlcore-1.19-41.1.0.jar%23185!/:?]
Caused by: java.net.http.HttpConnectTimeoutException: HTTP connect timed out
    at jdk.internal.net.http.ResponseTimerEvent.handle(ResponseTimerEvent.java:68) ~[java.net.http:?]
    at jdk.internal.net.http.HttpClientImpl.purgeTimeoutsAndReturnNextDeadline(HttpClientImpl.java:1270) ~[java.net.http:?]
    at jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:899) ~[java.net.http:?]
Caused by: java.net.ConnectException: HTTP connect timed out
    at jdk.internal.net.http.ResponseTimerEvent.handle(ResponseTimerEvent.java:69) ~[java.net.http:?]
    at jdk.internal.net.http.HttpClientImpl.purgeTimeoutsAndReturnNextDeadline(HttpClientImpl.java:1270) ~[java.net.http:?]
    at jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:899) ~[java.net.http:?]
[31juil.2022 23:37:16.162] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.163] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.163] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.163] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.164] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.164] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.164] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.164] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.165] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.165] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.165] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.165] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.165] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.165] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.165] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.166] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.166] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.166] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:16.166] [modloading-worker-0/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:17.294] [Render thread/WARN] [net.minecraft.client.sounds.SoundEngine/]: Missing sound for event: minecraft:item.goat_horn.play
[31juil.2022 23:37:17.295] [Render thread/WARN] [net.minecraft.client.sounds.SoundEngine/]: Missing sound for event: minecraft:entity.goat.screaming.horn_break
[31juil.2022 23:37:17.347] [Render thread/INFO] [com.mojang.blaze3d.audio.Library/]: OpenAL initialized on device OpenAL Soft on DigitalOutput (NVIDIA High Definition Audio)
[31juil.2022 23:37:17.349] [Render thread/INFO] [net.minecraft.client.sounds.SoundEngine/SOUNDS]: Sound engine started
[31juil.2022 23:37:17.568] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
[31juil.2022 23:37:17.579] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas
[31juil.2022 23:37:17.581] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[31juil.2022 23:37:17.582] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[31juil.2022 23:37:17.583] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[31juil.2022 23:37:17.584] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[31juil.2022 23:37:17.584] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[31juil.2022 23:37:18.670] [Render thread/WARN] [net.minecraft.client.renderer.ShaderInstance/]: Shader rendertype_entity_translucent_emissive could not find sampler named Sampler2 in the specified shader program.
[31juil.2022 23:37:19.223] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
[31juil.2022 23:37:19.225] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[31juil.2022 23:37:19.226] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[31juil.2022 23:37:20.040] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id
[31juil.2022 23:37:40.808] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.808] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.808] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.809] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.809] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.809] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.809] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.809] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.809] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.810] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.810] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.810] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.810] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.810] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.811] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.811] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.811] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.811] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.811] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.854] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.854] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.855] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.855] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.855] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.855] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.855] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.855] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.855] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.856] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.856] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.856] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.856] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.856] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.856] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.857] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.857] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.857] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:40.857] [Render thread/ERROR] [net.minecraft.Util/]: Entity pingoo:penguin has no attributes
[31juil.2022 23:37:46.069] [Render thread/INFO] [net.minecraft.world.item.crafting.RecipeManager/]: Loaded 7 recipes
[31juil.2022 23:37:48.191] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 1179 advancements
[31juil.2022 23:37:48.811] [Server thread/INFO] [net.minecraft.client.server.IntegratedServer/]: Starting integrated minecraft server version 1.19
[31juil.2022 23:37:48.811] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Generating keypair
[31juil.2022 23:37:49.307] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld
[31juil.2022 23:37:53.617] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.618] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.618] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.618] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.618] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.619] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.619] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.619] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.619] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:53.831] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 0%
[31juil.2022 23:37:54.381] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 17%
[31juil.2022 23:37:54.843] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Preparing spawn area: 55%
[31juil.2022 23:37:55.287] [Server thread/INFO] [net.minecraftforge.server.permission.PermissionAPI/]: Successfully initialized permission handler forge:default_handler
[31juil.2022 23:37:55.325] [Render thread/INFO] [net.minecraft.server.level.progress.LoggerChunkProgressListener/]: Time elapsed: 6001 ms
[31juil.2022 23:37:55.403] [Server thread/INFO] [net.minecraft.client.server.IntegratedServer/]: Changing view distance to 12, from 10
[31juil.2022 23:37:55.406] [Server thread/INFO] [net.minecraft.client.server.IntegratedServer/]: Changing simulation distance to 12, from 0
[31juil.2022 23:37:55.577] [Render thread/WARN] [io.netty.util.internal.SystemPropertyUtil/]: Unable to parse the boolean system property 'java.net.preferIPv6Addresses':system - using the default value: false
[31juil.2022 23:37:56.087] [Netty Local Client IO #0/INFO] [net.minecraftforge.network.NetworkHooks/]: Connected to a modded server.
[31juil.2022 23:37:56.142] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@6485d4aa
[31juil.2022 23:37:56.161] [Server thread/INFO] [net.minecraft.server.players.PlayerList/]: Dev[local:E:61ec3e28] logged in with entity id 159 at (29.07903725550736, 67.0, 24.188179405740257)
[31juil.2022 23:37:56.224] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev joined the game
[31juil.2022 23:37:57.882] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 15 advancements
[31juil.2022 23:38:01.006] [Server thread/ERROR] [net.minecraft.network.protocol.PacketUtils/]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundUseItemOnPacket@582565e9, suppressing error
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.ai.attributes.AttributeSupplier.getValue(net.minecraft.world.entity.ai.attributes.Attribute)" because "this.supplier" is null
    at net.minecraft.world.entity.ai.attributes.AttributeMap.getValue(AttributeMap.java:65) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.LivingEntity.getAttributeValue(LivingEntity.java:1851) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.LivingEntity.getMaxHealth(LivingEntity.java:1616) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.LivingEntity.<init>(LivingEntity.java:236) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.Mob.<init>(Mob.java:121) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.PathfinderMob.<init>(PathfinderMob.java:14) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.AgeableMob.<init>(AgeableMob.java:23) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.animal.Animal.<init>(Animal.java:39) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.overtek.pingoo.entity.custom.PenguinEntity.<init>(PenguinEntity.java:31) ~[%23186!/:?]
    at net.minecraft.world.entity.EntityType.create(EntityType.java:469) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.EntityType.create(EntityType.java:350) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.EntityType.spawn(EntityType.java:339) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.EntityType.spawn(EntityType.java:334) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.item.SpawnEggItem.useOn(SpawnEggItem.java:85) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:560) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23180%23187!/:?]
    at net.minecraft.world.item.ItemStack.useOn(ItemStack.java:236) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:352) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1024) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:32) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:8) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:22) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.TickTask.run(TickTask.java:17) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:143) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:22) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:763) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:158) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:116) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:746) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:740) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:104) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:725) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:658) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:245) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at java.lang.Thread.run(Thread.java:833) [?:?]
[31juil.2022 23:38:10.149] [Server thread/WARN] [net.minecraft.world.entity.EntityType/]: Exception loading entity:
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.ai.attributes.AttributeSupplier.getValue(net.minecraft.world.entity.ai.attributes.Attribute)" because "this.supplier" is null
    at net.minecraft.world.entity.ai.attributes.AttributeMap.getValue(AttributeMap.java:65) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.LivingEntity.getAttributeValue(LivingEntity.java:1851) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.LivingEntity.getMaxHealth(LivingEntity.java:1616) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.LivingEntity.<init>(LivingEntity.java:236) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.Mob.<init>(Mob.java:121) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.PathfinderMob.<init>(PathfinderMob.java:14) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.AgeableMob.<init>(AgeableMob.java:23) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.animal.Animal.<init>(Animal.java:39) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.overtek.pingoo.entity.custom.PenguinEntity.<init>(PenguinEntity.java:31) ~[%23186!/:?]
    at net.minecraft.world.entity.EntityType.create(EntityType.java:469) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.EntityType.lambda$create$0(EntityType.java:474) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at java.util.Optional.map(Optional.java:260) ~[?:?]
    at net.minecraft.world.entity.EntityType.create(EntityType.java:473) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.EntityType.loadStaticEntity(EntityType.java:551) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.world.entity.EntityType.loadEntityRecursive(EntityType.java:507) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.commands.SummonCommand.spawnEntity(SummonCommand.java:50) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.commands.SummonCommand.lambda$register$1(SummonCommand.java:34) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:263) ~[brigadier-1.0.18.jar%23144!/:?]
    at net.minecraft.commands.Commands.performCommand(Commands.java:231) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChatCommand(ServerGamePacketListenerImpl.java:1169) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.network.protocol.game.ServerboundChatCommandPacket.handle(ServerboundChatCommandPacket.java:28) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.network.protocol.game.ServerboundChatCommandPacket.handle(ServerboundChatCommandPacket.java:11) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:22) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.TickTask.run(TickTask.java:17) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:143) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:22) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:763) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:158) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:116) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:746) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:740) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:104) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:725) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:658) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:245) ~[forge-1.19-41.1.0_mapped_official_1.19-recomp.jar%23181!/:?]
    at java.lang.Thread.run(Thread.java:833) [?:?]
[31juil.2022 23:38:10.165] [Render thread/INFO] [net.minecraft.client.gui.components.ChatComponent/]: [CHAT] Unable to summon entity
[31juil.2022 23:38:11.644] [Server thread/INFO] [net.minecraft.client.server.IntegratedServer/]: Saving and pausing game...
[31juil.2022 23:38:11.666] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[31juil.2022 23:38:11.720] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
[31juil.2022 23:38:11.721] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
[31juil.2022 23:38:12.350] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Dev lost connection: Disconnected
[31juil.2022 23:38:12.351] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev left the game
[31juil.2022 23:38:12.366] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Stopping singleplayer server as player logged out
[31juil.2022 23:38:12.442] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server
[31juil.2022 23:38:12.442] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players
[31juil.2022 23:38:12.442] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds
[31juil.2022 23:38:14.023] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[31juil.2022 23:38:14.112] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
[31juil.2022 23:38:14.114] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
[31juil.2022 23:38:14.143] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: ThreadedAnvilChunkStorage (New World): All chunks are saved
[31juil.2022 23:38:14.143] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[31juil.2022 23:38:14.143] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[31juil.2022 23:38:14.143] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: ThreadedAnvilChunkStorage: All dimensions are saved
[31juil.2022 23:38:15.769] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Stopping!
 

You can see my code on my github

Github

 

Thanks for your help !

Link to comment
Share on other sites

First you should never just copy/paste from a tutorial. You should try to understand what it is doing at each step.

Otherwise you will never be able to fix the inevitable bugs or correct the tutorial code when it is wrong. 🙂 

 

You have at least 2 errors (both are related to misunderstandings in events/registration)

You can read about events (along with other things) on this wiki: https://forge.gemwire.uk/wiki/Main_Page

It is important you know how this works, it is fundamental to writing forge mods.

 

1) You are missing the subscriber definition on your ModEventBusEvents class which means the attributes are never added to your entity

https://github.com/Overtekk/Pingoo/blob/4b91d22a1d2851b432f38a861623c90f538a9dbe/src/main/java/net/overtek/pingoo/event/ModEventBusEvents.java#L8

@Mod.EventBusSubscriber(modid = Pingoo.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModEventBusEvents {

 

2) You should be registering your entity renderer in the EntityRenderersEvent.RegisterRenderers

the code here is never invoked and it is not the correct way to do it

https://github.com/Overtekk/Pingoo/blob/4b91d22a1d2851b432f38a861623c90f538a9dbe/src/main/java/net/overtek/pingoo/Pingoo.java#L46

 

It should be something like - untested code - don't just copy/paste without confirming I am correct 🙂

    @Mod.EventBusSubscriber(modid = Pingoo.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
    public class ClientModEventBusEvents {
        @SubscribeEvent 
        public static void registerRenderers(EntityRenderersEvent.RegisterRenderers event) {
            event.registerEntityRenderer(ModEntityTypes.PENGUIN.get(), PenguinRenderer::new);
        }
    }

NOTE: The Dist.CLIENT, this is a separate class for mod registration events that are only applicable to the client, e.g. graphics like your renderer

Edited by warjort
  • Thanks 1

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

i find the second 

	@Mod.EventBusSubscriber(modid = baseMmod.MOD_ID,  bus = Mod.EventBusSubscriber.Bus.FORGE )
public class modevents {
    
    @SubscribeEvent
    public static void on_toss(ItemTossEvent event) {
        
        Entity entity = event.getEntity();
        World warudo = entity.level;
        if (entity instanceof ItemEntity) {
            ItemEntity item_e = (ItemEntity)entity;
            ItemStack itemstack = item_e.getItem();
	            System.out.println("\n ItemTossEvent "  + itemstack.getItem().getRegistryName()  +  "\n");    
            
            if (itemstack.getItem() == MItems.INGOT_IRON_RED_HOT.get()) {
                //item_e.kill();
                
                //MItemEntity drop = new MItemEntity(warudo, (double)(pos.getX() + 0.5F) , (double)(pos.getY() + 1.0F)  , (double)(pos.getZ() + 0.5F) , itemstack );
                //warudo.addFreshEntity(drop);
            }
        }
	}
	



but the first one no idea

  • Thanks 1
Link to comment
Share on other sites

2 hours ago, perromercenary00 said:

but the first one no idea

It's literally what he said.
Where you added this line:

e.put(ModEntityTypes.YOUR_ENTITY.get(), EntityClass.setAttributes());

 

You need to add a @Mod.EventBusSubsriber

 

Like this:


@Mod.EventBusSubscriber(modid = baseMmod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModEventBusEvents {

@SubscribeEvent

   public static void entityAttributeEvent(EntityAttributeCreationEvent event) {
   event.put(ModEntityTypes.PENGUIN.get(), PenguinEntity.setAttributes());
   }
}

 

 

If you don't add a @Mod.EventBusSubscriber your mod won't call this class

Edited by Zanckor
  • Thanks 1
Link to comment
Share on other sites

16 hours ago, warjort said:

First you should never just copy/paste from a tutorial. You should try to understand what it is doing at each step.

Otherwise you will never be able to fix the inevitable bugs or correct the tutorial code when it is wrong. 🙂 

 

You have at least 2 errors (both are related to misunderstandings in events/registration)

You can read about events (along with other things) on this wiki: https://forge.gemwire.uk/wiki/Main_Page

It is important you know how this works, it is fundamental to writing forge mods.

 

1) You are missing the subscriber definition on your ModEventBusEvents class which means the attributes are never added to your entity

https://github.com/Overtekk/Pingoo/blob/4b91d22a1d2851b432f38a861623c90f538a9dbe/src/main/java/net/overtek/pingoo/event/ModEventBusEvents.java#L8

@Mod.EventBusSubscriber(modid = Pingoo.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModEventBusEvents {

 

2) You should be registering your entity renderer in the EntityRenderersEvent.RegisterRenderers

the code here is never invoked and it is not the correct way to do it

https://github.com/Overtekk/Pingoo/blob/4b91d22a1d2851b432f38a861623c90f538a9dbe/src/main/java/net/overtek/pingoo/Pingoo.java#L46

 

It should be something like - untested code - don't just copy/paste without confirming I am correct 🙂

    @Mod.EventBusSubscriber(modid = Pingoo.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
    public class ClientModEventBusEvents {
        @SubscribeEvent 
        public static void registerRenderers(EntityRenderersEvent.RegisterRenderers event) {
            event.registerEntityRenderer(ModEntityTypes.PENGUIN.get(), PenguinRenderer::new);
        }
    }

NOTE: The Dist.CLIENT, this is a separate class for mod registration events that are only applicable to the client, e.g. graphics like your renderer

I know but I learn java and I have no clue of what I need to do. But now I understand a bit better even if it still a bit difficult.

1)
Thanks for the answer, it works fine now. I just need to change the size, sounds, attributes and goal now. I understand a bit what was missing.
The game was crashing but it was because of the rendering who was missing.

 

2)
I didn't know that and I have do that and I create the folder and the class and now it works perfectly. Thanks you!

I have still a lot of things to learn.

 

2 hours ago, Zanckor said:

It's literally what he said.
Where you added this line:

e.put(ModEntityTypes.YOUR_ENTITY.get(), EntityClass.setAttributes());

 

You need to add a @Mod.EventBusSubsriber

 

Like this:


@Mod.EventBusSubscriber(modid = baseMmod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModEventBusEvents {

@SubscribeEvent

   public static void entityAttributeEvent(EntityAttributeCreationEvent event) {
   event.put(ModEntityTypes.PENGUIN.get(), PenguinEntity.setAttributes());
   }
}

 

 

If you don't add a @Mod.EventBusSubscriber your mod won't call this class

 

Thanks to you and perromercenary00 too. This is what was missing along with EntityRenderersEvent.RegisterRenderers.

Link to comment
Share on other sites

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



×
×
  • Create New...

Important Information

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