Hi, I've been working on my first mod, and I've found some great tutorials out there for modding using Modloader for 1.1. However, I can't find one that talks about how to
1) edit block properties, such as making leaves drop sticks, or renaming dirt to "brown ground stuff";
2) remove or override existing recipes; and
3) do that without editing the original classes themselves, if possible.
Anybody know how to do that, or where to look for a good tutorial on that? Any help will get reputation and a shout out (and link to your mod page) on my mod, when I finish it of course.
You can rename blocks but you cant change what they drop without changing them, same with chaning tool effectiveness.
Well i say that you can change the behavor without editing them, you can you just need to use reflection but i wouldnt sugest that unless you are very familiar with the subject.
You can rename blocks but you cant change what they drop without changing them, same with chaning tool effectiveness.
Well i say that you can change the behavor without editing them, you can you just need to use reflection but i wouldnt sugest that unless you are very familiar with the subject.
The striked text isn't true. You can use the block array inside of Block.class to override and replace blocks, same with items, biomes, anything
If it wasn't for the arrays, what would we do about new biomes. Etc.
Its fine to add things to arrays but there is no point in avoiding editing a base class just to make it so the class is never used by replacing it in the array, in fact i would say its far worse as you have no idea that the mod is overriding the class like you do when you just edit it.
Its fine to add things to arrays but there is no point in avoiding editing a base class just to make it so the class is never used by replacing it in the array, in fact i would say its far worse as you have no idea that the mod is overriding the class like you do when you just edit it.
You are wrong, if you edit base clases, your mod instantly turns incompatible with any other mc versions. That is something you should avoid, you dont wanna have to compile your mod in 10 enviroments, not worth it
You are wrong, if you edit base clases, your mod instantly turns incompatible with any other mc versions. That is something you should avoid, you dont wanna have to compile your mod in 10 enviroments, not worth it
Don't bring nearly 2 year old threads back, it results in a lot of annoyance and can start a flame war.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
1) edit block properties, such as making leaves drop sticks, or renaming dirt to "brown ground stuff";
2) remove or override existing recipes; and
3) do that without editing the original classes themselves, if possible.
Anybody know how to do that, or where to look for a good tutorial on that? Any help will get reputation and a shout out (and link to your mod page) on my mod, when I finish it of course.
Thanks!
Yeah, that was the conclusion I was coming to. (Sigh). Well, it looks like I'll be editing base classes. Yippee...
Any idea on editing block properties, like adding drops or changing tool effectiveness?
You can rename blocks but you cant change what they drop without changing them, same with chaning tool effectiveness.
Well i say that you can change the behavor without editing them, you can you just need to use reflection but i wouldnt sugest that unless you are very familiar with the subject.
The striked text isn't true. You can use the block array inside of Block.class to override and replace blocks, same with items, biomes, anything
You can set the name using modloader if you have to and replacing blocks isnt the best idea its as bad as editing the base class.
If it wasn't for the arrays, what would we do about new biomes. Etc.
Its fine to add things to arrays but there is no point in avoiding editing a base class just to make it so the class is never used by replacing it in the array, in fact i would say its far worse as you have no idea that the mod is overriding the class like you do when you just edit it.
You are wrong, if you edit base clases, your mod instantly turns incompatible with any other mc versions. That is something you should avoid, you dont wanna have to compile your mod in 10 enviroments, not worth it
Don't bring nearly 2 year old threads back, it results in a lot of annoyance and can start a flame war.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!