How to add enchantment to sword without the shiny effect?

Started by Ali107 on Sat, 02/20/2021 - 23:14

Topic category: Help with modding (Java Edition)

Last seen on 11:27, 25. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to add enchantment to sword without the shiny effect?
Sat, 02/20/2021 - 23:14

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 04:28, 25. May 2022
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 11:27, 25. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 04:28, 25. May 2022
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.