JoakimThorsen / MCPropertyEncyclopedia

A tool for viewing, filtering, and sorting all blocks by their properties.
https://JoakimThorsen.github.io/MCPropertyEncyclopedia/
GNU General Public License v3.0
60 stars 16 forks source link

Datapack Intgration #24

Open Vexxen1 opened 10 months ago

Vexxen1 commented 10 months ago

Add a export option to export a tag with all the block ids/entity types/items you have selected. I love the website, but im a datapack maker, and i need it in a json format for my projects.

Here is what a datapack tag looks like: A entity tag:

{
    "values": [
        "minecraft:zombie_horse",
        "minecraft:wolf",
        "minecraft:tropical_fish"
    ]
}

A block tag:

{
    "values": [
        "minecraft:command_block",
        "minecraft:chain_command_block",
        "minecraft:repeating_command_block",
        "minecraft:structure_block",
        "minecraft:jigsaw",
        "minecraft:structure_void",
        "minecraft:light",
        "minecraft:moving_piston",
        "minecraft:nether_portal",
        "minecraft:bedrock",
        "minecraft:barrier",
        "minecraft:end_portal",
        "minecraft:end_gateway",
        "minecraft:end_portal_frame",
        "minecraft:dragon_egg",
        "minecraft:amethyst_cluster",
        "minecraft:reinforced_deepslate",
        "minecraft:spawner"
    ]
}

A item tag:

{
    "values": [
        "minecraft:chainmail_boots",
        "minecraft:diamond_boots",
        "minecraft:iron_boots",
        "minecraft:netherite_boots",
        "minecraft:leather_boots"
    ]
}

I would love if you implemented a button to output to a datapack tag. May i also suggest you list biomes and there proportys as well, as there are also biome tags.

Also, i think you could make it work better, or automate some degree of data output via making code that looks thru a minecraft versions block list/item list, etc, then just grabs the proportys from the code directly. Thou, im not the one making it, so i have no idea how possible that is. So you can have the system work for any version of minecraft, and you only haft to manualy imput things that can not be autogenerated.

JoakimThorsen commented 9 months ago

I would love if you implemented a button to output to a datapack tag.

I'm unfortunately quite busy as of late, so it might take me some time to get around to this. Doing this per block id would also require me to restructure a large portion of how this website currently works.

May i also suggest you list biomes and their properties

this is planned already :)

automate some degree of data output via making code that looks thru a minecraft versions block list/item list

this is already being done for a large majority of the properties, read through the "Joa Mama" section of the github readme.md or the About page :)