how do I make a block act like cobweb

Started by jeff29 on Fri, 12/18/2020 - 19:03

Topic category: Help with modding (Java Edition)

Last seen on 19:26, 18. Jan 2021
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how do I make a block act like cobweb
Fri, 12/18/2020 - 19:03

i want to make a block like cobwebs that when the player is in it they fall very slow like cobwebs can someone tell me how i can do this?

Last seen on 21:30, 27. Feb 2021
Joined Dec 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can do it like that: …
Sat, 12/19/2020 - 18:00

You can do it like that:

  1. Create your block
  2. Go to properties, find "Can walk through block?" and enable it
    • This way, you can be inside the block
  3. Go to triggers, find "When entity collides in the block" and click the plus to add a new procedure
    • This procedure triggers while you are inside the block
  4. Go to entity management, and choose "Set Event/target entity" in cobweb for one tick, and connect it to the default tile
    • This way, your entity (including the player) will be in a cobweb for one tick. It will work exactly like cobwebs

I've tried it, works for me.