From 5040e28d146c60290229c012d0153ffe61952f96 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sun, 29 Nov 2020 17:44:46 -0500 Subject: [PATCH] Add Cobwebs To Expanded Creative Inventory --- mods/src/extra.cpp | 29 +++++++++++++++-------------- mods/src/minecraft.h | 29 +++++++++++++++-------------- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/mods/src/extra.cpp b/mods/src/extra.cpp index 0c73465c1..cb73d3864 100644 --- a/mods/src/extra.cpp +++ b/mods/src/extra.cpp @@ -88,25 +88,26 @@ extern "C" { int32_t ret = (*FillingContainer_addItem)(filling_container, item_instance); // Add Items - inventory_add_item(filling_container, *item_flintAndSteel, false); - inventory_add_item(filling_container, *item_snowball, false); - inventory_add_item(filling_container, *item_egg, false); - inventory_add_item(filling_container, *item_shears, false); + inventory_add_item(filling_container, *Item_flintAndSteel, false); + inventory_add_item(filling_container, *Item_snowball, false); + inventory_add_item(filling_container, *Item_egg, false); + inventory_add_item(filling_container, *Item_shears, false); for (int i = 0; i < 15; i++) { unsigned char *item_instance = (unsigned char *) ::operator new(0xc); - item_instance = (*ItemInstance_damage)(item_instance, *item_dye_powder, 1, i); + item_instance = (*ItemInstance_damage)(item_instance, *Item_dye_powder, 1, i); (*FillingContainer_addItem)(filling_container, item_instance); } - inventory_add_item(filling_container, *item_camera, false); + inventory_add_item(filling_container, *Item_camera, false); // Add Tiles - inventory_add_item(filling_container, *tile_water, true); - inventory_add_item(filling_container, *tile_lava, true); - inventory_add_item(filling_container, *tile_calmWater, true); - inventory_add_item(filling_container, *tile_calmLava, true); - inventory_add_item(filling_container, *tile_glowingObsidian, true); - inventory_add_item(filling_container, *tile_topSnow, true); - inventory_add_item(filling_container, *tile_ice, true); - inventory_add_item(filling_container, *tile_invisible_bedrock, true); + inventory_add_item(filling_container, *Tile_water, true); + inventory_add_item(filling_container, *Tile_lava, true); + inventory_add_item(filling_container, *Tile_calmWater, true); + inventory_add_item(filling_container, *Tile_calmLava, true); + inventory_add_item(filling_container, *Tile_glowingObsidian, true); + inventory_add_item(filling_container, *Tile_web, true); + inventory_add_item(filling_container, *Tile_topSnow, true); + inventory_add_item(filling_container, *Tile_ice, true); + inventory_add_item(filling_container, *Tile_invisible_bedrock, true); return ret; } diff --git a/mods/src/minecraft.h b/mods/src/minecraft.h index f23e8443a..64433ff1d 100644 --- a/mods/src/minecraft.h +++ b/mods/src/minecraft.h @@ -11,21 +11,22 @@ static char **default_username = (char **) 0x18fd4; -static unsigned char **item_flintAndSteel = (unsigned char **) 0x17ba70; -static unsigned char **item_snowball = (unsigned char **) 0x17bbb0; -static unsigned char **item_shears = (unsigned char **) 0x17bbf0; -static unsigned char **item_egg = (unsigned char **) 0x17bbd0; -static unsigned char **item_dye_powder = (unsigned char **) 0x17bbe0; -static unsigned char **item_camera = (unsigned char **) 0x17bc14; +static unsigned char **Item_flintAndSteel = (unsigned char **) 0x17ba70; +static unsigned char **Item_snowball = (unsigned char **) 0x17bbb0; +static unsigned char **Item_shears = (unsigned char **) 0x17bbf0; +static unsigned char **Item_egg = (unsigned char **) 0x17bbd0; +static unsigned char **Item_dye_powder = (unsigned char **) 0x17bbe0; +static unsigned char **Item_camera = (unsigned char **) 0x17bc14; -static unsigned char **tile_water = (unsigned char **) 0x181b3c; -static unsigned char **tile_lava = (unsigned char **) 0x181cc8; -static unsigned char **tile_calmWater = (unsigned char **) 0x181b40; -static unsigned char **tile_calmLava = (unsigned char **) 0x181ccc; -static unsigned char **tile_glowingObsidian = (unsigned char **) 0x181dcc; -static unsigned char **tile_topSnow = (unsigned char **) 0x181b30; -static unsigned char **tile_ice = (unsigned char **) 0x181d80; -static unsigned char **tile_invisible_bedrock = (unsigned char **) 0x181d94; +static unsigned char **Tile_water = (unsigned char **) 0x181b3c; +static unsigned char **Tile_lava = (unsigned char **) 0x181cc8; +static unsigned char **Tile_calmWater = (unsigned char **) 0x181b40; +static unsigned char **Tile_calmLava = (unsigned char **) 0x181ccc; +static unsigned char **Tile_glowingObsidian = (unsigned char **) 0x181dcc; +static unsigned char **Tile_web = (unsigned char **) 0x181d08; +static unsigned char **Tile_topSnow = (unsigned char **) 0x181b30; +static unsigned char **Tile_ice = (unsigned char **) 0x181d80; +static unsigned char **Tile_invisible_bedrock = (unsigned char **) 0x181d94; typedef long int (*getRemainingFileSize_t)(FILE *file); static getRemainingFileSize_t getRemainingFileSize = (getRemainingFileSize_t) 0xba520;