#How to make a withdraw command

1 messages · Page 1 of 1 (latest)

wraith mauve
#

this is my code currently :

`on death:
if victim is a player:
if player is attacker:
give 1 echo shard of curse of vanishing named "Fragment" with lore "Right Click This For Powerful Abilities" to attacker

on load:
set {positive-effects::*} to strength or swiftness or haste or health boost or fire resistance or water breathing or hero of the village and luck

on death:
set {_effect} to random element out of {positive-effects::*}
remove {_effect} from victim

on right click with echo shard:
remove 1 echo shard named "Fragment" from player's inventory
set {_effect} to random element out of {positive-effects::*}
apply {_effect} to player for 99999 seconds
if player's active potion effects does not contain {_effect}:`

question : how do u make it so when u do /withdraw it gives u the same fragment?

robust vine
#

on line 7, change or to and, otherwise the list will only be one effect

#

how to make the command? easy: You know how to make a command, right?

#

also when a player dies, ALL of their potion effects are gone, so your third section (the second on death section) is pointless

#
command test:
  trigger:
    your give code here```
mystic plinth
#

What happened to your other post?

#

Why did you create a new one?