Started by
Finemanederby
on
Topic category: Help with Minecraft modding (Java Edition)
Somebody PLEASE give me an in-depth tutorial on how to do this! I'v been trying at it for years!
Topic category: Help with Minecraft modding (Java Edition)
Somebody PLEASE give me an in-depth tutorial on how to do this! I'v been trying at it for years!
Use a custom loot table the only downside is that it has to be installed separately. This also lets you make it not drop a bone. There are generators for the tables
How do I do that
@brickmaster5000 can you teach me how to do this?
I will be honest, there is so much wrong with your code.
First of all, why is the name of your class in brackets? I mean, I get that most of MCreator users have never programmed in their life, but still, you could just quickly check like the first page of Java documentation or at least check how does the vanilla/MCreator generated code look.
Second, there is absolutely no reason why to create a new Random instance. Instead, use field "rand" in class World. You can get the World from field world" (in older versions "worldObj") from the entity you get from the event itself.
Speaking of versions, because in the log I can see MCreator 1.7.9, your target Minecraft version is 1.12.2 (unless you have changed it for some unknown reason in your Gradle settings). Why then are you importing cpw.mods package?!
This package has been replaced by a net.minecraftforge package.
The very last thing is that you are not even registering the event handler anywhere, but that does not matter as long as you do not fix the previously mentioned.
So once more:
Could you please fix the code for me and send it here?
Google Minecraft tools loot table generator. Mess around with that. Use a dummy item for the new item and just replace it at the end