tschallacka / roleplay-achaea-1.8.9

Roleplay tools for extending roleplaying
Other
0 stars 0 forks source link

Spell books #6

Open DidYouIronTheCat opened 7 years ago

DidYouIronTheCat commented 7 years ago

Books that can be assigned commands to execute when right clicked. Reduces clock-based lag on the server and makes spells prettier. You get the idea everything is in discord.

tschallacka commented 6 years ago

Textures for the books:

spelladept spellaurelian spellmasterful spellnovice

tschallacka commented 6 years ago

custom scripts will be coded with help of nashorn to give maximum flexibilty and stability. Is supported by java8 natively. import javax.script.*;

public class test {
    public static void main(String[] args) {
        ScriptEngine engine = new ScriptEngineManager().getEngineByName("nashorn");
        try {
            engine.eval("print('Hello World!');");
        }
        catch(ScriptException ex) {

        }
    }
}

http://winterbe.com/posts/2014/04/05/java8-nashorn-tutorial/

Will make custom hooks to allow for item inspection, block requests, entity requests and execution of minecraft commands.

tschallacka commented 6 years ago

Securing into a sandbox https://mozilla.github.io/rhino/javadoc/org/mozilla/javascript/Context.html#initSafeStandardObjects()