Jump to content

can some1 fix pls


thijsboefjes09

Recommended Posts

on right click:
    if player's tool is diamond sword:
        if player's inventory contains book with lore "&7Poison":
            add "&7Poison" to lore of player's tool
            If lore of the player's tool contains "&7Poison":
                remove "&7Poison" from the lore of player's tool

 

 

made with Skript Plugin

Link to comment
Share on other sites

  • 2 weeks later...

what is it doing that it shouldn't be or, conversely, not doing that it should?

on right click:
    if player's tool is diamond sword:
        if player's inventory contains book with lore "&7Poison":    <- check for book
            add "&7Poison" to lore of player's tool                               <-add poison lore to the sword
            If lore of the player's tool contains "&7Poison":                <- if the sword's lore is poison
                remove "&7Poison" from the lore of player's tool          <- remove the lore

you're doing something and immediately undoing it.... i'm not sure what the final result is supposed to be... is it supposed to remove poison lore from the book, poison status effect from player, or from the sword you just put it on? i'm not trying to be critical... mostly.... i'm trying to understand what the end result is for this event

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...