We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

11

A way to detect if the player is wet (underwater or in the rain)

2 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    This is possible by summoning an armor stand at their position then /spreadplayers as it always puts you on top of all blocks (Rain can only happen if you are on the top layer already.) Then execute them to execute all armorstands within 1 block to set a Redstone block at your desired position then have them to to the closest armor stand. Meanwhile have a timer going for mabye four ticks just enough for you to be sure the process is done then attach an and gate with the timer and the desired position from before. Then you kill the armorstand and you have an ITPIRD ( Is This Player In Rain Detector). Wow that's a long one.

    Hope you have a good day! 

     

    3dit:

    I forgot to mention that you can then attach another and gate and a command block that checks what block they are in and make it water.

  • 0
    Registered User commented
    Comment actions Permalink

    Possible to detect if an entity is in rain, but its actually really hard to detect water since so many blocks are waterloggable. Until mojang makes a full-on fluid check, there's not much you can do other than check for water, water-filled blocks, and the waterlogged state of any waterloggable block. Would be super useful to have a simpler way!