#Give item on player death RESOLVED

1 messages · Page 1 of 1 (latest)

silk silo
#

Hi, I'm trying to update Foxy's Player head pack and I'm getting syntax errors in the log for the function commands. Is anyone able to help? I've looked on the wiki and it says the syntax changed at 1.19.50 but I'm unsure what needs to be changed or added for this case.

function

give @s[name="djharrybo84"]fph:player_head_item_0_djharrybo84

#

The log error

#

[Commands][warning]-Error on line 1: command failed to parse with error 'Syntax error: Unexpected "": at "jharrybo84>><<"'

#

[Commands][warning]-Error on line 1: command failed to parse with error 'Syntax error: Unexpected "fph:player_head_item_0_djharrybo84": at "rrybo84"] >>fph:player_head_item_0_djharrybo84<<"'

worldly scarab
#

is "fph:player_head_item_0_djharrybo84" the name of the item? also idk if it matters but you should have a space after brackets

fallen jewel
#

thats possible vanilla ;-;

#

Just do like /tag @a add dead /tag @e remove dead /tag @a[tag=dead] add giveItem /give @a[tag=giveItem] fph:player_head_item_0_djharrybo84 /tag @a[tag=giveItem] remove giveItem

#

or if its just the give being a hassle do /give @s[name="djharrybo84"] fph:player_head_item_0_djharrybo84 or its /give @s[name="djharrybo84"] "fph:player_head_item_0_djharrybp84"

silk silo
#

Resolved thanks guys