Jump to content

[1.12.2] Custom loot tables for structures.


Merthew

Recommended Posts

13 hours ago, Merthew said:

I am getting a null pointer error when loading a structure that i am trying to add loot to

Logs...?

13 hours ago, Merthew said:

Files: 

WorldGeneratorStructures

WorldGenStructure

Main

Those aren't links, but you're github is in your signature

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

sorry, log is here:

Spoiler

[20:13:23] [main/INFO] [GradleStart]: Extra: []
[20:13:23] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/timjp/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[20:13:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:13:23] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:13:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:13:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[20:13:23] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2806 for Minecraft 1.12.2 loading
[20:13:23] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_191, running on Windows 10:amd64:10.0, installed at D:\Program Files\Java\jdk1.8.0_191\jre
[20:13:23] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[20:13:23] [main/ERROR] [FML]: Full: C:\Users\timjp\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[20:13:23] [main/ERROR] [FML]: Trimmed: c:/users/timjp/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[20:13:23] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:13:23] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2019-01-10 20:13:24,823 main WARN Disabling terminal, you're running in an unsupported environment.
[20:13:24] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[20:13:24] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[20:13:24] [main/INFO] [FML]: Searching D:\Documents\Merthew Mod\run\.\mods for mods
[20:13:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:13:24] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[20:13:24] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[20:13:24] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:13:24] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:13:24] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:13:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:13:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:13:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:13:26] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[20:13:26] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:13:26] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:13:26] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:13:26] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:13:26] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:13:26] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:13:26] [Client thread/INFO] [minecraft/Minecraft]: Setting user: Player85
[20:13:29] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[20:13:29] [Client thread/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
[20:13:30] [Client thread/INFO] [FML]: -- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_191, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 860860416 bytes (820 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 417.35' Renderer: 'GeForce GTX 970M/PCIe/SSE2'
[20:13:30] [Client thread/INFO] [FML]: MinecraftForge v14.23.5.2806 Initialized
[20:13:30] [Client thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[20:13:30] [Client thread/INFO] [FML]: Replaced 1036 ore ingredients
[20:13:30] [Client thread/INFO] [FML]: Searching D:\Documents\Merthew Mod\run\.\mods for mods
[20:13:31] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[20:13:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, mm] at CLIENT
[20:13:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, mm] at SERVER
[20:13:32] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 104037300 nanos
[20:13:32] [Client thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Merthew's Mod
[20:13:32] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[20:13:32] [Client thread/INFO] [FML]: Found 1168 ObjectHolder annotations
[20:13:32] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[20:13:32] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[20:13:33] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[20:13:33] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[20:13:33] [Client thread/INFO] [FML]: OBJLoader: Domain mm has been added.
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onBlockRegister:46]: Registered Block: tile.unnatural_torch
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onBlockRegister:46]: Registered Block: tile.light_ring
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onBlockRegister:46]: Registered Block: tile.holy_cross
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onBlockRegister:46]: Registered Block: tile.stone_pillar
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onBlockRegister:46]: Registered Block: tile.smooth_stone
[20:13:33] [Client thread/INFO] [FML]: Applying holder lookups
[20:13:33] [Client thread/INFO] [FML]: Holder lookups applied
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onItemRegister:29]: Registered Item: tile.unnatural_torch
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onItemRegister:29]: Registered Item: tile.light_ring
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onItemRegister:29]: Registered Item: tile.holy_cross
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onItemRegister:29]: Registered Item: tile.stone_pillar
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onItemRegister:29]: Registered Item: tile.smooth_stone
[20:13:33] [Client thread/INFO] [FML]: Applying holder lookups
[20:13:33] [Client thread/INFO] [FML]: Holder lookups applied
[20:13:33] [Client thread/INFO] [FML]: Applying holder lookups
[20:13:33] [Client thread/INFO] [FML]: Holder lookups applied
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onModelRegister:59]: Registered Model: tile.unnatural_torch
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onModelRegister:59]: Registered Model: tile.light_ring
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onModelRegister:59]: Registered Model: tile.holy_cross
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onModelRegister:59]: Registered Model: tile.stone_pillar
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.BlockInit:onModelRegister:59]: Registered Model: tile.smooth_stone
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onModelRegister:37]: Registered Model: tile.unnatural_torch
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onModelRegister:37]: Registered Model: tile.light_ring
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onModelRegister:37]: Registered Model: tile.holy_cross
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onModelRegister:37]: Registered Model: tile.stone_pillar
[20:13:33] [Client thread/INFO] [STDOUT]: [merthew.mod.init.ItemInit:onModelRegister:37]: Registered Model: tile.smooth_stone
[20:13:33] [Client thread/INFO] [FML]: Applying holder lookups
[20:13:33] [Client thread/INFO] [FML]: Holder lookups applied
[20:13:33] [Client thread/INFO] [FML]: Injecting itemstacks
[20:13:33] [Client thread/INFO] [FML]: Itemstack injection complete
[20:13:33] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: OUTDATED Target: 14.23.5.2807
[20:13:36] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem...
[20:13:36] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL
[20:13:36] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[20:13:36] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
[20:13:36] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
[20:13:42] [Client thread/INFO] [FML]: Max texture size: 16384
[20:13:42] [Client thread/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas
[20:13:44] [Client thread/INFO] [FML]: Applying holder lookups
[20:13:44] [Client thread/INFO] [FML]: Holder lookups applied
[20:13:44] [Client thread/INFO] [FML]: Injecting itemstacks
[20:13:44] [Client thread/INFO] [FML]: Itemstack injection complete
[20:13:44] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[20:13:44] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[20:13:44] [Client thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
[20:13:46] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id
[20:13:48] [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.12.2
[20:13:48] [Server thread/INFO] [minecraft/IntegratedServer]: Generating keypair
[20:13:48] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
[20:13:48] [Server thread/INFO] [FML]: Applying holder lookups
[20:13:48] [Server thread/INFO] [FML]: Holder lookups applied
[20:13:48] [Server thread/INFO] [FML]: Loading dimension 0 (gen tset) (net.minecraft.server.integrated.IntegratedServer@6ab8fbd8)
[20:13:49] [Server thread/INFO] [minecraft/AdvancementList]: Loaded 488 advancements
[20:13:49] [Server thread/INFO] [FML]: Loading dimension -1 (gen tset) (net.minecraft.server.integrated.IntegratedServer@6ab8fbd8)
[20:13:49] [Server thread/INFO] [FML]: Loading dimension 1 (gen tset) (net.minecraft.server.integrated.IntegratedServer@6ab8fbd8)
[20:13:49] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for level 0
[20:13:50] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 55%
[20:13:51] [Server thread/INFO] [FML]: Unloading dimension -1
[20:13:51] [Server thread/INFO] [FML]: Unloading dimension 1
[20:13:51] [Server thread/INFO] [minecraft/IntegratedServer]: Changing view distance to 16, from 10
[20:13:53] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[20:13:53] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[20:13:53] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]
[20:13:53] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[20:13:53] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[20:13:53] [Server thread/INFO] [minecraft/PlayerList]: Player85[local:E:f51623a7] logged in with entity id 328 at (2308.054602989441, 81.36226347865755, 85.22888983735886)
[20:13:53] [Server thread/INFO] [minecraft/MinecraftServer]: Player85 joined the game
[20:13:54] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
[20:13:54] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'gen tset'/overworld
[20:13:55] [pool-2-thread-1/WARN] [mojang/YggdrasilMinecraftSessionService]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@75692a2e[id=c843d906-43ab-3137-9682-b42949d12a2f,name=Player85,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
    at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
    at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3182) [Minecraft.class:?]
    at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_191]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
[20:13:56] [Server thread/INFO] [STDOUT]: [merthew.mod.world.gen.WorldGeneratorStructures:generateStructure:46]: Generated the thing.
[20:13:56] [Server thread/INFO] [STDOUT]: [merthew.mod.world.gen.WorldGeneratorStructures:generateStructure:47]: 
X: 2462
Y: 63
Z:300


[20:13:56] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Exception ticking world
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:837) ~[MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) ~[MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192) ~[IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
Caused by: java.lang.NullPointerException
    at merthew.mod.world.gen.WorldGeneratorStructures.generateStructure(WorldGeneratorStructures.java:51) ~[WorldGeneratorStructures.class:?]
    at merthew.mod.world.gen.WorldGeneratorStructures.generate(WorldGeneratorStructures.java:30) ~[WorldGeneratorStructures.class:?]
    at merthew.mod.world.gen.WorldGenStructure.generateStructure(WorldGenStructure.java:68) ~[WorldGenStructure.class:?]
    at merthew.mod.world.gen.WorldGenStructure.generate(WorldGenStructure.java:32) ~[WorldGenStructure.class:?]
    at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:167) ~[GameRegistry.class:?]
    at net.minecraft.world.chunk.Chunk.populate(Chunk.java:1095) ~[Chunk.class:?]
    at net.minecraft.world.chunk.Chunk.populate(Chunk.java:1074) ~[Chunk.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:169) ~[ChunkProviderServer.class:?]
    at net.minecraft.server.management.PlayerChunkMapEntry.providePlayerChunk(PlayerChunkMapEntry.java:130) ~[PlayerChunkMapEntry.class:?]
    at net.minecraft.server.management.PlayerChunkMap.tick(PlayerChunkMap.java:183) ~[PlayerChunkMap.class:?]
    at net.minecraft.world.WorldServer.tick(WorldServer.java:236) ~[WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:831) ~[MinecraftServer.class:?]
    ... 4 more
[20:13:56] [Server thread/ERROR] [minecraft/MinecraftServer]: This crash report has been saved to: D:\Documents\Merthew Mod\run\.\crash-reports\crash-2019-01-10_20.13.56-server.txt
[20:13:56] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server
[20:13:56] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players
[20:13:56] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds
[20:13:56] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'gen tset'/overworld
[20:13:56] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
// Uh... Did I do that?

Time: 1/10/19 8:13 PM
Description: Exception ticking world

java.lang.NullPointerException: Exception ticking world
    at merthew.mod.world.gen.WorldGeneratorStructures.generateStructure(WorldGeneratorStructures.java:51)
    at merthew.mod.world.gen.WorldGeneratorStructures.generate(WorldGeneratorStructures.java:30)
    at merthew.mod.world.gen.WorldGenStructure.generateStructure(WorldGenStructure.java:68)
    at merthew.mod.world.gen.WorldGenStructure.generate(WorldGenStructure.java:32)
    at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:167)
    at net.minecraft.world.chunk.Chunk.populate(Chunk.java:1095)
    at net.minecraft.world.chunk.Chunk.populate(Chunk.java:1074)
    at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:169)
    at net.minecraft.server.management.PlayerChunkMapEntry.providePlayerChunk(PlayerChunkMapEntry.java:130)
    at net.minecraft.server.management.PlayerChunkMap.tick(PlayerChunkMap.java:183)
    at net.minecraft.world.WorldServer.tick(WorldServer.java:236)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:831)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592)
    at java.lang.Thread.run(Thread.java:748)


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

-- Head --
Thread: Client thread
Stacktrace:
    at merthew.mod.world.gen.WorldGeneratorStructures.generateStructure(WorldGeneratorStructures.java:51)
    at merthew.mod.world.gen.WorldGeneratorStructures.generate(WorldGeneratorStructures.java:30)
    at merthew.mod.world.gen.WorldGenStructure.generateStructure(WorldGenStructure.java:68)
    at merthew.mod.world.gen.WorldGenStructure.generate(WorldGenStructure.java:32)
    at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:167)
    at net.minecraft.world.chunk.Chunk.populate(Chunk.java:1095)
    at net.minecraft.world.chunk.Chunk.populate(Chunk.java:1074)
    at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:169)
    at net.minecraft.server.management.PlayerChunkMapEntry.providePlayerChunk(PlayerChunkMapEntry.java:130)
    at net.minecraft.server.management.PlayerChunkMap.tick(PlayerChunkMap.java:183)
    at net.minecraft.world.WorldServer.tick(WorldServer.java:236)

-- Affected level --
Details:
    Level name: gen tset
    All players: 1 total; [EntityPlayerMP['Player85'/328, l='gen tset', x=2308.05, y=81.36, z=85.23]]
    Chunk stats: ServerChunkCache: 1448 Drop: 163
    Level seed: -2171139856440030511
    Level generator: ID 04 - customized, ver 0. Features enabled: true
    Level generator options: {"coordinateScale":684.412,"heightScale":684.412,"lowerLimitScale":512.0,"upperLimitScale":512.0,"depthNoiseScaleX":200.0,"depthNoiseScaleZ":200.0,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"baseSize":8.5,"stretchY":12.0,"biomeDepthWeight":1.0,"biomeDepthOffset":0.0,"biomeScaleWeight":1.0,"biomeScaleOffset":0.0,"seaLevel":63,"useCaves":true,"useDungeons":true,"dungeonChance":8,"useStrongholds":true,"useVillages":true,"useMineShafts":true,"useTemples":true,"useMonuments":true,"useMansions":true,"useRavines":true,"useWaterLakes":true,"waterLakeChance":4,"useLavaLakes":true,"lavaLakeChance":80,"useLavaOceans":false,"fixedBiome":1,"biomeSize":4,"riverSize":4,"dirtSize":33,"dirtCount":10,"dirtMinHeight":0,"dirtMaxHeight":256,"gravelSize":33,"gravelCount":8,"gravelMinHeight":0,"gravelMaxHeight":256,"graniteSize":33,"graniteCount":10,"graniteMinHeight":0,"graniteMaxHeight":80,"dioriteSize":33,"dioriteCount":10,"dioriteMinHeight":0,"dioriteMaxHeight":80,"andesiteSize":33,"andesiteCount":10,"andesiteMinHeight":0,"andesiteMaxHeight":80,"coalSize":17,"coalCount":20,"coalMinHeight":0,"coalMaxHeight":128,"ironSize":9,"ironCount":20,"ironMinHeight":0,"ironMaxHeight":64,"goldSize":9,"goldCount":2,"goldMinHeight":0,"goldMaxHeight":32,"redstoneSize":8,"redstoneCount":8,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":8,"diamondCount":1,"diamondMinHeight":0,"diamondMaxHeight":16,"lapisSize":7,"lapisCount":1,"lapisCenterHeight":16,"lapisSpread":16}
    Level spawn location: World: (-68,64,256), Chunk: (at 12,4,0 in -5,16; contains blocks -80,0,256 to -65,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 11519 game time, 11519 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 98534 (now: false), thunder time: 85608 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:831)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592)
    at java.lang.Thread.run(Thread.java:748)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_191, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 619001928 bytes (590 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
    FML: MCP 9.42 Powered by Forge 14.23.5.2806 5 mods loaded, 5 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State  | ID        | Version      | Source                           | Signature |
    |:------ |:--------- |:------------ |:-------------------------------- |:--------- |
    | LCHIJA | minecraft | 1.12.2       | minecraft.jar                    | None      |
    | LCHIJA | mcp       | 9.42         | minecraft.jar                    | None      |
    | LCHIJA | FML       | 8.0.99.99    | forgeSrc-1.12.2-14.23.5.2806.jar | None      |
    | LCHIJA | forge     | 14.23.5.2806 | forgeSrc-1.12.2-14.23.5.2806.jar | None      |
    | LCHIJA | mm        | 0.1          | bin                              | None      |

    Loaded coremods (and transformers): 
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Profiler Position: N/A (disabled)
    Player Count: 1 / 8; [EntityPlayerMP['Player85'/328, l='gen tset', x=2308.05, y=81.36, z=85.23]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
[20:13:56] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2019-01-10_20.13.56-server.txt
[20:13:56] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
[20:13:57] [Server thread/INFO] [FML]: Unloading dimension 0
[20:13:57] [Server thread/INFO] [FML]: Applying holder lookups
[20:13:57] [Server thread/INFO] [FML]: Holder lookups applied
[20:13:57] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
[20:13:57] [Client thread/INFO] [FML]: Server terminated.
[20:13:57] [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Stopping server
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
 

 

The seven became one and the one became two.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 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 } } }  
    • Make a test with another Launcher like MultiMC, AT Launcher or Technic Launcher
  • Topics

×
×
  • Create New...

Important Information

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