Skip to content

FooterManDev/KJS-Datagen-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome!

I imagine you're tired of making a ton of blocks/items one at a time, making a bulky and hard to read JS script. Well, FooterMan has you covered!

This Repo holds a bunch of scripts related to generating a bunch of blocks and items using for loops. No license for the scripts, use at your free will.

How to use:

  • There are three folders: startup_scripts, server_scripts hold scripts. The assets folder has textures you may use providing you follow the licences.

  • The constants.js file has colors defined for some materials. There you can add your own, modify or remove the existing materials.

  • In each startup datagen file, is a var used to get the colors of materials from constants.js. There is another var below with the names of the materials. You will need to add a material to both vars, otherwise it will not work.

  • Below that, is the main part. You will see a for loop, with the datagen code inside it. Add / modfy what you want your item / block to have / not have. For example, if it's a block, you can add your own tags, sounds, etc. Do note, the textures used for these scripts can come from another mod, or custom textures made by me.

  • For the server scripts, there will be recipes for whatever is made. For example, theres a script that makes a bunch of datagenerated Tools, using a for loop. Make your recipes how you want. I will not provide recipes for everything, you can use the Tools script as a base.

About

Quick Datagen Scripts for KubeJS

Resources

Stars

Watchers

Forks