#zombie (slow, no follow range, goes up stairs and swims, only issue is drowning and becoming drowned)
#summon minecraft:zombie ~ ~ ~ {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,CanBreakDoors:0b,Tags:["player_char","giveID"],ArmorItems:[{},{},{},{id:"minecraft:stone_button",Count:1b,tag:{CustomModelData:1111117}}],ArmorDropChances:[0.085F,0.085F,0.085F,0.000F],ActiveEffects:[{Id:2b,Amplifier:200b,Duration:1999980,ShowParticles:0b},{Id:14b,Amplifier:1b,Duration:1999980,ShowParticles:0b}],Attributes:[{Name:generic.follow_range,Base:0},{Name:generic.movement_speed,Base:0},{Name:generic.attack_damage,Base:0},{Name:zombie.spawn_reinforcements,Base:0}]}

#armor stand (pretty ehh, can't climb stairs and has strange air motion)
#summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,NoGravity:1b,Invulnerable:1b,Tags:["player_char","giveID","has_arm"]}

#area_effect_cloud (good for grid-based)
#---for the purposes of this map, area effect cloud is probably our best option
#---unlike my other third-person map jam entries, Doze Off is grid based and motion isn't used at all
#---also immune to stuff like getting pushed by pistons which could potentially mis-align us with the grid
summon area_effect_cloud ~ ~ ~ {CustomNameVisible:false,NoGravity:1b,Invulnerable:1b,Tags:["refreshcloud","player_char","giveID","has_arm"],Age:-2147483648,Duration:-1,WaitTime:-2147483648}
#(months later) yeah i know there are markers now in 1.17 but I'M LAZY SHUT UP

scoreboard players operation @e[tag=giveID,limit=1] playerID = @e[limit=1,tag=mcOwner] playerID
scoreboard players set @e[tag=giveID,limit=1] moveState 2
team join nocollide @e[tag=giveID,limit=1]

tag @e[tag=giveID] remove giveID