[HELP] How do I make a block enchanted?

Started by Scompy on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jul 2022
Points:
402

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
[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!

Active 1 year ago
Joined Jun 2022
Points:
422

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 27
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.