{ "TranslationProperties": { "Name": "Water Detector" }, "Model": "Items/Tools/Staff_Crystal_Water.blockymodel", "Texture": "Items/Tools/Staff_Crystal_Water_Texture.png", "Icon": "Icons/ItemsGenerated/Staff_Crystal_Water.png", "Quality": "Uncommon", "ItemLevel": 10, "Interactions": { "Primary": { "Interactions": [ { "Type": "Selector", "Selector": { "Id": "Raycast", "Offset": { "Y": 1.6 }, "Distance": 20, "BlockTag": "Material=Fluid" }, "HitBlock": { "Interactions": [ { "Type": "BlockCondition", "Matchers": [ { "Block": { "Id": "Water_Source" } }, { "Block": { "Id": "Water" } } ], "Next": { "Type": "Serial", "Interactions": [ { "Type": "SendMessage", "Message": "Water detected at target location!" }, { "Type": "Simple", "Effects": { "WorldSoundEventId": "SFX_Water_Splash", "WorldParticles": [ { "SystemId": "Splash_Water", "PositionOffset": { "Y": 0.5 } } ] } } ] }, "Failed": { "Type": "SendMessage", "Message": "Fluid detected, but not water (lava/tar/poison?)" } } ] }, "MissBlock": { "Interactions": [ { "Type": "SendMessage", "Message": "No fluid detected within 20 blocks" } ] } } ] } } }