Hello i am making a mod that adds items that when they are in your tool bar it does something like give the player a potion effect. I could not find any thing like it so i was wondering if you know how to do something like that?
With your drop event tutorial Eclipse gives errors at "source" (event.source.getdamage) and twice at "entityLiving"
public static double rand;
@ForgeSubscribe
public void onEntityDrop(ExtraCraftDropsEvent event) {
if (event.source.getDamageType().equals("player")) {
rand = Math.random();
if (event.entityLiving instanceof EntitySquid) {
//The integer at the end relates to how many potato will be dropped.
if (rand < 1.00d){
//The integer at the end relates to how many potato will be dropped.
event.entityLiving.dropItem(Item.diamond.itemID, 1);
So I've downloaded Forge for 1.5.1 (http://files.minecra...1-7.7.1.611.zip). Inside the zip is a single folder "forge" that contains the necessary files.
When I run the install.cmd batch from within "forge" I get this error:
================ Forge ModLoader Setup Start ===================
[Errno socket error] [Errno 10035] A non-blocking socket operation could not be
completed immediately
Download of C:\Users\Jimmy\Desktop\other\Minecraft\forge_1.5.1\forge\fml\mcp7.44
.zip failed, download it manually from 'http://files.minecraftforge.net/mcpmirro
r/mcp744.zip' to 'C:\Users\Jimmy\Desktop\other\Minecraft\forge_1.5.1\forge\fml\m
cp7.44.zip'
Press any key to continue . . .
However if I move all of the files outside of "forge" and run install.cmd I get this error:
================ Forge ModLoader Setup Start ===================
MCP Detected already, not downloading
Setting up MCP
Restoring commands.py backup
patching file commands.py
Hunk #3 succeeded at 792 (offset -8 lines).
Hunk #5 succeeded at 1071 (offset -8 lines).
Hunk #7 succeeded at 1206 (offset -8 lines).
Hunk #9 succeeded at 1436 (offset -8 lines).
Hunk #11 succeeded at 1547 (offset -11 lines).
Hunk #13 succeeded at 1625 (offset -11 lines).
Commands patch applied successfully
Copying FML conf
Creating re-packaged srg
Creating re-packaged exc
Creating re-packaged MCP patches
Download argo-3.2-src.jar failed, download manually from http://files.minecraftf
orge.net/fmllibs/argo-3.2-src.jar or http://files.minecraftforge.net/fmllibs/fml
_libs_dev15.zip and place in mcp/lib
Download guava-14.0-rc3.jar failed, download manually from http://files.minecraf
tforge.net/fmllibs/guava-14.0-rc3.jar or http://files.minecraftforge.net/fmllibs
/fml_libs_dev15.zip and place in mcp/lib
Download asm-4.1.tar.gz failed, download manually from http://files.minecraftfor
ge.net/fmllibs/asm-4.1.tar.gz or http://files.minecraftforge.net/fmllibs/fml_lib
s_dev15.zip and place in mcp/lib
Download asm-debug-all-4.1.jar failed, download manually from http://files.minec
raftforge.net/fmllibs/asm-debug-all-4.1.jar or http://files.minecraftforge.net/f
mllibs/fml_libs_dev15.zip and place in mcp/lib
Download bcprov-debug-jdk15on-148.jar failed, download manually from http://file
s.minecraftforge.net/fmllibs/bcprov-debug-jdk15on-148.jar or http://files.minecr
aftforge.net/fmllibs/fml_libs_dev15.zip and place in mcp/lib
Download bcprov-jdk15on-148-src.zip failed, download manually from http://files.
minecraftforge.net/fmllibs/bcprov-jdk15on-148-src.zip or http://files.minecraftf
orge.net/fmllibs/fml_libs_dev15.zip and place in mcp/lib
Download guava-14.0-rc3-sources.jar failed, download manually from http://files.
minecraftforge.net/fmllibs/guava-14.0-rc3-sources.jar or http://files.minecraftf
orge.net/fmllibs/fml_libs_dev15.zip and place in mcp/lib
Press any key to continue . . .
Can anyone help? Is a firewall or something blocking socket operations???
All help/suggestions greatly appreciated!
This is because you used the wrong imports.
not that hard however I wont be making tutorials again for a while.
it is recompiling however with forge you dont need server md5 so mcp warns its not there but recompiled it anyhow.
Farewell everyone o/
and i have
.setCreativeTab(Mymod.mytab);
I dont know whats the problem please help
Try YourMod.YourItem.ItemID
Farewell everyone o/
Not the Icon.I can't add anything
great tutorials!!!!
Farewell everyone o/
Slabs- Bring easily place able upside down slabs back to minecraft!
All in good space.
Farewell everyone o/
thanks in advance
Farewell everyone o/
So I've downloaded Forge for 1.5.1 (http://files.minecra...1-7.7.1.611.zip). Inside the zip is a single folder "forge" that contains the necessary files.
When I run the install.cmd batch from within "forge" I get this error:
However if I move all of the files outside of "forge" and run install.cmd I get this error:
Can anyone help? Is a firewall or something blocking socket operations???
All help/suggestions greatly appreciated!
Get BOUNCE @ www.java-gaming.org/topics/bounce-2d-platformer-w-destructable-terrain/27023/view