written book name

  • 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 comminuty!

    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.

loadka95

Active Member
Feb 24, 2017
78
6
8
26
I tried to remove a named written book from the player's inventory. It's works with every single item, but it's doesn't work with the "written book" and i have no idea why...
code_language.skript:
command /testa:
    trigger:
        add 1 book named "&4asdo" to player's inventory
        
command /testa2:
    trigger:
        remove 1 book named "&4asdo" from player's inventory # THIS DOESN'T WORK WITH WRITTEN BOOK
 
Try this:

code_language.skript:
command /testa:
    trigger:
        add 1 book named "&4asdo" to player's inventory
      
command /testa2:
    trigger:
        loop items of player's inventory:
            if name of loop-item contains "&4asdo":
                remove loop-item from player's inventory

Works for me
 
Last edited by a moderator:
Status
Not open for further replies.