

So that’s a brief explanation of the working pieces of our scripting plugin. These switches are internal checks, so they are pretty fast. If you want this event to only fire in a certain world and for players, you would do “on entity dies type:player world:spawn:”. An example of an event would be “on entity dies:”. They also have switches, that are filters so the event only fires under certain conditions (this saves you from using unnecesary if checks). Once an event fires, it executes the command list it has inside (in order). The whole tag will then be replaced with a world object, that can be used in some world-specific commands.300+ tag modifier count so far, and growing.Įvents: These are used to listen to certain things happening in the server or Minecraft world. An example would be “”, where “” gets the world of this location. This works somewhat similar to chaining methods in Java. They always start with a tag base, that defines the starting tag type, and then some tag modifiers, that manipulate the base to reach a desired result. Tags: These are mainly used to retrieve information, as they are pieces of text inside “” that get replaced with actual information on execution.
DENIZEN DCOMMANDS UPDATE
We curently have 70+ commands, not sure of the exact number cause we need to update the documentation site that keeps track of them.

They always have a - before the actual command, so in the end the proper syntax is “- command argument1 argument2”. An example of these is “define”, for defining a new variable, and “heal”, for healing an entity/player.
DENIZEN DCOMMANDS CODE
We have:Ĭommands: These are pieces of code that execute actions, either inside the game or not. This sometimes makes it a bit harder to learn, but more logical once you have the grasp of it.ĭenizen2Sponge is still under heavy development and lacks many things (mainly inventory GUI stuff), but should be fairly capable overall already. It’s somewhat similar to Skript, though I’d say it has less plain english and more syntax. We’ve been working on porting our scripting plugin Denizen to Sponge for some time now.
