You are viewing our Forum Archives. To view or take place in current topics click here.
Need Basic Help with Making a Minecraft Forge Mod
Posted:

Need Basic Help with Making a Minecraft Forge ModPosted:

iLogey
  • Wise One
Status: Offline
Joined: Oct 21, 201311Year Member
Posts: 554
Reputation Power: 32
Status: Offline
Joined: Oct 21, 201311Year Member
Posts: 554
Reputation Power: 32
I'm not sure whether I should post this here or in the programming forum...
But since it's forge, something for Minecraft, I figured I'd post it here.

I've created a ruby ore and I'm trying to figure out how to make it drop a custom item (in this case, ruby).

I also want to try and figure out how to make it so that you need at least an iron pickaxe to mine it.

Here's the code I have so far:
[ Register or Signin to view external links. ]

Any help is much appreciated! Thank you!

Edit: Just to test something I found when searching on the internet, I found how to make it drop coal.
I did this:
[ Register or Signin to view external links. ]
But it still won't drop coal.
It just drops the ruby ore.

Edit: To make it drop rubies, I tried to do this:
[ Register or Signin to view external links. ]
but on the line:
return ilogeymod.items.RubyItem.itemID;
it gives me the error:
Cannot make a static reference to the non-static field ilogeymod.items.RubyItem.itemID

What does this mean and how can I fix it?
#2. Posted:
iLogey
  • Wise One
Status: Offline
Joined: Oct 21, 201311Year Member
Posts: 554
Reputation Power: 32
Status: Offline
Joined: Oct 21, 201311Year Member
Posts: 554
Reputation Power: 32
Can someone help me with this please?

I'm still stuck with this.
I can make it drop vanilla items now, but I can't figure out how to make it drop custom items.

Edit: this is the code I added to make it drop a vanilla item:
[ Register or Signin to view external links. ]

Edit: I've fixed it!
All I had to do was add this line to my main java file:
[ Register or Signin to view external links. ]
Then added this line to the ore's java file:
[ Register or Signin to view external links. ]

I'm now getting an error with the tools. I'm trying to figure out what's wrong with it.
If I can't, I'll probably post in the programming forum instead of the Minecraft forum.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.