How to check if gem touches water?

Started by Josiah_Ironclad on Wed, 09/01/2021 - 18:23

Topic category: Help with MCreator software

Last seen on 00:27, 18. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to check if gem touches water?
Mon, 09/06/2021 - 06:10 (edited)

I want to drop an item I made, and have something happen when the item touches a water source block.

Before settling on doing this through dropped items, I was trying to use a ranged item, which has a trigger for when the item hits a block. But a normal item doesn't have this.
Even if it did, I struggle to figure out how to determine if the block at the gem's current location is a water source. I looked through numerous posts in this forum, but no one ever seems to have gotten an answer. I've also been looking through the code blocks, but can't find anything of use.

Edited by Josiah_Ironclad on Mon, 09/06/2021 - 06:10
Last seen on 03:23, 24. Oct 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I have the coding but I am…
Wed, 09/01/2021 - 20:17

I have the coding but I am going to make it a little better so hold tight

Last seen on 21:45, 23. Oct 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I would so appreciate such…
Wed, 09/01/2021 - 22:13

I would so appreciate such tutorial. I try to make item un-destroyable, but without such detector I feel like it will be tough to even try reaching that goal.

Wishing us all good luck ^^

Last seen on 03:23, 24. Oct 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I couldn't get it to work…
Wed, 09/01/2021 - 22:36

I couldn't get it to work sorry but reply if it would be helpful to you to know how to code detecting if it touches the water because I got to that part

Last seen on 00:27, 18. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes please, it would. <3
Thu, 09/02/2021 - 12:37

Yes please, it would. <3

Last seen on 00:27, 18. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello? O.o
Sat, 09/04/2021 - 14:33

Hello? O.o

Last seen on 03:23, 24. Oct 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry I don't get…
Sat, 09/04/2021 - 23:13

Sorry I don't get notifications so I forget that I need to reply to things

Last seen on 03:23, 24. Oct 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
So for this the player needs…
Sat, 09/04/2021 - 23:21

So for this the player needs to be almost under water and I can't fix that but if that is ok then setup your item and then make a procedure for when item is dropped by player and then write the image in the following procedure

Last seen on 00:27, 18. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Unfortunately I already knew…
Sun, 09/05/2021 - 01:12

Unfortunately I already knew about doing it that way. But I need the player to be able to stand on dry land and chuck the item into water. :c

Thank  you for your help anyway though. <3

Last seen on 03:23, 24. Oct 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Your welcome
Sun, 09/05/2021 - 02:58

Your welcome

Last seen on 10:19, 23. Oct 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I haven't tested this, but I…
Wed, 09/29/2021 - 09:06

I haven't tested this, but I believe this may work?
My thought was that since an Item is an entity, and there is a trigger for an Item being dropped, this might work?

Procedure