How to add enchantment to sword without the shiny effect?

Started by Ali107 on

Topic category: Help with modding (Java Edition)

Last seen on 17:14, 28. Mar 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add enchantment to sword without the shiny effect?

I want my custom sword to have sweeping edge without showing the shiny effect. Also, how do I make it not show in the sword's description.

Last seen on 19:25, 27. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found an code that can…
Mon, 02/22/2021 - 07:18

I found an code that can work, but you need to lock your Item to work.

@Override public boolean hasEffect(ItemStack stack) {
    return false;
}

 

Last seen on 17:14, 28. Mar 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It doesn't work, I get this…
Tue, 02/23/2021 - 08:24

It doesn't work, I get this error

error: method does not override or implement a method from a supertype error: method does not override or implement a method from a supertype

Last seen on 19:25, 27. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I said that the code can…
Tue, 02/23/2021 - 09:00

I said that the code can work. To make the Item not has the glint Effect while enchanted is currently impossible without coding.