Skip to content

Stoupy51/Energy-Datapack-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translations

⚡ Energy Datapack Template

📖 Description

  • This data pack is a template based on SimplEnergy's design.
  • Stardust Fragment data pack is using this template, it is an extension of SimplEnergy.
  • This template is fully commented and can be used as a starting point for creating your own energy data pack.
  • It requires SimplEnergy [v1.9.x] or higher to take advantage of the already created and configured systems listed below.

📚 Librairies/Modules used, conventions, guideline, tips followed

🔧 What is already configured

  • Lantern Load (load orders) base located in load/tags/functions/*
  • Smithed Crafting Recipes located in energy_datapack_template/functions/calls/smithed/
  • Smithed Custom Block Placement located in energy_datapack_template/functions/place/
  • Stoupy's Durability Multiplier located in energy_datapack_template/functions/calls/durability_multiplier
  • Stoupy's Furnace NBT Recipes located in energy_datapack_template/functions/calls/furnace_nbt_recipes/*
  • SimplEnergy Energy Charge Lore located in energy_datapack_template/functions/destroy/*batteries*
  • SimplEnergy Ore Generation located in energy_datapack_template/functions/calls/generate/
  • Basic stuffs (First join advancement, destroy & placement functions, visual & work functions for machines, ...)
  • A generator, an energy consumer, a battery
  • 1 tick, 2 ticks, 1 second, 5 seconds, and 1 minute clocks

▶️ How to use

  • Download the package from the source code or from the release page.

  • Change the name of the data pack by using 'Find and Replace' with your favorite IDE (Enable case sensitive):

    • Find: energy_datapack_template and replace with your data pack own name
    • (e.g. simplenergy, my_energy_datapack, ...)
    • Find: Energy Datapack Template and replace with your data pack own name
    • (e.g. SimplEnergy, My Energy Datapack, ...)
    • Find: EnergyDatapackTemplate and replace with your data pack own name
    • (e.g. SimplEnergy, MyEnergyDatapack, ...)
  • Modify content of pack.mcmeta with your own data pack name

  • Rename the energy_datapack_template/ folder located in data/ with your own data pack name

  • Rename the energy_datapack_template/ folder located in resource pack/ with your own data pack name

  • Define your data pack versioning advancement using global convention, files are located in

    • energy_datapack_template/advancements/energy_datapack_template.json
    • global/advancements/your_username.json
  • Use 'Find and Replace' with your favorite IDE:

    • Find: your_name and replace with your own name (e.g. stoupy, uwu42, ...), for the from nbt field regarding to the Common Trait Convention
  • And you are done! You can now add your items, blocks, machines. You can also use/edit the resource pack folder