Hello, fellow scripters,
I'm new here, so my name is Dabriel (Tyler), and I'm looking for a solution for this feature that I'm trying to create.
Simply, on pick up of emerald named "&aGem", I want to send a message to the player that picked the item up, and tell him the amount that he picked up. like:
I tried this,
But it just didn't work.
Is there any other way I could do this?
I'm new here, so my name is Dabriel (Tyler), and I'm looking for a solution for this feature that I'm trying to create.
Simply, on pick up of emerald named "&aGem", I want to send a message to the player that picked the item up, and tell him the amount that he picked up. like:
code_language.skript:
message "&r &a&l+%{pickedupamount}%G" #{pickedupamount} = The amount player picked up
I tried this,
code_language.skript:
on pick up of emerald:
if event-item is emerald named "&aGem":
set {_amount} to amount of event-item
message "&r &a&l+%{_amount}%G"
But it just didn't work.
Is there any other way I could do this?