Hello, I just switch over from Modloader a few days ago and I'm getting this error when I want a custom block to drop a custom item. I can't seem to fix it myself unfortunately.
Here's the error I've been getting: Change modifier of 'ItemID' to 'static'
I've tried that, but the block still doesn't drop my item. Any ideas why this is happening?
Sorry for wasting your time if this is a really simple fix.
Hello, I just switch over from Modloader a few days ago and I'm getting this error when I want a custom block to drop a custom item. I can't seem to fix it myself unfortunately.
Here's the error I've been getting: Change modifier of 'ItemID' to 'static'
I've tried that, but the block still doesn't drop my item. Any ideas why this is happening?
Sorry for wasting your time if this is a really simple fix.
Here's the error I've been getting: Change modifier of 'ItemID' to 'static'
I've tried that, but the block still doesn't drop my item. Any ideas why this is happening?
Sorry for wasting your time if this is a really simple fix.
Edit: I fixed it! Finally!
You kinda have to show us your code first.
My block code:
Why in the world are you trying to call the itemID of a class?
You have to get it from a specific item Object.
Oh... I've been following a tutorial series on YouTube for Forge and yea....
Do you mind a simple/stupid question?
Just ask it....
How do I find the specific object I want? I can't remember off the top of my head atm...
Whatever file you did public static final Item itemName = new Item(...)...; in, just call ClassName.itemName. That retrieves the object.
Oh! That makes sense, thank you
Code
I fixed it, those semicolons man...