Make Custom Entity Move Faster When in Water?

Started by Vexilotus on

Topic category: Help with modding (Java Edition)

Last seen on 06:12, 7. Aug 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make Custom Entity Move Faster When in Water?

Is there any way (by procedure or other means) to make a custom entity move faster when they're in water and also for a player to move faster in water when holding a certain item?

Last seen on 17:49, 25. Mar 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For the entity, you could…
Tue, 08/18/2020 - 12:12

For the entity, you could bind this procedure to the "on entity tick rate" trigger:

If (block at x, y, z) = (water)

give dolphin grace effect to the mob for 20 ticks

 

For the item, bind this procedure to the "on item tick in player hand":

Give speed effect to the mob for 20 ticks

 

To make it work with a vanilla item you should use a global trigger

Last seen on 06:12, 7. Aug 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much!
Wed, 08/19/2020 - 11:26

Thank you so much!

Last seen on 06:12, 7. Aug 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I understand what…
Wed, 08/19/2020 - 11:48

I think I understand what the procedure needs to look like, however, I'm having troubles find the "block at x, y, z" block and the one where i can insert water.

Last seen on 21:12, 25. Jul 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Get block at x y z" is…
Wed, 08/19/2020 - 23:32

"Get block at x y z" is second to bottom in the "block procedures" section (it is yellow). The block you can insert the water into is in the "minecraft components" section (the only yellow one). In "logic" you want the bottom block (also yellow) for comparing the other two.

Last seen on 06:12, 7. Aug 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you!
Fri, 08/21/2020 - 12:30

Thank you!

Last seen on 21:12, 25. Jul 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem :)
Fri, 08/21/2020 - 17:57

No problem :)

Last seen on 15:54, 5. Sep 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey guys, had a very similar…
Thu, 07/22/2021 - 12:38

Hey guys, had a very similar issue. How to make sure that after eating a certain food, the player receives buffs under water and debuffs on land, but make sure that the system constantly checks whether the player is on land or under water, and, depending on this, changes the effects for a certain period of time. How can this be done?