Jump to content

Recommended Posts

Posted

Hey everyone, working on my mod, I went to add my first step and test it and for some odd reason my game crashes when I try to place my custom step.

 

Here is the log for Eclipse during the crash portion.

 

2013-03-29 14:45:53 [iNFO] [Minecraft-Server] Player316[/127.0.0.1:0] logged in with entity id 132 at (-87.5, 137.0, 136.5)
2013-03-29 14:46:06 [iNFO] [sTDERR] java.lang.ClassCastException: com.NaddoxMod.BlockBasaltStep cannot be cast to net.minecraft.block.BlockStairs
2013-03-29 14:46:06 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:462)
2013-03-29 14:46:06 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:226)
2013-03-29 14:46:06 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1535)
2013-03-29 14:46:06 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1119)
2013-03-29 14:46:06 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:991)
2013-03-29 14:46:06 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867)
2013-03-29 14:46:06 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:756)
2013-03-29 14:46:06 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-03-29 14:46:06 [iNFO] [Minecraft-Server] Stopping server
2013-03-29 14:46:06 [iNFO] [Minecraft-Server] Saving players
2013-03-29 14:46:06 [iNFO] [Minecraft-Server] Saving worlds
2013-03-29 14:46:06 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

 

 

And here is the block class file: http://pastebin.com/ZDF88PE8

and my main class file: http://pastebin.com/330u2s3w

 

I have looked at every tutorial I can about making steps and none of them have been helpful because mainly none of them work in 1.5+ like they did for when they were made, so any and all help is and will be greatly appreciated. Thank you.

 

EDIT: Full Crash Log

 


      Minecraft has crashed!      
      ----------------------      

Minecraft has stopped running because it encountered a problem; Unexpected error

A full error report has been saved to B:\MCP744 - Mod\jars\.\crash-reports\crash-2013-03-29_14.46.16-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash 



--- BEGIN ERROR REPORT 5eab3a9b --------
Full report at:
B:\MCP744 - Mod\jars\.\crash-reports\crash-2013-03-29_14.46.16-client.txt
Please show that file to Mojang, NOT just this screen!

Generated 3/29/13 2:46 PM

-- Head --
Stacktrace:
at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:462)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:226)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1535)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1119)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player316'/132, l='MpServer', x=-82.51, y=136.62, z=138.47]]
Chunk stats: MultiplayerChunkCache: 441
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (-92,64,136), Chunk: (at 4,4,8 in -6,8; contains blocks -96,0,128 to -81,255,143), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 257 game time, 257 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 163 total; [EntityBat['Bat'/2740, l='MpServer', x=-157.50, y=44.00, z=111.25], EntityBat['Bat'/2739, l='MpServer', x=-155.27, y=38.29, z=112.08], EntityBat['Bat'/563, l='MpServer', x=-65.35, y=33.41, z=195.56], EntityFallingSand['Falling Block'/4917, l='MpServer', x=23.50, y=13.30, z=172.50], EntityCow['Cow'/35, l='MpServer', x=-133.50, y=77.00, z=149.50], EntityFallingSand['Falling Block'/4918, l='MpServer', x=23.50, y=13.30, z=173.50], EntityCow['Cow'/38, l='MpServer', x=-131.50, y=86.00, z=147.50], EntityCow['Cow'/36, l='MpServer', x=-131.50, y=77.00, z=149.50], EntityCow['Cow'/37, l='MpServer', x=-131.50, y=84.00, z=148.50], EntityCow['Cow'/51, l='MpServer', x=-110.50, y=65.00, z=68.50], EntityCow['Cow'/50, l='MpServer', x=-109.50, y=67.00, z=66.50], EntityCow['Cow'/49, l='MpServer', x=-106.50, y=67.00, z=67.50], EntityCow['Cow'/52, l='MpServer', x=-113.50, y=66.00, z=64.50], EntityFallingSand['Falling Block'/4909, l='MpServer', x=25.50, y=16.15, z=150.50], EntityCow['Cow'/59, l='MpServer', x=-90.53, y=80.00, z=196.53], EntityFallingSand['Falling Block'/4908, l='MpServer', x=8.50, y=15.15, z=132.50], EntityCow['Cow'/58, l='MpServer', x=-89.38, y=80.00, z=195.47], EntityFallingSand['Falling Block'/4911, l='MpServer', x=25.50, y=16.15, z=148.50], EntityCow['Cow'/57, l='MpServer', x=-89.22, y=80.00, z=196.78], EntityFallingSand['Falling Block'/4910, l='MpServer', x=25.50, y=15.15, z=149.50], EntityCow['Cow'/63, l='MpServer', x=-78.50, y=105.00, z=148.50], EntityCow['Cow'/62, l='MpServer', x=-76.47, y=91.66, z=156.53], EntityFallingSand['Falling Block'/4907, l='MpServer', x=14.50, y=60.15, z=108.50], EntityCow['Cow'/61, l='MpServer', x=-82.50, y=105.00, z=146.50], EntityCow['Cow'/60, l='MpServer', x=-94.50, y=71.00, z=193.50], EntityCow['Cow'/68, l='MpServer', x=-73.53, y=70.00, z=207.47], EntityCow['Cow'/64, l='MpServer', x=-78.51, y=108.00, z=146.52], EntityCow['Cow'/65, l='MpServer', x=-72.50, y=71.00, z=210.22], EntityCow['Cow'/66, l='MpServer', x=-72.50, y=71.00, z=212.53], EntityCow['Cow'/67, l='MpServer', x=-72.50, y=71.00, z=211.44], EntityCow['Cow'/85, l='MpServer', x=-22.50, y=74.00, z=165.50], EntityCow['Cow'/84, l='MpServer', x=-27.50, y=74.00, z=114.50], EntityCow['Cow'/87, l='MpServer', x=-20.50, y=70.00, z=162.31], EntityCow['Cow'/86, l='MpServer', x=-18.22, y=70.00, z=163.53], EntityCow['Cow'/81, l='MpServer', x=-27.50, y=74.00, z=114.50], EntityCow['Cow'/83, l='MpServer', x=-25.47, y=73.00, z=116.19], EntityCow['Cow'/82, l='MpServer', x=-29.09, y=71.00, z=125.81], EntityCow['Cow'/88, l='MpServer', x=-23.50, y=69.00, z=166.50], EntityItem['item.tile.sapling.oak'/3734, l='MpServer', x=-107.97, y=77.13, z=141.63], EntityItem['item.tile.sapling.oak'/3735, l='MpServer', x=-111.25, y=85.13, z=132.78], EntityBat['Bat'/1231, l='MpServer', x=-29.14, y=28.10, z=161.54], EntityItem['item.tile.sapling.oak'/1700, l='MpServer', x=-144.28, y=88.13, z=146.59], EntityFallingSand['Falling Block'/4592, l='MpServer', x=-20.50, y=37.16, z=205.50], EntityFallingSand['Falling Block'/4590, l='MpServer', x=-20.50, y=37.16, z=204.50], EntityFallingSand['Falling Block'/4586, l='MpServer', x=-20.50, y=37.16, z=206.50], EntityFallingSand['Falling Block'/4587, l='MpServer', x=-20.50, y=37.16, z=207.50], EntityBat['Bat'/212, l='MpServer', x=-161.52, y=44.00, z=133.39], EntityFallingSand['Falling Block'/4583, l='MpServer', x=-18.50, y=22.49, z=200.50], EntityBat['Bat'/1676, l='MpServer', x=-146.04, y=31.86, z=123.81], EntityClientPlayerMP['Player316'/132, l='MpServer', x=-82.51, y=136.62, z=138.47], EntityFallingSand['Falling Block'/4654, l='MpServer', x=-3.50, y=56.57, z=42.50], EntityFallingSand['Falling Block'/4653, l='MpServer', x=-3.50, y=55.57, z=43.50], EntityFallingSand['Falling Block'/4650, l='MpServer', x=-2.50, y=55.57, z=43.50], EntityItem['item.tile.sapling.oak'/4051, l='MpServer', x=-131.84, y=76.13, z=199.94], EntityItem['item.tile.sapling.oak'/1854, l='MpServer', x=-114.78, y=85.13, z=128.38], EntityFallingSand['Falling Block'/4207, l='MpServer', x=-42.50, y=22.59, z=207.50], EntityFallingSand['Falling Block'/4683, l='MpServer', x=6.50, y=34.49, z=127.50], EntityFallingSand['Falling Block'/4685, l='MpServer', x=6.50, y=34.49, z=129.50], EntityFallingSand['Falling Block'/4684, l='MpServer', x=6.50, y=34.49, z=128.50], EntityFallingSand['Falling Block'/4687, l='MpServer', x=7.50, y=34.49, z=128.50], EntityFallingSand['Falling Block'/4688, l='MpServer', x=7.50, y=35.49, z=127.50], EntityFallingSand['Falling Block'/4689, l='MpServer', x=5.50, y=34.49, z=128.50], EntityFallingSand['Falling Block'/4690, l='MpServer', x=5.50, y=34.49, z=129.50], EntityFallingSand['Falling Block'/4691, l='MpServer', x=6.50, y=34.49, z=130.50], EntityFallingSand['Falling Block'/4692, l='MpServer', x=4.50, y=34.49, z=128.50], EntityFallingSand['Falling Block'/4693, l='MpServer', x=4.50, y=34.49, z=129.50], EntityFallingSand['Falling Block'/4694, l='MpServer', x=5.50, y=34.49, z=127.50], EntityFallingSand['Falling Block'/4695, l='MpServer', x=5.50, y=34.49, z=130.50], EntityFallingSand['Falling Block'/4696, l='MpServer', x=3.50, y=34.49, z=129.50], EntityFallingSand['Falling Block'/4697, l='MpServer', x=4.50, y=34.49, z=130.50], EntityFallingSand['Falling Block'/4698, l='MpServer', x=5.50, y=34.49, z=131.50], EntityFallingSand['Falling Block'/4699, l='MpServer', x=3.50, y=34.49, z=130.50], EntityBat['Bat'/2848, l='MpServer', x=-122.94, y=39.20, z=82.31], EntityFallingSand['Falling Block'/4765, l='MpServer', x=7.50, y=30.46, z=24.50], EntityBat['Bat'/3423, l='MpServer', x=-57.75, y=37.51, z=192.55], EntityFallingSand['Falling Block'/4764, l='MpServer', x=8.50, y=30.46, z=24.50], EntityFallingSand['Falling Block'/4767, l='MpServer', x=9.50, y=30.46, z=24.50], EntityFallingSand['Falling Block'/4766, l='MpServer', x=6.50, y=30.46, z=23.50], EntityBat['Bat'/942, l='MpServer', x=-129.48, y=38.91, z=84.93], EntityItem['item.item.seeds'/4761, l='MpServer', x=-111.31, y=68.52, z=137.32], EntityFallingSand['Falling Block'/4763, l='MpServer', x=7.50, y=30.46, z=23.50], EntityBat['Bat'/2330, l='MpServer', x=-104.35, y=45.00, z=103.40], EntityFallingSand['Falling Block'/4782, l='MpServer', x=17.50, y=21.73, z=52.50], EntityFallingSand['Falling Block'/4783, l='MpServer', x=18.50, y=21.73, z=53.50], EntityFallingSand['Falling Block'/4780, l='MpServer', x=19.50, y=22.73, z=52.50], EntityFallingSand['Falling Block'/4781, l='MpServer', x=20.50, y=22.73, z=52.50], EntityFallingSand['Falling Block'/4778, l='MpServer', x=21.50, y=21.73, z=51.50], EntityFallingSand['Falling Block'/4779, l='MpServer', x=18.50, y=21.73, z=52.50], EntityFallingSand['Falling Block'/4776, l='MpServer', x=20.50, y=21.73, z=51.50], EntityFallingSand['Falling Block'/4777, l='MpServer', x=21.50, y=21.73, z=50.50], EntityFallingSand['Falling Block'/4239, l='MpServer', x=-51.50, y=29.82, z=223.50], EntityBat['Bat'/2830, l='MpServer', x=-162.46, y=42.89, z=109.23], EntityFallingSand['Falling Block'/4775, l='MpServer', x=19.50, y=21.73, z=51.50], EntityBat['Bat'/2831, l='MpServer', x=-163.16, y=44.06, z=115.60], EntityItem['item.tile.sapling.oak'/4768, l='MpServer', x=-111.13, y=89.77, z=118.78], EntityItem['item.item.seeds'/428, l='MpServer', x=-86.66, y=63.13, z=89.91], EntityBat['Bat'/2833, l='MpServer', x=-164.27, y=44.85, z=114.43], EntityBat['Bat'/2832, l='MpServer', x=-161.46, y=42.70, z=111.02], EntityFallingSand['Falling Block'/4790, l='MpServer', x=11.50, y=35.73, z=71.50], EntityFallingSand['Falling Block'/4789, l='MpServer', x=11.50, y=35.73, z=72.50], EntityFallingSand['Falling Block'/4243, l='MpServer', x=-50.50, y=29.82, z=225.50], EntityFallingSand['Falling Block'/4788, l='MpServer', x=11.50, y=35.73, z=73.50], EntityFallingSand['Falling Block'/4787, l='MpServer', x=19.50, y=21.73, z=54.50], EntityFallingSand['Falling Block'/4245, l='MpServer', x=-54.50, y=32.82, z=232.50], EntityFallingSand['Falling Block'/4786, l='MpServer', x=18.50, y=21.73, z=54.50], EntityFallingSand['Falling Block'/4244, l='MpServer', x=-50.50, y=29.82, z=226.50], EntityFallingSand['Falling Block'/4785, l='MpServer', x=17.50, y=21.73, z=53.50], EntityFallingSand['Falling Block'/4247, l='MpServer', x=-56.50, y=31.82, z=233.50], EntityFallingSand['Falling Block'/4784, l='MpServer', x=19.50, y=22.73, z=53.50], EntityFallingSand['Falling Block'/4246, l='MpServer', x=-55.50, y=32.82, z=233.50], EntityFallingSand['Falling Block'/4808, l='MpServer', x=10.50, y=35.96, z=72.50], EntityFallingSand['Falling Block'/4809, l='MpServer', x=11.50, y=34.96, z=70.50], EntityFallingSand['Falling Block'/4810, l='MpServer', x=11.50, y=36.96, z=71.50], EntityFallingSand['Falling Block'/4811, l='MpServer', x=11.50, y=36.96, z=72.50], EntityFallingSand['Falling Block'/4812, l='MpServer', x=10.50, y=35.96, z=70.50], EntityFallingSand['Falling Block'/4813, l='MpServer', x=10.50, y=34.96, z=69.50], EntityFallingSand['Falling Block'/4814, l='MpServer', x=10.50, y=33.96, z=67.50], EntityFallingSand['Falling Block'/4815, l='MpServer', x=21.50, y=25.96, z=68.50], EntityFallingSand['Falling Block'/4807, l='MpServer', x=10.50, y=35.96, z=71.50], EntityFallingSand['Falling Block'/4321, l='MpServer', x=-28.50, y=24.15, z=205.50], EntityFallingSand['Falling Block'/4825, l='MpServer', x=11.50, y=37.96, z=98.50], EntityFallingSand['Falling Block'/4824, l='MpServer', x=10.50, y=38.96, z=96.50], EntityFallingSand['Falling Block'/4827, l='MpServer', x=12.50, y=41.96, z=98.50], EntityFallingSand['Falling Block'/4826, l='MpServer', x=11.50, y=38.96, z=96.50], EntityFallingSand['Falling Block'/4829, l='MpServer', x=6.50, y=41.96, z=98.50], EntityFallingSand['Falling Block'/4828, l='MpServer', x=6.50, y=41.96, z=97.50], EntityFallingSand['Falling Block'/4831, l='MpServer', x=9.50, y=52.96, z=99.50], EntityFallingSand['Falling Block'/4830, l='MpServer', x=6.50, y=40.96, z=96.50], EntityFallingSand['Falling Block'/4817, l='MpServer', x=20.50, y=26.96, z=70.50], EntityFallingSand['Falling Block'/4816, l='MpServer', x=20.50, y=25.96, z=67.50], EntityItem['item.item.seeds'/4342, l='MpServer', x=-88.34, y=63.13, z=96.38], EntityFallingSand['Falling Block'/4819, l='MpServer', x=21.50, y=26.96, z=71.50], EntityItem['item.item.seeds'/4341, l='MpServer', x=-88.13, y=63.13, z=95.25], EntityFallingSand['Falling Block'/4818, l='MpServer', x=21.50, y=26.96, z=70.50], EntityFallingSand['Falling Block'/4821, l='MpServer', x=12.50, y=38.96, z=97.50], EntityFallingSand['Falling Block'/4820, l='MpServer', x=11.50, y=38.96, z=97.50], EntityFallingSand['Falling Block'/4823, l='MpServer', x=10.50, y=37.96, z=98.50], EntityFallingSand['Falling Block'/4822, l='MpServer', x=10.50, y=38.96, z=97.50], EntityFallingSand['Falling Block'/4842, l='MpServer', x=19.50, y=42.96, z=92.50], EntityFallingSand['Falling Block'/4843, l='MpServer', x=20.50, y=43.96, z=92.50], EntityFallingSand['Falling Block'/4840, l='MpServer', x=21.50, y=43.96, z=91.50], EntityFallingSand['Falling Block'/4841, l='MpServer', x=20.50, y=42.96, z=91.50], EntityFallingSand['Falling Block'/4846, l='MpServer', x=19.50, y=43.96, z=93.50], EntityFallingSand['Falling Block'/4847, l='MpServer', x=19.50, y=43.96, z=94.50], EntityFallingSand['Falling Block'/4844, l='MpServer', x=18.50, y=42.96, z=93.50], EntityFallingSand['Falling Block'/4845, l='MpServer', x=18.50, y=42.96, z=94.50], EntityFallingSand['Falling Block'/4834, l='MpServer', x=9.50, y=51.96, z=98.50], EntityFallingSand['Falling Block'/4835, l='MpServer', x=22.50, y=35.96, z=102.50], EntityFallingSand['Falling Block'/4832, l='MpServer', x=8.50, y=52.96, z=99.50], EntityFallingSand['Falling Block'/4833, l='MpServer', x=8.50, y=52.96, z=100.50], EntityFallingSand['Falling Block'/4838, l='MpServer', x=22.50, y=43.96, z=90.50], EntityFallingSand['Falling Block'/4839, l='MpServer', x=21.50, y=41.96, z=90.50], EntityFallingSand['Falling Block'/4836, l='MpServer', x=21.50, y=35.96, z=101.50], EntityFallingSand['Falling Block'/4837, l='MpServer', x=22.50, y=35.96, z=101.50], EntityFallingSand['Falling Block'/4856, l='MpServer', x=14.50, y=58.96, z=108.50], EntityFallingSand['Falling Block'/4851, l='MpServer', x=17.50, y=61.96, z=109.50], EntityFallingSand['Falling Block'/4850, l='MpServer', x=17.50, y=59.96, z=107.50], EntityFallingSand['Falling Block'/4849, l='MpServer', x=16.50, y=60.96, z=108.50], EntityFallingSand['Falling Block'/4848, l='MpServer', x=20.50, y=43.96, z=93.50], EntityFallingSand['Falling Block'/4855, l='MpServer', x=17.50, y=58.96, z=106.50], EntityFallingSand['Falling Block'/4854, l='MpServer', x=16.50, y=61.96, z=109.50], EntityFallingSand['Falling Block'/4853, l='MpServer', x=16.50, y=59.96, z=107.50], EntityFallingSand['Falling Block'/4852, l='MpServer', x=15.50, y=60.96, z=108.50]]
Retry entities: 0 total; []
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:441)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2405)
at net.minecraft.client.Minecraft.run(Minecraft.java:779)
at java.lang.Thread.run(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_17, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 844575032 bytes (805 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 17283 (967848 bytes; 0 MB) allocated, 1096 (61376 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v7.44 FML v5.1.8.610 Minecraft Forge 7.7.0.610 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
NaddoxMod [NaddoxMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 7800 Series GL version 4.2.12002 Compatibility Profile Context 9.12.0.0, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: 656 (36736 bytes; 0 MB) allocated, 123 (6888 bytes; 0 MB) used

java.lang.ClassCastException: com.NaddoxMod.BlockBasaltStep cannot be cast to net.minecraft.block.BlockStairs
at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:462)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:226)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1535)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1119)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:991)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867)
at net.minecraft.client.Minecraft.run(Minecraft.java:756)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT b7f7bdc1 ----------


 

Posted

If you check the tooltip of the screenshot you took, it says that the constructor for BlockStep requires an int and a bool. You have given it an int and a Material.

Posted

Coding for 36 hours has taken its toll on my observations >_<

 

I think I should be able to figure it out now once I get home. Taking a break atm.

Posted

My face is pounding my desk at the moment... I fix one issue and it causes many more... added a boolean, based on how the original blockStep does it, step still crashes game and it added 6 more of them to the game for no apparent reason, so now I am back to the original code, with a few added lines, pounding my head for the solution that I am sure is in front of me but I am oblivious to. Ughhh

 

http://pastebin.com/3nZXn8Wk - new code..

 

and yes I know I can do the texture with less lines, I was just slapping that in there from another block that used multiple textures, haven;t done cleanup yet..

Posted

From when i load the world and then place a block

2013-03-30 14:52:42 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@201299c7)
2013-03-30 14:52:42 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@201299c7)
2013-03-30 14:52:42 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@201299c7)
2013-03-30 14:52:42 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-03-30 14:52:43 [iNFO] [sTDOUT] loading single player
2013-03-30 14:52:43 [iNFO] [Minecraft-Server] Player12[/127.0.0.1:0] logged in with entity id 40 at (-123.26390481496077, 4.0, 1292.508464170216)
2013-03-30 14:53:21 [iNFO] [sTDERR] java.lang.ClassCastException: com.NaddoxMod.BlockBasaltStep cannot be cast to net.minecraft.block.BlockStairs
2013-03-30 14:53:21 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:462)
2013-03-30 14:53:21 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:226)
2013-03-30 14:53:21 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1535)
2013-03-30 14:53:21 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1119)
2013-03-30 14:53:21 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:991)
2013-03-30 14:53:21 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867)
2013-03-30 14:53:21 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:756)
2013-03-30 14:53:21 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Stopping server
2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving players
2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving worlds
2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether
2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End
2013-03-30 14:53:22 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-03-30 14:53:22 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-03-30 14:53:22 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-03-30 14:53:31 [iNFO] [Minecraft-Client] Stopping!

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

    • I know that this may be a basic question, but I am very new to modding. I am trying to have it so that I can create modified Vanilla loot tables that use a custom enchantment as a condition (i.e. enchantment present = item). However, I am having trouble trying to implement this; the LootItemRandomChanceWithEnchantedBonusCondition constructor needs a Holder<Enchantment> and I am unable to use the getOrThrow() method on the custom enchantment declared in my mod's enchantments class. Here is what I have so far in the GLM:   protected void start(HolderLookup.Provider registries) { HolderLookup.RegistryLookup<Enchantment> registrylookup = registries.lookupOrThrow(Registries.ENCHANTMENT); LootItemRandomChanceWithEnchantedBonusCondition lootItemRandomChanceWithEnchantedBonusCondition = new LootItemRandomChanceWithEnchantedBonusCondition(0.0f, LevelBasedValue.perLevel(0.07f), registrylookup.getOrThrow(*enchantment here*)); this.add("nebu_from_deepslate", new AddItemModifier(new LootItemCondition[]{ LootItemBlockStatePropertyCondition.hasBlockStateProperties(Blocks.DEEPSLATE).build(), LootItemRandomChanceCondition.randomChance(0.25f).build(), lootItemRandomChanceWithEnchantedBonusCondition }, OrichalcumItems.NEBU.get())); }   Inserting Enchantments.[vanilla enchantment here] actually works but trying to declare an enchantment from my custom enchantments class as [mod enchantment class].[custom enchantment] does not work even though they are both a ResourceKey and are registered in Registries.ENCHANTMENT. Basically, how would I go about making it so that a custom enchantment declared as a ResourceKey<Enchantment> of value ResourceKey.create(Registries.ENCHANTMENT, ResourceLocation.fromNamespaceAndPath([modid], [name])), declared in a seperate enchantments class, can be used in the LootItemRandomChanceWithEnchantedBonusCondition constructor as a Holder? I can't use getOrThrow() because there is no level or block entity/entity in the start() method and it is running as datagen. It's driving me nuts.
    • Hi here is an update. I was able to fix the code so my mod does not crash Minecraft. Please understand that I am new to modding but I honestly am having a hard time understanding how anyone can get this to work without having extensive programming and debugging experience as well as searching across the Internet, multiple gen AI bots (claude, grok, openai), and examining source code hidden in the gradle directory and in various github repositories. I guess I am wrong because clearly there are thousands of mods so maybe I am just a newbie. Ok, rant over, here is a step by step summary so others can save the 3 days it took me to figure this out.   1. First, I am using forge 54.1.0 and Minecraft 1.21.4 2. I am creating a mod to add a shotgun to Minecraft 3. After creating the mod and compiling it, I installed the .jar file to the proper directory in Minecraft and used 1.21.4-forge-54.1.0 4. The mod immediately crashed with the error: Caused by: java.lang.NullPointerException: Item id not set 5. Using the stack trace, I determined that the Exception was being thrown from the net.minecraft.world.item.Item.Properties class 6. It seems that there are no javadocs for this class, so I used IntelliJ which was able to provide a decompiled version of the class, which I then examined to see the source of the error. Side question: Are there javadocs? 7. This method, specifically, was the culprit: protected String effectiveDescriptionId() {      return this.descriptionId.get(Objects.requireNonNull(this.id, "Item id not set"));  } 8. Now my quest was to determine how to set this.id. Looking at the same source file, I determined there was another method:  public Item.Properties setId(ResourceKey<Item> pId) {             this.id = pId;             return this;   } 9. So now, I need to figure out how to call setId(). This required working backwards a bit. Starting from the constructor, I stubbed out the variable p which is of type Item.Properties public static final RegistryObject<Item> SHOTGUN = ITEMS.register("shotgun", () -> new ShotgunItem(p)); Rather than putting this all on one line, I split it up for readability like this: private static final Item.Properties p = new Item.Properties().useItemDescriptionPrefix().setId(rk); Here is was the missing function, setId(), which takes a type of ResourceKey<Item>. My next problem is that due to the apparent lack of documentation (I tried searching the docs on this site) I could not determine the full import path to ResourceKey. I did some random searching on the Internet and stumbled across a Github repository which gave two clues: import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; Then I created the rk variable like this: private static ResourceKey<Item> rk = ResourceKey.create(Registries.ITEM, ResourceLocation.parse("modid:shotgunmod")); And now putting it all together in order: private static ResourceKey<Item> rk = ResourceKey.create(Registries.ITEM, ResourceLocation.parse("modid:shotgunmod")); private static final Item.Properties p = new Item.Properties().useItemDescriptionPrefix().setId(rk); public static final RegistryObject<Item> SHOTGUN = ITEMS.register("shotgun", () -> new ShotgunItem(p)); This compiled and the mod no longer crashes. I still have more to do on it, but hopefully this will save someone hours. I welcome any feedback and if I missed some obvious modding resource or tutorial that has this information. If not, I might suggest we add it somewhere for people trying to write a mod that doesn't crash. Thank you !!!  
    • I will keep adding to this thread with more information in case anyone can help, or at the very least I can keep my troubleshooting organized. I decided to downgrade to 54.1.0 in the hopes that this would fix the issue but it didn't. At least now I am on a "recommended" version. The crash report did confirm my earlier post that the Exception is coming from effectiveDescriptionId(). I'll continue to see if I can find a way to set the ID manually.   Caused by: java.lang.NullPointerException: Item id not set         at java.base/java.util.Objects.requireNonNull(Objects.java:259) ~[?:?]         at TRANSFORMER/[email protected]/net.minecraft.world.item.Item$Properties.effectiveDescriptionId(Item.java:465) ~[forge-1.21.4-54.1.0-client.jar!/:?]         at TRANSFORMER/[email protected]/net.minecraft.world.item.Item.<init>(Item.java:111) ~[forge-1.21.4-54.1.0-client.jar!/:?]         at TRANSFORMER/[email protected]/com.example.shotgunmod.ShotgunItem.<init>(ShotgunItem.java:19) ~[shotgunmod-1.0.0.jar!/:1.0.0]         at TRANSFORMER/[email protected]/com.example.shotgunmod.ModItems.lambda$static$0(ModItems.java:15) ~[shotgunmod-1.0.0.jar!/:1.0.0]         at TRANSFORMER/[email protected]/net.minecraftforge.registries.DeferredRegister$EventDispatcher.lambda$handleEvent      
    • It just randomly stop working after a rebooted my dedicated server PLEASE HELP!   com.google.gson   Failed to start the minecraft server com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive; at path $  
  • Topics

×
×
  • Create New...

Important Information

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