kandi background

ScriptCraft | Write Minecraft Plugins in JavaScript. | Video Game library

Download this library from

kandi X-RAY | ScriptCraft Summary

ScriptCraft is a JavaScript library typically used in Telecommunications, Media, Media, Entertainment, Gaming, Video Game, Minecraft applications. ScriptCraft has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.
ScriptCraft is a plugin for Minecraft Servers which lets operators, administrators and plug-in authors customize the game using JavaScript. ScriptCraft makes it easier to create your own mods. Mods can be written in Javscript and can use the full SpigotMC API or CanaryMod API. ScriptCraft works with all of the following Minecraft Server software:. I recommend using SpigotMC because both CanaryMod and CraftBukkit are no longer being actively developed. The ScriptCraft mod also lets you enter javascript commands at the in-game prompt. To bring up the in-game prompt press the / key then type js followed by any javascript statement. For example: /js 1 + 1 will print 2. ScriptCraft also includes many objects and functions to make building and modding easier using JavaScript. The JavaScript Drone object bundled with ScriptCraft provides an easy way to build at-scale in Minecraft. See the attached temple.js file for an example of how you can use the sample Drone plugin to create new buildings in Minecraft.

kandi-support Support

  • ScriptCraft has a medium active ecosystem.
  • It has 1615 star(s) with 381 fork(s). There are 104 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 69 open issues and 259 have been closed. On average issues are closed in 35 days. There are 11 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of ScriptCraft is 3.4.0

quality kandi Quality

  • ScriptCraft has 0 bugs and 0 code smells.


  • ScriptCraft has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • ScriptCraft code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.

license License

  • ScriptCraft is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.


  • ScriptCraft releases are available to install and integrate.
  • Installation instructions, examples and code snippets are available.
  • ScriptCraft saves you 192 person hours of effort in developing the same functionality from scratch.
  • It has 473 lines of code, 17 functions and 119 files.
  • It has low code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

ScriptCraft Key Features

SpigotMC (Recommended)



ScriptCraft Examples and Code Snippets

  • ScriptCraft - Modding Minecraft with Javascript
  • Post Install
  • Your first mod - Howling blocks
  • (You can ignore this if using CanaryMod)
  • Docker

ScriptCraft - Modding Minecraft with Javascript

function greet( player ) {
  echo( player, 'Hello ' + player.name );
exports.greet = greet;

Community Discussions

Trending Discussions on Video Game
  • Python: implement a "software-wide" setting that does not change often without running an if statement in every loop
  • Is there a better way to write this incredibly long regex, or perform this error check?
  • Showing highlighted silhouette of mesh ONLY when it is occluded
  • Extract story plots from Wikipedia
  • How to return an object property from an array of objects in react
  • How can you create an empty circle using exclusively CSS?
  • My images are not being displayed in a row
  • Deny movement in pygame when player would collide with a wall
  • How to calculate rotation needed to face an object
  • Updating A Json in a more efficient way
Trending Discussions on Video Game


Python: implement a "software-wide" setting that does not change often without running an if statement in every loop

Asked 2022-Apr-07 at 16:09

I want Python to kind of ignore a statement that is unlikely to be called in a function that is often called.

I do not have a formal education in programming, so please excuse my lackluster ability to desribe things. I will try to explain the concept by example.

Say I am writing a video game, first-person shooter, drawing 60 frames per second. In the settings menu, the user can select whether or not to display the name of other players above their head. If they disable this, I store this value as showplayernames = False.

Then in my drawing function that outputs the graphics I have:

def draw():
    #code that draws the graphics on screen
    if showplayernames:
        #code that draws the name of players on screen

I call this function 60 times a second, but there is absolutely no point for checking if showplayernames is True 60 times a second. It will not change that often, in fact I could make this a kind of "constant" during play by preventing it to change. If showplayernames is False, then the third and fourth lines of the code are completely redundant, but they are executed nevertheless. The computer isn't smart enough to know it can ignore it, and there is a performance difference: reading a value and then checking if it is false takes time.

I could write two copies of the game (or at least the draw() function), one with only the first two lines when the user selects not to show names in the settings, and another without the if statement, and then run the appropriate one.

def draw_with_names():
    #code that draws the graphics on screen
    #code that draws the name of players on screen

def draw_without_names():
    #code that draws the graphics on screen

Although looping through either of these 60 times a second is more efficient than running draw() ,this is obviously not the way to go. There are dozens of settings like this.

So how do software and game designers implement these kind of "software-wide" settings efficiently?


Answered 2022-Apr-07 at 15:38

not an game designer, but here is my voice. You could store settings inside json file next to you python, but then you need to cover reading, getting right values etc.

You could use Environment variables to store value but that would end up using still "if" in the code.

Game designers use triggers and events to get things done, and on the lowest level I would assume those things also use if's.

system-wide-settings will in the end be used with if's

You could use overwrites based on event/trigger and use "same" draw function in both times but that only complicates code, and we all know to "keep it simple".

Sorry if this is not the answer you were looking for.

Source https://stackoverflow.com/questions/71784920

Community Discussions, Code Snippets contain sources that include Stack Exchange Network


No vulnerabilities reported

Install ScriptCraft

Before installing ScriptCraft you must first install SpigotMC which is a special version of Minecraft Server that makes it easy to customize the game.
Once installed, a new scriptcraft/plugins directory is automatically created. All files in the scriptcraft/plugins directory will be automatically loaded when the server starts. Only players who are ops can use this plugin. You can grant a player op privileges by typing 'op ' (replacing with your own Minecraft user name) at the server console prompt or by adding the player's username to the ops.txt file in your server directory.


If you would like to contribute source code and/or documentation changes please read contributing.md.

Build your Application

Share this kandi XRay Report