How can i enchant a bed to give the person who sleeps on it a potion affect when they wake up?

Started by CreamyGhost25 on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i enchant a bed to give the person who sleeps on it a potion affect when they wake up?

I'm trying to make an enchantment for a bed, so that when you sleep on the bed, it gives you a potion affect. but when I place the bed down, it loses the enchantment. how can I fix this?