#Spawn item display with function?

1 messages · Page 1 of 1 (latest)

winter gale
#

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

#

@void fox

twin breach
winter gale
#

what do you mean by that?

#

@twin breach

twin breach
#

spawn item display at player

#

then set the id

winter gale
#

wait what? so 1st I do: spawn item display at play. Then: set id of last spawned item display to "67"?

twin breach
#

set {_ID} to last spawned item display

winter gale
#

yeah, so how would I intergrate that with the code I have?

twin breach
#

just move the stuff a bit

winter gale
#

okay, I'l do that and get back to you!

#

Thank you for helping

twin breach
#

alr not much to help with cause im not at my pc rn

#

so anything will be when im available

winter gale
twin breach
winter gale
#

yeah, thank you again

river timberBOT
winter gale
river timberBOT
#

You successfully increased @twin breach's reputation. They now have 1 skoint

twin breach
#

w ty

twin breach
winter gale
#

lmao

twin breach
#

there might be smth on the docs

winter gale
#

yeah