Everything posted by GotoLink
-
[1.7.2] openGui Problem (onBlockActivated)
private GuiHandler guihandler = new GuiHandler(); Need to see that class. This is what is crashing.
-
[1.6.4] addChatMessage on a custom event
Stop using the Minecraft client on server side, please.
-
[1.6.4]Custom Tnt
this.blockRenderer.renderBlockAsItem(Block.tnt, 0, par1EntityTNTPrimed.getBrightness(par9)); -snip- this.blockRenderer.renderBlockAsItem(Block.tnt, 0, 1.0F); Are you using the vanilla tnt block for rendering here, or is it your own ?
-
[1.6.4] Help With Adding a Custom Helmet
You are missing the default return String statement.
-
[1.7.2] How to create spawn eggs in minecraft forge 1.7.2
The text begins with "Spawn", Minecraft thinks "entity.Crocodile.name" is the localised name. You shouldn't put spaces in the lang file, by the way.
-
[1.7.2] adding Tools/ToolMaterial
You never needed to copy.
-
Where do I get the minecraft source from?
In the librairies.
-
[1.7.2] IWorldGenerator Crash
public static EventManager eventManager; eventManager is null.
-
[1.6.4] What is the best way to change/overwrite the players model?
RenderPlayerEvent is an abstract event, you can't make a listener for it.
-
[1.7.2]what to use instead of onInventoryChanged() method
void onInventoryChanged() Is still defined in 1.7.2 IInventory. Read again.
-
[1.7.2][Forge]Lang file problem, onCrafting player event problem
You need to search where each event instance is created, and see to which event bus it is posted. The lang file content is case-sensitive, make sure you use the exact unlocalized names.
-
[1.7] Overwrite Vanilla Items
You can rename items and blocks through the language files. But what Railcraft probably do is replacing the recipe. Write your recipe like the original one, then put your item for the result.
-
Suggestions for Efficient Mod Making Please?
1. When i have a lot of things, I wrap Block and Item, and register references into my own Map, keys being unlocalized names. 2. Registry things either in the constructor for the object, or in its wrapper constructor. Agreed with Draco18s, LanguageRegistry is deprecated since 1.6. 3. Minecraft doesn't do this in 1.6.4. The common method would be to use Forge Configuration class to get configurable (and free) block/item ids. No need to worry about this for entities, as long as you use EntityRegistry, and not EntityList or "uniqueid" things. 4. Use the world random reference to use the world seed, but don't change it. Perform checks before generating. Limit TileEntity generation. Don't reinvent the wheel, Minecraft already has a lot of useable generators, especially for ores.
-
Crash report help
GameRegistry.registerWorldGenerator(eventmanager()); } private IWorldGenerator eventmanager() { // TODO Auto-generated method stub return null; } null isn't a valid answer. Try again.
-
[1.7.2] [Solved] GameRegistry.addShapelessRecipe() Don't work!
Blocks.brown_mushroom and Blocks.brown_mushroom_block are two different things. Make sure you are not confusing one for the other.
-
[1.7.2] [Solved] GameRegistry.addShapelessRecipe() Don't work!
If you don't care about the wood metadata, use the OreDictionary "wood" general item.
-
[1.7.2][Forge]Lang file problem, onCrafting player event problem
ItemCraftedEvent is a FML event, you need to register your listener to FMLCommonHandler bus.
-
[1.5.2]A mod tried to open a gui on the server without being a network mod
You can keep your GuiCharacter and ContainerCharacter. Just delete anything related to TileEntityCharacter.
-
[1.6.4] Detecting player's item's enchantments
You can also use the EnchantmentHelper class, for vanilla enchantments.
-
[1.5.2]A mod tried to open a gui on the server without being a network mod
I am not going to repeat myself, so i'll quote Draco: And add that question: what is TileEntityCharacter supposed to do, and why do you insist on locating it inside the player ?
-
[1.7.2] Unable to find any way to install forge on IntelliJ IDEA 13.0
If you are missing files or can't download them, gradle should tell you. See the log file in .gradle.
-
[1.7.2]textures don't work
Initialize and register in the FMLPreInit event, no sooner nor later.
-
Suggestion: KeyInputEvent() should fire on GuiScreens
It depends on the gui actually, since each GuiScreen has a flag to allow key input or not. Plus, you can use ClientTickEvent. It is run really close to the KeyInputEvent.
-
[1.7.2][SOLVED] Where is the Minecraft source code?
It should be in the librairies.
-
[1.7.2] .jar Mod Crashes
Making your project public would help, sure.
IPS spam blocked by CleanTalk.