I know that the 1.8.0 MCreator suggestions are closed, but I just want what I'm going to offer either in MCreator version 1.8.0 or in the next version, 1.8.1.
Hello,
I'd like to see the possibility of creating new enchantments that do not exist, because I want to make a mod with new enchantments, but I can just add books with enchantments that already exist as Protection, Sharpness, etc.
I would like to have the opportunity to choose its rarity, either common, unusual, rare or really rare. There is also the possibility of choosing the minimum and maximum level that the player must have to be able to obtain the enchantment, as well as all that is necessary in order to have an enchantment, like a procedure so that the enchantment can do what we want.
I will try to draw you a picture, so that I can really show you what I mean, and make my explanations much clearer and more precise.
I hope I can see one day this feature that I think is missing a lot MCreator.
Goldorion
Issue comments
Well, the base enchantment could me made like anything else -- you enter in its name, weight, max level, whether or not it's single level, only for books, only treasure, what items it can be used on, etc. -- and then you can define event procedures for it depending on which items it can be used on. (Ex. “On mob wearing armour with enchantment attacked” or “On mob atracked using item”) And the enchantment level would be a dependency in the procedures, thus allowing people to customise depending on levels.
If you wanted to go beyond that, you could add ways to change the stats of the items they're applied to. I.e. Efficiency, damage level, attack speed, potion effects when held, etc. And also a way to add custom items to the list of enchantable items.
I've found a website wich say how to create custom enchantments with code, so can you just look it, and may be check to create a Enchantment Element please ?
This is the web site : https://suppergerrie2.com/minecraft-1-12-modding-with-forge-14-custom-enchantments/
Hoping that now you will add this feature.
I found a mod in 1.14.4 adding custom enchantments, so maybe you can check his code to make the code of enchantments. You have code for Forge 1.12.2 and 1.14.4. https://github.com/TinyModularThings/UniqueEnchantments
I have an idea!
First, you would set a category: General, Tool, Melee, Ranged, or Armor. These are self explanatory
You could set a procedure to execute when you use the tool or weapon, or take damage with the armor, etc. It would have a Level dependency passed to it
You could also set existing attribute modifiers for the item, in addition to effectiveness(tool speed, armor protection, weapon damage, etc), and durability usage.
But even just an execute procedure on usage function would be great!
You commented on this topic, so I was expecting you to say
This feature is going to be added in 2020.3. Closing this ticket now.
but you didn't D:
jk,jk, if you are giving a ETA for something you are probably going to get it done on time, because you never give ETAs and the last time you did, you said 1.15 support is coming in 2020.3, so this time you are hopefully also right
Example project for this in 2020.3 by Max094Reikeb, big thanks to him: https://github.com/Max094Reikeb/EnchantmentSupport
For custom coders, here is another example (for registering enchantments I used a lib though ):
https://github.com/CrispyChips6660/AnotherEnchantMod/tree/forge-1.15
By forge design, implementing this is pretty hard in MCreator since Minecraft only provides one method that is called when enchanted items hit mobs with melee. All other advanced functionalities can be made by checking for enchantments on items via EnchantmentHelper (I think this is already in MCreator as a check for enchantment procedure block) and global triggers.
crispy_chips1234: big thanks for your research and work on this topic!
I really LOVE the idea for custom enchantments. But there's one bad and inevitable thing - literally every new posted mod on the website will be like: ExTrA EnChAnTs, MoRe EnChAnTmEnTs etc. It's a thing I always waited for but now idk it's better to implement custom enchantments in MCreator or just learn Java a bit.
I just thought of something, can custom enchantment recipes be added too? (probably not, I'm just typing this just in case)
Because that would be a way of getting it more "naturally" like vanilla enchants.
You could choose how much xp you need, how much lapis, and the x% of it appearing.
I found that to code enchantments in forge for 1.15.2
https://github.com/MrCrayfish/Enchantable/tree/1.15.X/src/main/java/com/mrcrayfish/enchantable/enchantment
Enchantments are not items, or wdym?
Vanilla enchantments for tools are inside the "Tools" tab, and the enchants for the armors/weapons are inside the "combat" tab. So, I think he asked to be able to put the book (the enchanted books) inside the creative tab we want.
Everyone here's a Video on how to do it:
wait isnt this a feature already? when you create a custom mod element with an actual model (blocks, items, etc.) there is a dropdown to select a creative tab.... cant you just use modified code with enchantment books?
no, this is not how minecraft enchantments are registered
Can we do anything or its just there for now?
It is 100% functional. Check https://mcreator.net/wiki/how-make-enchantment
you...already can?
That's literally what we are just talking about? XD
We have discussed this a few times on the website and came to the conclusion that such a feature is too complicated to be implemented at the moment. If you have a clear idea of the workflow on how enhancement would be made and code or at least references to back up the doability of such thing, we might consider implementing this in later versions.