Fix block/item game object creation and texture fallback

- Add GameObjectFactory: create actual Tile/TileItem/Item objects via PDB symbols
- Fix IdRegistry ID ranges: BLOCK_MOD_START=174, ITEM_MOD_START=3000
- Add icon parameter to item registration (API, NativeInterop, NativeExports)
- Use protected (IEAA/MEAA) decorated names for Tile/Item constructors
- Lazy-dereference Material/SoundType pointers (NULL until staticCtor runs)
- CrashHandler: skip __debugbreak() from game exe so missing texture fallback runs
- ExampleMod: add .Icon("ruby") to item registration
This commit is contained in:
Jacobwasbeast
2026-03-06 20:10:13 -06:00
parent 7af64bf83c
commit 336e037730
12 changed files with 341 additions and 7 deletions

View File

@@ -26,6 +26,7 @@ public class ExampleMod : IMod
Ruby = Registry.Item.Register("examplemod:ruby",
new ItemProperties()
.MaxStackSize(64)
.Icon("ruby")
.InCreativeTab(CreativeTab.Materials));
Registry.Recipe.AddFurnace("examplemod:ruby_ore", "examplemod:ruby", 1.0f);