name tag item - can i cancel event?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Barbarx

Active Member
Feb 25, 2017
71
5
0
Hello. i using my own mounts and i need to fix this: when i rename mount they can kill him etc.
and i want to cancel event on nametag
My tries:
code_language.skript:
on right click:
    if player's tool is name tag:
        if name of event-entity is "&cPomaly kun":
            cancel event
on right click:
    if player's tool is name tag:
        if name of clicked entity is "&cPomaly kun":
            cancel event
on right click with name tag:
    if name of clicked entity is "&cPomaly kun":
        cancel event
 
code_language.skript:
on rightclick holding a name tag:
    if name of target entity is "&cPomaly kun":
        cancel event
 
You can work around that:
code_language.skript:
on rightclick holding a name tag:
    if name of target entity is "&cPomaly kun":
        cancel the event
        wait 1 tick
        set name of target entity to "&cPomaly kun"
 
Hm this i tried too another time :emoji_grinning: and dont work. I think I cant use cancel event on right click with name tag. :emoji_frowning:
[doublepost=1491506776,1491506744][/doublepost]
Hm this i tried too another time :emoji_grinning: and dont work. I think I cant use cancel event on right click with name tag. :emoji_frowning:
And this code dont work too
 
code_language.skript:
on right click:
    if player's tool is name tag:
        if uncolored name of event-entity is "Pomaly kun":
            cancel event
on right click:
    if player's tool is name tag:
        if uncolored name of clicked entity is "Pomaly kun":
            cancel event
on right click with name tag:
    if uncolored name of clicked entity is "Pomaly kun":
        cancel event
 
code_language.skript:
on right click:
    if player's tool is name tag:
        if uncolored name of event-entity is "Pomaly kun":
            cancel event
on right click:
    if player's tool is name tag:
        if uncolored name of clicked entity is "Pomaly kun":
            cancel event
on right click with name tag:
    if uncolored name of clicked entity is "Pomaly kun":
        cancel event
Still dont work i tried:
code_language.skript:
on right click with name tag:
    cancel event
so i think no chance to do this.
[doublepost=1491510654,1491507257][/doublepost]
Pretty strange. @Barbarx Who is the entity?
horse
 
Still dont work i tried:
code_language.skript:
on right click with name tag:
    cancel event
so i think no chance to do this.
[doublepost=1491510654,1491507257][/doublepost]
horse
code_language.skript:
on rightclick
    if palyer's tool is name tag:
        if uncolored name of clicked entity is "Pomaly kun":
            set {_n} to name of clicked entity
            wait a ticks
            set name of clicked entity to "%colored {_n}%"
            give player 1 of name tag


Maybe try this.
 
code_language.skript:
on rightclick
    if palyer's tool is name tag:
        if uncolored name of clicked entity is "Pomaly kun":
            set {_n} to name of clicked entity
            wait a ticks
            set name of clicked entity to "%colored {_n}%"
            give player 1 of name tag


Maybe try this.
Dont work. but ty for try. :emoji_frowning:
 
Status
Not open for further replies.