#coustom head

1 messages · Page 1 of 1 (latest)

gaunt bridge
#

Guys i made a skript in which If u have 64 emerald block u get coustom player head i made it no error comming but i am not getting player head and accordingly emerald block are removing from my inv.

fickle dagger
#

easiest way is the manual way

#

get urself the head, hold it in ur hand then save it as variable

gaunt bridge
#

Means how ?

#

I save it as variable

unique eagle
#

meaning:
1️⃣ hold in your hand the item you want that code to give you
2️⃣ Make another command to set a global variable {some.var} to be the player's held item.
3️⃣ In the original code where you set a variable to be that item, instead you just use give player 1 of {some.var}

gaunt bridge
#

@unique eagle can u send the code how to do that.

unique eagle
#

you know how to make a command, so all you need to know is how to set {some.variable} to player's tool and you'll be fine.

gaunt bridge
unique eagle
#

I just realized your flaw: you don't know the difference between a local and global variable

#

if you want to use a variable outside of the code you used it in, it needs to be something other than a local variable. All local variables start with _

#

So, the variable that you used to set the item needs to have the _ removed and you'll be good.