Started by
gustavowizard123
on
Topic category: Help with Minecraft modding (Java Edition)
so i notice that now we got procedures for enchantments, but i cant find examples of how to use them, i´ve been trying to set up a 'magic' armor, that already start with enchantments, i tried to make them like potions, but no luck.. anybody can post examples here for us?
thanks in advance!
on item crafted global trigger =>
if(provided itemstack == your armor item){
Enchant itemstack with enchantment();
}
hum thats nice, thanks! that will work also when you grab the item from creative tab or just when you craft?
yeah that works thanks!
but that glow effect kind messes it around, its a futurisitic nano armor not a magical armor, is there a way to give the enchantment without the glow? like postions without particles?
no....
I don't think you can even with Java
cuz the way enchantments are hardcoded in MC
I've maked a ranged item and there isn't the item crafted trigger. What should I do?
use the on item crafted global trigger and check if provided item is your ranged item, then apply the enchantment
Hello,
since the new versions of mcreator there is no when item crafted in armors like helmet, chestplate, leggings and shoes.
So, there's only event tick. When I do this code:
on item crafted global trigger =>
if(provided itemstack == your armor item){
Enchant itemstack with enchantment();
}
using global trigger it works but, once I equip the armor it adds a lot of enhancements to it. as shown in the pic
https://imgur.com/a/gBRIicJ
How can I stop ticking or doing custom events?
any solutions?