Coder Social home page Coder Social logo

Comments (4)

Poslovitch avatar Poslovitch commented on June 4, 2024

Thought of a way to do that (which would be also applicable to #40).

yaml

from bentobox.

tastybento avatar tastybento commented on June 4, 2024

The condition is interesting. Make sure that if you are going to teach admins a new language, like this condition scripting, that you have room for expansion and that you use it consistently across all similar situations. i.e., this cannot be only for Magic Cobble, but elsewhere another condition system is used. Also, that will help in the programming - just have one parser.
So, one place it could be used is in Challenges for example. Also, consider how to do more complex conditions. Like (level>500 AND level<1000) OR money > 3000;
Maybe the Java ScriptEngine could be used to evaluate the string?

from bentobox.

Poslovitch avatar Poslovitch commented on June 4, 2024

Sure, this system would be used notably for Magic Cobble Generator, for #40, and maybe for challenges (though i'm not completely sure for this one).

We would also be able to make the more complex conditions you suggested ^^

ScriptEngine looks good. However, i'll have to do some experiments with it ^^

from bentobox.

Poslovitch avatar Poslovitch commented on June 4, 2024

This issue was moved to BentoBoxWorld/MagicCobblestoneGenerator#3

from bentobox.

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.