Armor 'Born' With Enchantment

Started by gustavowizard123 on

Topic category: Help with modding (Java Edition)

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Armor 'Born' With Enchantment

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!

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on item crafted global…
Fri, 07/24/2020 - 00:04

on item crafted global trigger => 

if(provided itemstack == your armor item){

    Enchant itemstack with enchantment();

}

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hum thats nice, thanks! that…
Fri, 07/24/2020 - 00:37

hum thats nice, thanks! that will work also when you grab the item from creative tab or just when you craft?

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah that works thanks! but…
Fri, 07/24/2020 - 02:19

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?

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no.... I don't think you can…
Fri, 07/24/2020 - 10:37

no....

I don't think you can even with Java

cuz the way enchantments are hardcoded in MC

Last seen on 12:14, 12. Apr 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've maked a ranged item and…
Fri, 07/31/2020 - 15:19

I've maked a ranged item and there isn't the item crafted trigger. What should I do?

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use the on item crafted…
Sat, 08/01/2020 - 06:55

use the on item crafted global trigger and check if provided item is your ranged item, then apply the enchantment

Last seen on 20:57, 20. Jan 2022
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello,  since the new…
Wed, 01/19/2022 - 19:15

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?