I want to do it like this: When a player looks to the item spawner, he sees the item, when he doesnt do that, the item respawns for hin (not for the server), how should I do that?
Oh thats bad, then I should check whether a players distance is lower than 10 and if he looks to the spawn (with checking whether the player's yaw is equal to an atan2 result), isnt there a getViewers() method which can be used on position, so I can check whether a player looks at the item spawner?