Skip to content

Guide to making a registrar pack

ewoudje edited this page Aug 27, 2022 · 2 revisions

Datapacks and Resourcepacks work in registrar packs under the folder data/assets

So for example were gonna make a set of blocks/items for a modpack about belgium, so then i would get the folder structure .minecraft/registrarpacks/belgium/registrar/belgium

Then we would want a new item called waffle and it should be a food so i make a new subfolder called item and make a new json file in there called brussels_waffle.json in that file we would add:

{
  "$schema": "https://schema.amogus-sa.ga/mc-registar/item.schema.json",
  "type": "basic",
  "stackSize": 16,
  "food": {
    "hunger": 2, // the brussles kind is not that filling without any additions
    "saturationModifier": 0.3,
    "meat": false,
    "fast": true, // i eat waffles quite fast
    "canAlwaysEat": true // yes i overeat myself with waffles
  }
}

You don't need to set all these values, many of them are optional such as meat The $schema you see is the schema that should confirm +- with how the json should be formated this is handy for the IDE to autofill (and also find errors).

So we just made the item if we would boot up the game now it should work but it wouldn't have a texture, we would specify this with a seperate resource pack (maybe assets in registar packs coming soon?). So go make a resource pack im not gonna explain that.

Then in the resource pack we would have the assets folder and in that folder we would make the belgium folder; then we would add just as if its a normal minecraft item textures and models for it; again im not gonna write how look up how to make resourcepack for more info.

So were done we made a item with texture and model, but the name is kinda wierd?! This is because we need a lang file, you can add them in lang folder under assets im pretty sure u can find resources about this on google too so yhea...

So voila we have a waffle without coding in java but in pure json for the datapack/resourcepack junkies! But ofc we want more! there are a couple of more things we can do il sum them up quickly. (blocks are possible ofc there in the belgium/registrar/belgium/block folder and with a structure as seen below.

Item

Types

  • basic
  • lored it adds a extra field "lore" wich is a array formated in mc chat components (see mc wiki)

Properties

  • stackSize
  • creativeTab format like "minecraft:building_blocks" (you can also make custom tabs)
  • rarity
    • COMMON
    • UNCOMMON
    • RARE
    • EPIC
  • food

Block

Types

  • basic
  • falling
  • bush (only placable on grass type of blocks)

Properties

  • unbreakable
  • item, it has the the item json nested, for the item of the block.
  • noItem by default it always has a item for a block if u don't want this set this true
  • destroyTime
  • explosionResistance
  • layer don't use, only if u know what ur doing
  • dustColor only for falling blocks (the dust particles for flying falling blocks)
  • soundType sounds used for breaking/walking/falling on the blocks
  • material https://minecraft.fandom.com/wiki/Materials
  • noCollission
  • noOcclusion
  • noDrops
  • requiresCorrectToolForDrops for tools look below

Help

How do i specify the correct tools?

Minecraft uses tags for this; add the block to a tag of a tool ex. mineable/pickaxe (You add the tags in datapacks (datapacks and resourcepacks work in registrar packs under the folder data/assets instead of registrar))

Recipes?

Datapacks have recipes

HELUP?!

Ehmm make a issue on gh i might see it we don't have discord cus i couldn't be bothered

Clone this wiki locally