set name of player's tool to {_name}が動かない

on tool change:
    wait 1 tick
    if player is op:
        stop if player is not sneaking
    type of player's tool is dye
    getAmmoID(player's tool) is set
    set {_newName} to uncolored getAmmoID(player's tool)
    set {_cartridge} to getAmmoCartridge(player's tool)
    replace all {_cartridge} in {_newName} with "§e§l§n%{_cartridge}%§r§f"
    replace all "&" in {_newName} with "§"
    name of player's tool is not {_newName}
    send "setAmmoName:%{_newName}%"
    set name of player's tool to "%{_newName}%"




set name of player's tool to {_newName}

{_newName}
set name of player's tool to "%{_newName}%"




set name of player's tool to "test %{_newName}%"

set name of player's tool to "-"

image.png
image.png
image.png
Was this page helpful?