I am trying to make a Dead by daylight map in Minecraft. When a player hits something they should get slowness and blindness for 5 seconds, but I don't know the commands necessary to do this.

Can someone help me please?

  • What do you mean by "hit something"? As in, collide with a block or punch something?
    – Corsaka
    Sep 17, 2021 at 0:21
  • like hit with a weapon.
    – davis
    Sep 17, 2021 at 12:06

1 Answer 1


you can use this code builder command Example it might take a little time to duplicating this for every item and weapon you need.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .