[HELP] How do I make a block enchanted?

Started by Scompy on

Topic category: Help with modding (Java Edition)

Last seen on 12:56, 21. Jul 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[HELP] How do I make a block enchanted?

So I want to make an enchanted pumpkin for a farming mod I'm making, but because I cant make a good texture for it I want to make it have the enchanted effect. like for e.g the enchanted golden apple. is they ANY WAY to do this. I know there are other posts about his but they're outdated or just lead me to the official how to make a new block page (which doesn't help cause there's no mention of this). All help is appreciated!

Last seen on 12:25, 31. Jan 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! There's a workaround…
Tue, 07/12/2022 - 11:01

Hello! There's a workaround to the thing you are trying to accomplish.

You can give yourself a pumpkin with the Infinity enchantment (which is a bow enchantment, which makes it useless and it only glows) AND on top of that, you can hide the enchantments with a command

 

Here's the command: /give @p pumpkin{HideFlags:1,Enchantments:[{id:"minecraft:infinity",lvl:1s}]} 1

 

Don't worry, the enchantment won't affect the pumpkin in the slightest, since it's not a ranged item's ammo or anything like that.