Started by
Scompy
on
Topic category: Help with Minecraft modding (Java Edition)
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!
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.