Вкладка креатива, краш.

Версия Minecraft
1.7.10
21
0
В моде не работает вкладка креатива я захожу в игру и в креативе пытаюсь перелистнуть страницу на вторую и игра крашается
Краш-репорт
Код:
---- Minecraft Crash Report ----
// My bad.

Time: 11.08.16 16:28
Description: Rendering item

java.lang.NullPointerException: Rendering item
 at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265)
 at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)
 at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
 at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:968)
 at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:795)
 at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93)
 at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
 at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
 at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
 at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
 at net.minecraft.client.Minecraft.run(Minecraft.java:962)
 at net.minecraft.client.main.Main.main(Main.java:164)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
 at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
 at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
 at GradleStart.main(Unknown Source)


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

-- Head --
Stacktrace:
 at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265)
 at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)

-- Item being rendered --
Details:
 Item Type: null
 Item Aux: ~~ERROR~~ NullPointerException: null
 Item NBT: null
 Item Foil: ~~ERROR~~ NullPointerException: null
Stacktrace:
 at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
 at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:968)
 at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:795)
 at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93)
 at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
 at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)

-- Screen render details --
Details:
 Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative
 Mouse location: Scaled: (304, 14). Absolute: (609, 451)
 Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

-- Affected level --
Details:
 Level name: MpServer
 All players: 1 total; [EntityClientPlayerMP['Player968'/429, l='MpServer', x=-118,50, y=68,62, z=253,50]]
 Chunk stats: MultiplayerChunkCache: 225, 225
 Level seed: 0
 Level generator: ID 00 - default, ver 1. Features enabled: false
 Level generator options: 
 Level spawn location: World: (-116,64,252), Chunk: (at 12,4,12 in -8,15; contains blocks -128,0,240 to -113,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
 Level time: 1338 game time, 1338 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: 142 total; [EntitySheep['Овца'/256, l='MpServer', x=-81,16, y=66,00, z=219,53], EntitySheep['Овца'/257, l='MpServer', x=-81,50, y=67,00, z=218,03], EntitySquid['Спрут'/259, l='MpServer', x=-87,19, y=52,34, z=264,78], EntitySquid['Спрут'/260, l='MpServer', x=-91,88, y=52,32, z=259,18], EntitySquid['Спрут'/261, l='MpServer', x=-86,91, y=57,72, z=261,03], EntitySquid['Спрут'/262, l='MpServer', x=-99,25, y=53,00, z=256,57], EntitySquid['Спрут'/263, l='MpServer', x=-89,44, y=51,31, z=259,50], EntitySquid['Спрут'/264, l='MpServer', x=-91,50, y=51,00, z=264,50], EntitySquid['Спрут'/265, l='MpServer', x=-94,41, y=58,31, z=274,50], EntitySquid['Спрут'/266, l='MpServer', x=-103,53, y=55,00, z=258,38], EntitySquid['Спрут'/267, l='MpServer', x=-91,50, y=61,63, z=298,59], EntitySquid['Спрут'/268, l='MpServer', x=-90,56, y=61,34, z=307,47], EntitySquid['Спрут'/270, l='MpServer', x=-88,50, y=60,22, z=302,09], EntitySquid['Спрут'/271, l='MpServer', x=-86,88, y=57,16, z=309,06], EntitySquid['Спрут'/272, l='MpServer', x=-87,38, y=58,91, z=314,56], EntitySquid['Спрут'/274, l='MpServer', x=-80,25, y=61,38, z=306,72], EntitySquid['Спрут'/275, l='MpServer', x=-95,59, y=60,34, z=313,72], EntitySquid['Спрут'/276, l='MpServer', x=-91,50, y=61,13, z=306,16], EntitySquid['Спрут'/278, l='MpServer', x=-92,22, y=60,34, z=313,16], EntitySquid['Спрут'/279, l='MpServer', x=-83,16, y=61,09, z=312,88], EntityBat['Летучая мышь'/1304, l='MpServer', x=-177,15, y=23,78, z=202,51], EntitySkeleton['Скелет'/1062, l='MpServer', x=-188,50, y=27,00, z=176,50], EntityCreeper['Крипер'/1577, l='MpServer', x=-47,50, y=15,00, z=284,50], EntityCreeper['Крипер'/1578, l='MpServer', x=-49,50, y=15,00, z=284,50], EntityCreeper['Крипер'/1579, l='MpServer', x=-46,50, y=15,00, z=284,50], EntitySpider['Паук'/1582, l='MpServer', x=-51,50, y=15,00, z=280,50], EntityPig['Свинья'/307, l='MpServer', x=-74,09, y=64,00, z=220,88], EntitySheep['Овца'/308, l='MpServer', x=-78,50, y=67,00, z=216,50], EntityPig['Свинья'/309, l='MpServer', x=-79,50, y=63,00, z=225,50], EntitySquid['Спрут'/310, l='MpServer', x=-65,50, y=57,00, z=249,78], EntitySquid['Спрут'/311, l='MpServer', x=-71,53, y=57,34, z=252,84], EntitySquid['Спрут'/312, l='MpServer', x=-68,03, y=58,38, z=245,31], EntitySquid['Спрут'/313, l='MpServer', x=-64,91, y=56,72, z=247,06], EntitySquid['Спрут'/314, l='MpServer', x=-77,66, y=58,28, z=253,81], EntitySquid['Спрут'/315, l='MpServer', x=-66,66, y=57,13, z=247,59], EntitySquid['Спрут'/316, l='MpServer', x=-69,38, y=56,28, z=257,78], EntityZombie['Зомби'/62, l='MpServer', x=-197,47, y=23,00, z=183,97], EntityBat['Летучая мышь'/63, l='MpServer', x=-178,49, y=23,38, z=191,61], EntityChicken['Курица'/64, l='MpServer', x=-196,41, y=64,00, z=179,41], EntitySquid['Спрут'/322, l='MpServer', x=-75,78, y=56,06, z=260,44], EntityZombie['Зомби'/323, l='MpServer', x=-79,50, y=16,00, z=273,50], EntityBat['Летучая мышь'/67, l='MpServer', x=-194,25, y=22,76, z=177,66], EntitySquid['Спрут'/326, l='MpServer', x=-67,25, y=60,38, z=299,88], EntitySquid['Спрут'/327, l='MpServer', x=-67,81, y=59,38, z=291,81], EntitySquid['Спрут'/328, l='MpServer', x=-62,34, y=52,38, z=293,47], EntitySquid['Спрут'/333, l='MpServer', x=-67,81, y=55,97, z=297,22], EntityZombie['Зомби'/80, l='MpServer', x=-179,50, y=15,00, z=190,50], EntityBat['Летучая мышь'/81, l='MpServer', x=-186,75, y=22,10, z=192,75], EntityChicken['Курица'/82, l='MpServer', x=-190,63, y=64,00, z=179,53], EntityZombie['Зомби'/83, l='MpServer', x=-176,50, y=13,00, z=199,03], EntityZombie['Зомби'/1107, l='MpServer', x=-66,47, y=18,00, z=230,97], EntityBat['Летучая мышь'/1366, l='MpServer', x=-174,91, y=26,00, z=329,91], EntityZombie['Зомби'/93, l='MpServer', x=-171,63, y=12,00, z=187,50], EntityBat['Летучая мышь'/351, l='MpServer', x=-54,79, y=28,68, z=215,52], EntityBat['Летучая мышь'/95, l='MpServer', x=-164,50, y=31,10, z=186,75], EntityBat['Летучая мышь'/352, l='MpServer', x=-54,71, y=24,79, z=213,09], EntitySkeleton['Скелет'/96, l='MpServer', x=-167,50, y=34,00, z=186,50], EntitySkeleton['Скелет'/98, l='MpServer', x=-172,50, y=15,00, z=197,50], EntityCreeper['Крипер'/100, l='MpServer', x=-165,53, y=32,00, z=203,97], EntityZombie['Зомби'/101, l='MpServer', x=-166,78, y=31,00, z=204,78], EntityChicken['Курица'/102, l='MpServer', x=-168,41, y=65,00, z=289,44], EntitySquid['Спрут'/359, l='MpServer', x=-61,16, y=58,19, z=221,50], EntityZombie['Зомби'/361, l='MpServer', x=-48,69, y=15,00, z=286,56], EntitySkeleton['Скелет'/362, l='MpServer', x=-57,50, y=16,00, z=284,50], EntityZombie['Зомби'/364, l='MpServer', x=-49,16, y=18,00, z=289,41], EntitySquid['Спрут'/365, l='MpServer', x=-59,91, y=61,28, z=306,41], EntityCreeper['Крипер'/1133, l='MpServer', x=-111,50, y=29,00, z=256,50], EntitySquid['Спрут'/366, l='MpServer', x=-57,84, y=61,22, z=297,31], EntitySquid['Спрут'/367, l='MpServer', x=-60,06, y=61,91, z=300,69], EntitySquid['Спрут'/368, l='MpServer', x=-59,16, y=60,31, z=303,44], EntityZombie['Зомби'/1138, l='MpServer', x=-63,13, y=17,00, z=236,56], EntitySquid['Спрут'/371, l='MpServer', x=-63,09, y=58,31, z=298,69], EntitySquid['Спрут'/372, l='MpServer', x=-59,97, y=51,38, z=294,22], EntityZombie['Зомби'/1140, l='MpServer', x=-63,50, y=18,00, z=241,50], EntitySquid['Спрут'/374, l='MpServer', x=-54,53, y=52,94, z=294,16], EntitySquid['Спрут'/377, l='MpServer', x=-63,28, y=57,88, z=302,19], EntityChicken['Курица'/122, l='MpServer', x=-144,47, y=69,00, z=194,56], EntityChicken['Курица'/123, l='MpServer', x=-146,53, y=67,00, z=205,34], EntityChicken['Курица'/124, l='MpServer', x=-157,50, y=66,00, z=234,50], EntitySquid['Спрут'/380, l='MpServer', x=-57,75, y=52,75, z=304,31], EntityChicken['Курица'/125, l='MpServer', x=-150,59, y=65,00, z=236,38], EntitySquid['Спрут'/381, l='MpServer', x=-55,38, y=52,34, z=304,03], EntityChicken['Курица'/126, l='MpServer', x=-155,50, y=66,00, z=234,81], EntitySquid['Спрут'/382, l='MpServer', x=-54,91, y=50,69, z=306,91], EntityChicken['Курица'/127, l='MpServer', x=-152,22, y=66,00, z=236,94], EntitySquid['Спрут'/383, l='MpServer', x=-63,34, y=53,03, z=318,50], EntityChicken['Курица'/128, l='MpServer', x=-149,47, y=65,00, z=244,53], EntityChicken['Курица'/129, l='MpServer', x=-151,72, y=64,00, z=264,28], EntityChicken['Курица'/130, l='MpServer', x=-151,47, y=64,00, z=264,84], EntityChicken['Курица'/131, l='MpServer', x=-159,50, y=65,00, z=282,50], EntityChicken['Курица'/132, l='MpServer', x=-157,50, y=64,00, z=286,50], EntityChicken['Курица'/133, l='MpServer', x=-158,50, y=63,00, z=290,50], EntitySkeleton['Скелет'/134, l='MpServer', x=-158,50, y=56,00, z=314,50], EntitySkeleton['Скелет'/136, l='MpServer', x=-153,50, y=56,00, z=313,50], EntityCreeper['Крипер'/394, l='MpServer', x=-43,50, y=16,00, z=285,50], EntityZombie['Зомби'/395, l='MpServer', x=-45,50, y=16,00, z=282,50], EntityZombie['Зомби'/150, l='MpServer', x=-128,50, y=29,00, z=184,50], EntityBat['Летучая мышь'/1174, l='MpServer', x=-47,47, y=17,30, z=176,29], EntityChicken['Курица'/151, l='MpServer', x=-137,03, y=66,00, z=199,78], EntityChicken['Курица'/152, l='MpServer', x=-138,53, y=64,00, z=193,31], EntityZombie['Зомби'/1432, l='MpServer', x=-98,50, y=27,00, z=283,50], EntityChicken['Курица'/153, l='MpServer', x=-150,47, y=65,00, z=255,63], EntitySquid['Спрут'/173, l='MpServer', x=-108,69, y=49,31, z=201,13], EntitySquid['Спрут'/174, l='MpServer', x=-117,34, y=53,34, z=208,31], EntityBat['Летучая мышь'/1198, l='MpServer', x=-89,50, y=23,56, z=279,69], EntitySquid['Спрут'/175, l='MpServer', x=-113,56, y=50,19, z=211,91], EntitySquid['Спрут'/177, l='MpServer', x=-119,47, y=53,91, z=206,63], EntitySquid['Спрут'/180, l='MpServer', x=-115,22, y=53,31, z=214,38], EntityBat['Летучая мышь'/436, l='MpServer', x=-171,57, y=33,09, z=201,23], EntitySquid['Спрут'/181, l='MpServer', x=-123,50, y=53,38, z=215,50], EntitySquid['Спрут'/184, l='MpServer', x=-123,88, y=55,34, z=221,66], EntitySpider['Паук'/185, l='MpServer', x=-120,50, y=21,00, z=244,50], EntitySkeleton['Скелет'/186, l='MpServer', x=-112,50, y=16,00, z=276,50], EntityCreeper['Крипер'/187, l='MpServer', x=-116,50, y=16,00, z=284,50], EntityEnderman['Эндермен'/188, l='MpServer', x=-116,22, y=17,00, z=282,00], EntitySkeleton['Скелет'/190, l='MpServer', x=-114,50, y=31,00, z=301,50], EntityClientPlayerMP['Player968'/429, l='MpServer', x=-118,50, y=68,62, z=253,50], EntitySquid['Спрут'/204, l='MpServer', x=-108,69, y=54,34, z=198,69], EntitySquid['Спрут'/205, l='MpServer', x=-114,66, y=52,69, z=211,81], EntitySquid['Спрут'/208, l='MpServer', x=-110,50, y=51,00, z=213,50], EntitySquid['Спрут'/209, l='MpServer', x=-112,88, y=52,34, z=208,75], EntitySquid['Спрут'/210, l='MpServer', x=-116,81, y=56,38, z=217,50], EntitySquid['Спрут'/211, l='MpServer', x=-107,51, y=56,59, z=255,05], EntitySquid['Спрут'/212, l='MpServer', x=-107,50, y=56,28, z=257,35], EntitySheep['Овца'/213, l='MpServer', x=-111,63, y=66,00, z=287,47], EntitySheep['Овца'/214, l='MpServer', x=-107,31, y=63,00, z=285,41], EntitySheep['Овца'/215, l='MpServer', x=-103,25, y=63,00, z=274,41], EntitySheep['Овца'/216, l='MpServer', x=-112,38, y=66,00, z=288,59], EntityCreeper['Крипер'/231, l='MpServer', x=-81,50, y=14,00, z=180,63], EntityCreeper['Крипер'/240, l='MpServer', x=-86,50, y=15,00, z=178,50], EntitySpider['Паук'/241, l='MpServer', x=-91,50, y=16,00, z=185,50], EntitySkeleton['Скелет'/1266, l='MpServer', x=-76,84, y=27,00, z=266,44], EntitySkeleton['Скелет'/1267, l='MpServer', x=-71,50, y=17,00, z=278,50], EntityEnderman['Эндермен'/1268, l='MpServer', x=-67,63, y=17,00, z=280,66], EntityEnderman['Эндермен'/1269, l='MpServer', x=-70,50, y=17,00, z=279,50], EntitySquid['Спрут'/251, l='MpServer', x=-101,78, y=51,16, z=192,63], EntitySquid['Спрут'/252, l='MpServer', x=-92,72, y=49,34, z=192,50], EntitySkeleton['Скелет'/1532, l='MpServer', x=-113,50, y=16,00, z=275,50], EntityPig['Свинья'/253, l='MpServer', x=-85,50, y=67,00, z=217,50], EntitySkeleton['Скелет'/1533, l='MpServer', x=-109,50, y=16,00, z=275,50], EntityPig['Свинья'/254, l='MpServer', x=-82,78, y=66,00, z=220,78], EntitySheep['Овца'/255, l='MpServer', x=-80,50, y=68,00, z=216,50]]
 Retry entities: 0 total; []
 Server brand: fml,forge
 Server type: Integrated singleplayer server
Stacktrace:
 at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
 at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
 at net.minecraft.client.Minecraft.run(Minecraft.java:984)
 at net.minecraft.client.main.Main.main(Main.java:164)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
 at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
 at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
 at GradleStart.main(Unknown Source)

-- System Details --
Details:
 Minecraft Version: 1.7.10
 Operating System: Windows 10 (amd64) version 10.0
 Java Version: 1.8.0_101, Oracle Corporation
 Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
 Memory: 769461712 bytes (733 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
 JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
 AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
 IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 4 mods loaded, 4 mods active
 States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
 UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
 UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
 UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
 UCHIJAAAA vavter{1.0beta} [VaVter mod] (bin) 
 GL info: ' Vendor: 'ATI Technologies Inc.' Version: '3.3.11672 Compatibility Profile Context' Renderer: 'ATI Radeon HD 4800 Series'
 Launched Version: 1.7.10
 LWJGL: 2.9.1
 OpenGL: ATI Radeon HD 4800 Series GL version 3.3.11672 Compatibility Profile Context, ATI Technologies Inc.
 GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

 Is Modded: Definitely; Client brand changed to 'fml,forge'
 Type: Client (map_client.txt)
 Resource Packs: []
 Current Language: Русский (Россия)
 Profiler Position: N/A (disabled)
 Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
 Anisotropic Filtering: Off (1)



Главный файл мода
Код:
package vm.vavter.mod;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraftforge.common.util.EnumHelper;

@Mod (modid = "vavter", name = "VaVter mod", version = "1.0beta")
public class Vavter {
 /** Блоки **/
 public static Block bsblock;
 public static Block rsblock;
 
 /** Руды **/
 public static Block bsore;
 public static Block rsore;
 
 /** Материялы **/
 public static Item bs;
 public static Item rs;
 public static Item redpl;
 public static Item bluepl;
 public static Item bse;
 public static Item rse;
 public static Item dmstick;
 
 
 /** Инструменты **/
 public static Item pickaxeshard;
 
 
 /** Оружее **/
 
 
 /** Броня **/
 
 
 /** Генерация **/
 
 
 /** Параметры **/
 public static final ToolMaterial SMAT = EnumHelper.addToolMaterial("SMAT", 4, 2500, 12F, 7F, 5);
 
 public static CreativeTabs tabVaVtermod = new tabVaVtermod(CreativeTabs.getNextID(),"tabVaVtermod");
 
 /**  **//**  **//**  **//**  **//**  **//**  **//**  **//**  **//**  **//**  **//**  **//**  **//**  **//**  **/
 public void Load(FMLPreInitializationEvent event){
 /** Блоки    ===================================================================================  **/
 rsblock = new Rsblock();
 GameRegistry.registerBlock(rsblock, "Rsblock");
 bsblock = new Bsblock();
 GameRegistry.registerBlock(bsblock, "Bsblock");
 
 
 /** Руды    =================================================================================== **/
 bsore = new BSOre();
 GameRegistry.registerBlock(bsore, "BSOre");
 rsore = new RSOre();
 GameRegistry.registerBlock(rsore, "RSOre");
 
 
 /** Материялы    =================================================================================== **/
 /** Синий шард **/
 bs = new BS().setUnlocalizedName("BS");
 GameRegistry.registerItem(bs, "bs");
 /** Красный шард **/
 rs = new RS().setUnlocalizedName("RS");
 GameRegistry.registerItem(rs, "rs");
 /** Плитка синия **/
 bluepl = new Bluepl().setUnlocalizedName("bluepl");
 GameRegistry.registerItem(bluepl, "Bluepl");
 /** плитка красная **/
 redpl = new Redpl().setUnlocalizedName("redpl");
 GameRegistry.registerItem(redpl, "Redpl");
 /** кирка шардов **/
 pickaxeshard = new Pickaxeshard().setUnlocalizedName("pickaxeshard");
 GameRegistry.registerItem(pickaxeshard, "pickaxeshard");
 /** Алмазная палка **/
 dmstick = new Dmstick().setUnlocalizedName("dmstick");
 GameRegistry.registerItem(dmstick, "dmstick");
 
 bse = new Bse().setUnlocalizedName("bse");
 GameRegistry.registerItem(bse, "bse");
 rse = new Rse().setUnlocalizedName("rse");
 GameRegistry.registerItem(rse, "rse");
 
 
 /** Инструменты   ===================================================================================  **/
 
 
 
 /** Оружее    =================================================================================== **/
 
 
 
 /** Броня    =================================================================================== **/
 
 
 
 /** Крафты   =================================================================================== **/
 
        GameRegistry.addRecipe(new ItemStack(bsblock), 
                new Object[]{ "zzz", "zzz", "zzz",
                ('z'), bs});
        GameRegistry.addRecipe(new ItemStack(rsblock), 
                new Object[]{ "zzz", "zzz", "zzz",
                ('z'), rs});
        
        /** Синия плостина **/
        GameRegistry.addRecipe(new ItemStack(bluepl, 3), 
                new Object[]{ "zzz", "zzz", "xxx",
                ('x'), bs});
        GameRegistry.addRecipe(new ItemStack(bluepl, 3), 
                new Object[]{ "zzz", "xxx", "zzz",
                ('x'), bs});
        GameRegistry.addRecipe(new ItemStack(bluepl, 3), 
                new Object[]{ "xxx", "zzz", "zzz",
                ('x'), bs});
        
        /** Красная пластина **/
        GameRegistry.addRecipe(new ItemStack(redpl, 3), 
                new Object[]{ "zzz", "zzz", "xxx",
                ('x'), rs});
        GameRegistry.addRecipe(new ItemStack(redpl, 3), 
                new Object[]{ "zzz", "xxx", "zzz",
                ('x'), rs});
        GameRegistry.addRecipe(new ItemStack(redpl, 3), 
                new Object[]{ "xxx", "zzz", "zzz",
                ('x'), rs});
        
        GameRegistry.addRecipe(new ItemStack(bse), 
                new Object[]{ "zxx", "zcx", "zzz",
                ('x'), bluepl,('c'), Items.diamond});
        GameRegistry.addRecipe(new ItemStack(rse), 
                new Object[]{ "zxx", "zcx", "zzz",
                ('x'), redpl,('c'), Items.diamond});
        
        GameRegistry.addRecipe(new ItemStack(dmstick),
         new Object[]{ "xzz", "xzz", "zzz",
         ('x'), Items.diamond,});
        GameRegistry.addRecipe(new ItemStack(dmstick),
         new Object[]{ "zzz", "xzz", "xzz",
         ('x'), Items.diamond,});
        GameRegistry.addRecipe(new ItemStack(dmstick),
         new Object[]{ "zxz", "zxz", "zzz",
         ('x'), Items.diamond,});
        GameRegistry.addRecipe(new ItemStack(dmstick),
         new Object[]{ "zzz", "zxz", "zxz",
         ('x'), Items.diamond,});
        GameRegistry.addRecipe(new ItemStack(dmstick),
         new Object[]{ "zzx", "zzx", "zzz",
         ('x'), Items.diamond,});
        GameRegistry.addRecipe(new ItemStack(dmstick),
         new Object[]{ "zzz", "zzx", "zzx",
         ('x'), Items.diamond,});
 
 
 /** Генерация ===================================================================================   **/
 
 
 
 }
}
класс креати таба 
Код:
package vm.vavter.mod;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;

public class tabVaVtermod extends CreativeTabs{
 
 public tabVaVtermod(int i, String lable) {
 super(lable);
 }
 @Override
 public Item getTabIconItem()
 {
 return Item.getItemFromBlock(Vavter.bsblock);
 }
}
 
Решение
Эх

В самом начале краш говорит, что вот это строка - Item.getItemFromBlock(Vavter.bsblock) - возвращает null.
Ну и думай теперь, почему так получается, может Vavter.bsblock у тебя null или хызы что ещё
667
7
2
Я делаю как в ваниле:
Код:
   public static final CreativeTabs //Имя твоей вкладки = new CreativeTabs("//Имя для локализации") {
        public Item getTabIconItem() {
            return //Класс с блоками/предметами.//Имя предмета/блока;
        }
    };
Таких вкладок можно размещать в одном классе сколько угодно.
Код:
public class ModCreativeTab {

    public static final CreativeTabs TAB_TEST1= new CreativeTabs("tab_test1") {
        public Item getTabIconItem() {
            return Item.getItemFromBlock(Blocks.GRASS);
        }
    };

    public static final CreativeTabs TAB_TEST2 = new CreativeTabs("tab_test2") {
        public Item getTabIconItem() {
            return Item.getItemFromBlock(Blocks.GRASS);
        }
    };
}
 
667
7
2
VaVter написал(а):
Когда сделал как ты майн крашнулся даже не открывшись

Скинь класс вкладки который ты сейчас сделал.
 
21
0
Код:
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class tabVaVtermod{

  public static final CreativeTabs tabVaVtermod = new CreativeTabs("tabVaVtermod") {
      public Item getTabIconItem() {
          return Item.getItemFromBlock(Vavter.bsore);
      }
  };
}

Теперь в главном файле ошибка в этой строке 
Код:
 public static CreativeTabs tabVaVtermod = new tabVaVtermod(CreativeTabs.getNextID(),"tabVaVtermod");
 
2,505
80
395
Удали все, что ты написал выше (новый класс и создание вкладки) и в главном класс напиши

Код:
public static final CreativeTabs tabVaVtermod = new CreativeTabs("tabVaVtermod") {
       public Item getTabIconItem() {
           return Item.getItemFromBlock(Vavter.bsore);
       }
   };
 

necauqua

когда-то был anti344
Администратор
1,148
22
152
Эх

В самом начале краш говорит, что вот это строка - Item.getItemFromBlock(Vavter.bsblock) - возвращает null.
Ну и думай теперь, почему так получается, может Vavter.bsblock у тебя null или хызы что ещё
 
Сверху