#Is there any way to set a drop to a variable amount?

1 messages · Page 1 of 1 (latest)

storm stump
#

I want to make a bounty system where you drop a certain amount of money depending on the kill streak you had.

#

this is the full code

#

variables:
{totalkills::%player%} = 0
{kills::%player%} = 0
{killstreak::%player%} = 0
{bounty::%player%} = 8

on death:
if victim is player:
add 1 to {kills::%attacker%}
add 1 to {totalkills::%attacker%}
add 1 to {killstreak::%attacker%}
set {killstreak::%victim%} to 0
drop {bounty::%victim%} sunflower named "&e&ldram"
command /kills:
trigger:
send "You have &l&6%{totalkills::%player%}%&r total kills" to player
send "You have &l&6%{kills::%player%}%&r kills today" to player
send "You have a &l&6%{killstreak::%player%}%&r kill streak" to player
send "You have a &l&6%{killstreak::%player%}%&r bounty" to player
on join:
add {kills::%player%} to {totalkills::%player%}
set {kills::%player%} to 0
set {killstreak::%player%} to 0

obsidian terrace
#

U could set a nbt to the dropped item

#

Then on right click make it read it

#

And then give the money the nbt is

#

If I’m not wrong