GithubHelp home page GithubHelp logo

"doesn't have" Condition about skript HOT 2 CLOSED

skriptlang avatar skriptlang commented on May 25, 2024
"doesn't have" Condition

from skript.

Comments (2)

Pilvinen avatar Pilvinen commented on May 25, 2024

Your code doesn't make any sense and that's why it doesn't work. But that being said - if it doesn't throw errors at you and fail your code gracefully when you try to load it then you have indeed found a bug that needs fixing.

You don't have any arguments defined in your command, that's why you can't refer to an argument in your code.

Your code should be, for example:

command /debugtest:
  trigger:
    if executor doesn't have iron ingot:
      send " DEBUG: You don't have iron ingots." to executor

Which works perfectly and detects whether or not the person who runs the command has or doesn't have iron ingots.

Or:

command /debugtest <player>:
  trigger:
    if arg 1 doesn't have iron ingot:
      send " DEBUG: %arg 1% doesn't have iron ingots." to executor
      send " DEBUG: You don't have iron ingots." to arg 1

Which also would seem to work perfectly.

Please read the documentation properly before making bug reports. You can find the docs here:
http://njol.ch/projects/skript/doc/

from skript.

bensku avatar bensku commented on May 25, 2024

Which version of Minecraft are you running? It seems your server doesn't support main/off hand separation, i.e. it is not running Minecraft 1.9+.

Edit: Fixed in next release (tomorrow?) anyway.

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.