What I need is IF player has X item in inventory THEN player takes damage. It can be plague damage, hunger damage, thirst damage, drowning damage but they need to take damage. Obviously if player no longer has X in inventory then the damage stops.
If someone could help I could greatly appreciate it.