getPlantTrigger

getPlantTrigger() → integer entity
Returns the entity that just entered the plant's zone and woke it up. Only meaningful during a plant awakening: returns -1 anywhere else. Same value as the first argument of the function passed to summon.

Returns the entity that just entered the plant's zone and woke it up. Only meaningful while a plant is waking up: returns -1 anywhere else. It is the same value as the first argument of the function passed to summon.

Parameters
Return