so Im making an rpg/dungeons server and I wanted to make a weapon that shoots diamond blocks using armor stands. but this is the thing that I get after using my code.
How do I make the diamond blocks move with the armor stands?
thanks.
[doublepost=1612806280,1612806143][/doublepost]in case the screenshot doesn't show, its just a floating diamond block. it doesn't follow the armor stand.
also just so u know this is my script
on right click:
player is holding dirt:
spawn armor stand at location in front of player's eyes
add "{Invisible:1b,NoGravity:1b}" to nbt of last spawned armor stand
set helmet of last spawned armor stand to diamond block
thrust the spawned armor stand in direction of the player with force 2
thanks.
[doublepost=1612806280,1612806143][/doublepost]in case the screenshot doesn't show, its just a floating diamond block. it doesn't follow the armor stand.
also just so u know this is my script
on right click:
player is holding dirt:
spawn armor stand at location in front of player's eyes
add "{Invisible:1b,NoGravity:1b}" to nbt of last spawned armor stand
set helmet of last spawned armor stand to diamond block
thrust the spawned armor stand in direction of the player with force 2