GithubHelp home page GithubHelp logo

Comments (6)

EquipableMC avatar EquipableMC commented on June 26, 2024 1

Have you tried seeing if this was an issue in 2.7.2 as well?

from skript.

tiradorus avatar tiradorus commented on June 26, 2024

Yes, i just tried now, Same issue on 2.7.2

from skript.

AyhamAl-Ali avatar AyhamAl-Ali commented on June 26, 2024

@APickledWalrus WANTED! 😬

from skript.

Fusezion avatar Fusezion commented on June 26, 2024

Honestly if pickle does take this up, I suggest looking into a better item comparison as a whole. There's too many quirks with it and the usage of isSimilar() is honestly either too inaccurate or too accurate.

from skript.

tiradorus avatar tiradorus commented on June 26, 2024

The problem occurs with...almost every conditions you are looking for.

All of thoses conditions have the same problem
I've tried thoses one:

command /test:
    trigger:
        set {_diampur1} to amount of diamond with custom model data 6589 in player's inventory
        set {_diampur2} to amount of diamond of fortune 3 in player's inventory 
        set {_diampur3} to amount of diamond named "&f&lDiamond test" in player's inventory

None of thoses conditions are considered from skript if the item you are looking for is generated with another plugin, even if the condition is okay.
And i don't see any other option to check if the player have the right amount of the right item in his inventory.

PS: Thanks for your answer.

from skript.

sovdeeth avatar sovdeeth commented on June 26, 2024

And i don't see any other option to check if the player have the right amount of the right item in his inventory.

Your other idea of using a loop is the current correct solution, you were just using the wrong expressions:

command /looper:
    trigger:
        loop items in player's inventory:
            if:
                name of loop-item is "&f&lDiamant épuré"
                item amount of loop-item > 2
            then:
                remove 3 of loop-item from player

from skript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.