Denizen Script Language Explanations


Language Explanations explain components of Denizen in a more direct and technical way than The Beginner's Guide.


Showing 1 out of 56 language explanations...
NameGUI Textures
DescriptionGUI Textures directly relate to textures loaded in from resource packs (including the built-in one).
They can be a single texture, or a section of a texture from a sprite sheet.
Since these use the resources system, you can also add and use custom textures yourself via custom resource packs.

Textures can either be a single texture path: minecraft:textures/block/cobblestone.png
Or a section of a sprite sheet:

# The sprite sheet to use a part of, required.
texture: <texture path>
# The left value of the top left point of the area to use, required.
u: <decimal>
# The top value of the top left point of the area to use, required.
v: <decimal>
# The width of the area to use, required.
width: <decimal>
# The height of the area to use, required.
height: <decimal>

All of the UV values (including the width and height) are between 0 and 1 and are relative to the entire image.
So for example: 0, 0, 1, 1 (in order) will be the entire image, 0.5, 0.5, 0.5, 0.5 will be the bottom right half, etc.
GroupGUI System
Sourcehttps://github.com/DenizenScript/Clientizen/blob/master/src/main/java/com/denizenscript/clientizen/scripts/containers/gui/GuiScriptContainer.java#L357