
coolboy4531
Members-
Content Count
584 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Posts posted by coolboy4531
-
-
-
There is another post going on about the exact same question.
If you don't want to bother looking at it - you should use GuiOpenEvent.
Check if the event's GUI is an instance of GuiMainMenu, cancel it - and override it with your own version of the main-menu.
-
-
-
-
If you search on Google, you will see that this question has been asked 9000+ times on the Forge (Modder Support) forums already.
-
-
@Casual did u looked at the Code ? I have registered them already my only problem is the Smelting i used the same structure as in 1.6.2
ffdsaklfj. How do you not understand what he's trying to tell you to do?
You are suppose to "register" your items BEFORE you call your addSmelting() method, or the game will not recognize the items because they are even created yet!
-
You've accidentally added some breakpoints to Eclipse. Try removing them.
How to remove (disable) ALL breakpoints from Eclipse:
Look for Run. Click on: > Remove all Breakpoints --- You can also press Skip all Breakpoints ---
How to remove SOME breakpoints from Eclipse:
Look for Window. Hover over Show View. Click on Other... Open the Folder named "Debug" Click on Breakpoints. Uncheck the breakpoints OR right-click and delete them.
-
By coremod, he most likely means to use ASM.
If you are unfamiliar to ASM, I suggest you not to try it.
More Info:
-
Try using GuiOpenEvent and cancel the gui for the main menu (GuiMainMenu), override it with your own main menu gui.
-
Can we see the log when Forge (Minecraft) runs?
Then we can see what error springs up when it tries to load your texture.
-
@Recipes
I replied to it in another post, wasn't sure if it was yours, or someone elses but you'll find it on the Modder Support Forum (this forum)
-
-
No no no. Don't do that.
You can get the list of the recipes, and remove them.
First what you need to do is get the list of <IRecipe> which is CraftingManager's instance of .getRecipeList().
Do a loop, for the size of the recipe list, and get the recipe during each loop.
Do an (if) statement to check if its an instance of ShapedRecipes/ShapelessRecipes.
Check if the itemstack is the same as the recipe's output, and if they are, remove them.
-
You could save a data value (seperately) in LivingUpdateEvent, then if the data value is correct you can use the overlay event.
-
You could use that code or...
player.setPositionAndUpdate(//fields)
You can get a random value (Random.class), and place it in the fields for teleportation like an enderman.
-
What do you mean by calling it?
You can put that in your main class and use that Enum for registration.
-
You are suppose to use:
BlockEvent.BreakEvent
First of all, learn basic Java - first.
"event" is the event not the block/thing you are breaking.
You need to get the [block] you are breaking, and add an achievement if its breaks.
-
-
Because I'm using my own Enum for the tools.. I can't extend ItemSword because it would give me an error
You can extend ItemSword, even if you want to use your own enum.
Forge has there own ToolMaterial Enum handler for tools.
Example:
static ToolMaterial NAME = EnumHelper.addToolMaterial("NAME", int par1, int par2, float par3, float par4, int par5);
par1- Harvest Level
par2- Max Uses
par3- Efficiency on Proper Material
par4- Damage VS Entity
par5- Enchantability
-
-
Caused by: java.lang.IllegalArgumentException: Duplicate enchantment id! at net.minecraft.enchantment.Enchantment.<init>(Enchantment.java:113) at mods.XW.tools.EnchantmentweaponForge.<init>(EnchantmentweaponForge.java:12) at mods.XW.tools.XWTools.<clinit>(XWTools.java:56)
That is the error.
One of your mods or (a mod) has compatibility issues with enchantment ids.
It's happening wiht the XWTools mod.
-
[1.7.2] Simple Question: How to make a crafting Recipe for Self Made Items?
in Modder Support
Posted
You need to get the instance of your item.