Code:
function getbedhead(block : block, player : player) :: location:
if {_block} is beds:
set {_type} to {_block}'s type
if {_type} contains "head":
broadcast "head"
contains doesnt work (I think) any other ways to see this.
already thanks!