Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

allay-mc/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allay Scripts

Warning

The scripts present in this repository are deprecated as of Allay version 0.1.0 and will likely not work.

Common Allay scripts that can be used for your project. Copy the scripts you need into your scripts/ directory of your project or simply use allay add <name_of_script> without its extension and don't forget to include it in your allay.toml configuration file in the right place.

[scripts]
base-path = "scripts"
pre = [
  { run = "templating.rb", with = "ruby", args = ["--trim-mode='%<>'"] },
  { run = "yaml_to_json.rb", with = "ruby" },
]
post = [
  { run = "autoimport.rb", with = "ruby" },
]

You can read more in the documentation.

Each script contains a concise description at the top of the file.

Script Exists Description License Author
transformjson.rb Transform JSON in order to make it human readable or reduce file size. Unlicense phoenixr-codes
templating.rb Enables ERB for your files Unlicense phoenixr-codes
yaml_to_json.rb Converts YAML to JSON Unlicense phoenixr-codes
autoimport.rb Copies the build into the corresponding Minecraft add-on folder Unlicense phoenixr-codes

Requirements

In order to use these scripts in your Allay project, Ruby needs to be installed on your system.