How to add enchantment to sword without the shiny effect?

Started by Ali107 on

Topic category: Help with Minecraft modding (Java Edition)

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.

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;
}

 

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

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.