I am playing around with item display, but can't get it to spawn at a player with a function. Here's the code i've got.
`on right click with wooden pickaxe:
if player is in region "pic":
set {_ID} to last spawned item display
set {pp} to location of player
set pitch of {_ID} to 0
set yaw of {_ID} to 0
set item of {_ID} to wooden pickaxe
spawn {_ID} at {pp}
set teleport duration of {_ID} to 30 ticks
set transformation scale of {_ID} to vector(2.5, 2.5, 2.5)
teleport {_ID} to {BD}
send action bar "<#51BD63> &l✔ ᴘɪᴄᴋᴀxᴇ ᴘʟᴀᴄᴇᴅ"
play sound "minecraft:entity.experience_orb.pickup" with volume 1 to player
else:
play sound "minecraft:block.anvil.land" with volume 1 to player
send action bar "<#DE5454> &l✕ ᴍᴜꜱᴛ ʙᴇ ɪɴ ꜰᴀᴄᴛᴏʀʏ ᴛᴏ ᴘʟᴀᴄᴇ ᴘɪᴄᴋᴀxᴇ!" to player
command /BlockDebug:
trigger:
set {BD} to location of player's target block
send "%{BD}%" to player`
Dont mind the BlockDebug thing, it was for testing