minecraft version: 1.16
skript version: latest idk
problem:
#summons a stray to fight for you (temporarily)
on right click:
if player is holding stick named "spawn"
spawn a stray at the target block's location
wait a tick
clear all pathfinder goals of last spawned entity
add pathfinder goal target nearest zombie to last spawned entity <--------- problems
add pathfinder goal target nearest skeleton to last spawned entity <-----
add pathfinder goal target nearest spider to last spawned entity <------
error message: pathfinder goal target nearest (entitiy name)' can't be added to an entity because the former is neither an item type, an inventory nor an experiance point.
the spaces do not show up here
skript version: latest idk
problem:
#summons a stray to fight for you (temporarily)
on right click:
if player is holding stick named "spawn"
spawn a stray at the target block's location
wait a tick
clear all pathfinder goals of last spawned entity
add pathfinder goal target nearest zombie to last spawned entity <--------- problems
add pathfinder goal target nearest skeleton to last spawned entity <-----
add pathfinder goal target nearest spider to last spawned entity <------
error message: pathfinder goal target nearest (entitiy name)' can't be added to an entity because the former is neither an item type, an inventory nor an experiance point.
the spaces do not show up here