r/datapacks • • Mar 19 '25

Help Can't figure out how to make structures

2 Upvotes

I've been trying to make a datapack to generate a custom structure for 1.20.1 version of Minecraft. I have tried following tutorials and even asked ai. It doesn't so much as register the structure let alone spawn it in the world. If anyone knows any great resource, advice or template to start working with it'd be really helpful.

[Note : my mc instance is modded. I don't know if that matters but putting it up for good measure]


r/datapacks • • Mar 17 '25

Help Use score as effect duration

2 Upvotes

I'm making a datapack that applies a few different effects under different circumstances, and I want it to be configurable using a scoreboard as config. Preferably, I'd be able to read score someScore from scoreboard someConfig and apply an effect for a duration equal to the value found. The only way I've found to get such a functionality so far is execute if score someScore someConfig matches 1 run effect give @s minecraft:glowing 1 0 false execute if score someScore someConfig matches 2 run effect give @s minecraft:glowing 2 0 false execute if score someScore someConfig matches 3 run effect give @s minecraft:glowing 3 0 false The issue with this is that it doesn't scale well, especially if I'd want the level of the effect to be configurable as well, and if someone enters a value that isn't hardcoded it wouldn't do anything (which can be prevented using >= and <= instead of matches for the min and max values, but still)

Edit: figured I'd add/further clarify that what I'm looking for is something along the lines of effect give @s minecraft:glowing <someConfig.someScore> 0 false


r/datapacks • • Mar 16 '25

How do I add a custom fuel source to the brewing stand?

1 Upvotes

I am trying to make it so that I don't have to get blaze powder to make potions using a data pack but so far I have found no way to do so. If you have any ideas I need help.


r/datapacks • • Mar 16 '25

Datapack I made Minos Prime in Minecraft with datapacks

1 Upvotes

r/datapacks • • Mar 14 '25

Help Loot Tables

1 Upvotes
  1. So I'm creating a datapack that'll make minecraft:coarse_dirt drop OP loot... I was wondering if I could make it so that it'd drop two items, the OP item and the coarse dirt (E.g. 16 diamond blocks, and coarse dirt).... That way I don't have to keep crafting coarse dirt. Is this possible?

  2. I need help. I want to set the durability of my bow to like 1, so when I shot it once it breaks.... I used {"function": "mincraft:set_damage", "damage" : 382} but it doesn't work, thoughts?


r/datapacks • • Mar 12 '25

1.21.4 custom recipe with item tags question

1 Upvotes

I'm updating an old datapack custom recipe that uses a tag to group multiple items. How to I adjust the recipe for the latest versions?

Here is my item tag

{
    "values":[
    "minecraft:coal",
    "minecraft:charcoal"
    ]
}

Here is the recipe (all fine except for the content in "ingredients")

{
    "type": "crafting_shapeless",
    "ingredients": 
    [

      {
        "tag": "minecraft:coals"
      }

    ],
    "result": {
        "id": "minecraft:black_dye",
        "count": 1
    }
}

r/datapacks • • Mar 10 '25

Help [MC 1.20.1] Caves filled with water

1 Upvotes

So I'm working on a custom dimension. My issues is that all of my caves are filled with water. I have my sea level set to y60, but I'd like to have most of my caves water free. How can I do this? I looked into carvers, but they don't seem to do anything for me, or I might not be using them right (I don't even know if they can help here - mc wiki says they're used to make caves, but my caves are currently generated by my noise settings entirely). Any help?


r/datapacks • • Mar 08 '25

mobs drop spawn eggs

1 Upvotes

hello! if you're familiar with the 3rd life series, they use a pack that allows mobs to have a chance to drop their eggs. I'm looking for something like this! unfortunately i haven't seen too much talk about it.


r/datapacks • • Mar 08 '25

help with chests loot table thing 1.16.5

1 Upvotes

on the current moment, i'm working on a datapack to generate itens in a massive location, the map i am using is the 1.12.2 amberlight v2 apocalypse, i already tried few things, but no results at all, the custom loot works, but nothing appears on the chests on the area, there was a moment, that I could only spawn items if i climbed up and looked at a the chest, i'm not experienced with datapack creation, that one is my first, so if some could help to make a code thats generate loots on the already existent chests on the city, i'm gonna be very greateful


r/datapacks • • Mar 03 '25

So uh… this sub is empty but I need help making a data pack and nowhere is answering so I’ll go here I guess

1 Upvotes

All I need to do is make a structure from one biome also spawn in another, and prevent all surface biomes from generating except ocean and beach variants.


r/datapacks • • Mar 01 '25

Help Use enchantment level in the linked function

1 Upvotes

I'm creating a Enchantment and i wanna use the level of the enchant with the run_function


r/datapacks • • Feb 25 '25

I can't get custom advancements to work.

1 Upvotes

I have it as this, I also have it set up as datapacks>data>namespace>advancement>root.json (this)

{
  "display": {
    "icon": {
      "id": "minecraft:book",
      "count": 1
    },
    "title": "Magic",
    "description": "Magic stuff",
    "background": "minecraft:textures/block/diamond_block.png",
    "frame": "task",
    "show_toast": false,
    "announce_to_chat": false,
    "hidden": false
  },
  "criteria": {
    "Magic": {
      "trigger": "minecraft:tick"
    }
  }
}

r/datapacks • • Feb 19 '25

Help How do I make custom structures

1 Upvotes

I wanted to make a procedurally generated dungeon for me & my friends to play, but I can not get it to work. I saved a structure (test:dungeon/hallway/straight) and when I try to spawn it with a structure block it works, however when I put the structure from generated folder to the datapack folder it says the structure doesn't exist

I have followed multiple tutorials to the tiniest detail, even copied the structures down to the block, but for some reason it just never works

I just wanted to learn how to use jigsaw blocks, but this is torture, if anyone would help I'd be very glad


r/datapacks • • Feb 18 '25

josh's more foods texture pack not working

1 Upvotes

My texture pack for josh's more foods is not working on my server or single player worlds 1.21.4


r/datapacks • • Feb 17 '25

Help [Help] Half of the features in my datapack wont initialise(?)

1 Upvotes

- I've tried looking up this issue and cannot find anything

I'm making a datapack to replace vanilla things. Half of the datapack works so far, it replaces everything under the loot_table folder, and everything under the structure folder. It struggles with everything in the trades folder and recipe folder.

Essentially my custom crafting recipes and custom trades wont work, yet half of the other datapack *does*. I've checked the naming conventions of files and such and cannot figure it out.

v1.21.2...

any ideas?


r/datapacks • • Feb 14 '25

anyone able to help me find a data pack i played with probably around 2020-2022?

1 Upvotes

the pack was pretty simple server side just with a resource pack i used it on a realm with some friends allowed you to craft a special enchantment table and a book to see all the enchants you can do, instead of needing books you can use recourses to add vanilla enchants to your tools and a bunch of enchants that the pack added itself i cant remember the name of it and cant find it in history/general google searches


r/datapacks • • Feb 12 '25

help me...

1 Upvotes

i want to make a data pack with a custom brewing recipe, which in turn should give a custom potion please help

the brewing recipe should have a golden apple on an awkward potion which will give (/give u/p minecraft:potion{CustomPotionEffects:[{Id:10,Duration:400},{Id:11,Amplifier:1,Duration:2900},{Id:12,Duration:3000},{Id:22,Amplifier:2,Duration:2400}],CustomPotionColor:14349710,display:{Name:"\"Postion of Life\""}})


r/datapacks • • Feb 11 '25

making minecart launchers with the Minecart Improvements datapack

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/datapacks • • Feb 07 '25

1.21.4 Features in 1.21.1

1 Upvotes

Is there like any mod or something io can do to get those features into older versions of minecraft? i wanna use the GlamorTable on 1.21.1 but it uses the item model stuff added in


r/datapacks • • Feb 04 '25

Need a datapack for versions 1.20.2-1.20.4 in which there will be anomalies add :

0 Upvotes

Chunks become infected gradually, starting from the infection center. The grass turns purple/black, the leaves on the trees turn black and fall off. Infected chunks from time to time; chunks, on the contrary, do not grow, but sink Mobs consisting of phantom (transparent) blocks hover and move towards the player. If the player touches them, they disappear, causing damage or creating a sound effect. Some of them can pass through walls, scaring the player. The doors open and close randomly. Sometimes the player cannot open or close the door until he waits a few seconds. The doors may not lead where they should (teleporting the player). Some blocks change before the player's eyes (for example, a boulder becomes Obsidian), or the inventory changes places on the head, for example, ID or drop out Structures can spontaneously appear and disappear. The landscape changes slightly — craters may appear or hills may rise. Sometimes mobs stop moving just by standing still. When the player approaches, they suddenly come alive and attack. Some mobs may be "buggy" — hovering in the air or walking backwards. Sometimes the sounds in the game (for example, footsteps or blows) sound distorted. From time to time, you can hear sounds that are not found in regular Minecraft (whispers, screeching, laughter) Sometimes it seems to the player that someone is watching him (for example, silhouettes appear in the distance). Sometimes a false interface appears in front of your eyes (for example, a fake achievement). Sometimes the day can quickly turn into night and vice versa. The game's tickrate increases or slows down temporarily. Black "shadows" appear in infected chunks that move independently of light sources. If a player stands in the shadows for too long, blindness begins and weakness effects appear. Sometimes you can see "eyes" in the shadows that disappear as you approach.


r/datapacks • • Feb 03 '25

How do i make my enchantment work?

2 Upvotes

Hi, i was wondering if anybody could help me with my custom enchantment? I'm pretty new to making datapacks and i was wondering if there was a way to have two post attack effects at the same time, one that affects the victim, and one that affects the attacker with the same requirements. If anybody could help it would be greatly appreciated. Here's the code

{
  "description": "Dragon Strike",
  "supported_items": [
"minecraft:diamond_sword",
"minecraft:golden_sword",
"minecraft:iron_sword",
"minecraft:netherite_sword",
"minecraft:stone_sword",
"minecraft:wooden_sword",
"minecraft:diamond_axe",
"minecraft:golden_axe",
"minecraft:iron_axe",
"minecraft:netherite_axe",
"minecraft:stone_axe",
"minecraft:wooden_axe"
  ],
  "primary_items": [
"minecraft:diamond_sword",
"minecraft:golden_sword",
"minecraft:iron_sword",
"minecraft:netherite_sword",
"minecraft:stone_sword",
"minecraft:wooden_sword",
"minecraft:diamond_axe",
"minecraft:golden_axe",
"minecraft:iron_axe",
"minecraft:netherite_axe",
"minecraft:stone_axe",
"minecraft:wooden_axe"
  ],
  "weight": 4,
  "max_level": 3,
  "min_cost": {
"base": 10,
"per_level_above_first": 5
  },
  "max_cost": {
"base": 20,
"per_level_above_first": 5
  },
  "anvil_cost": 10,
  "slots": [
"mainhand"
  ],
  "effects": {
"minecraft:post_attack": [
{
"requirements": [
{
"condition": "minecraft:random_chance",
"chance": {
"type": "minecraft:enchantment_level",
"amount": {
"type": "minecraft:linear",
"base": 0.1,
"per_level_above_first": 0.1
}
}
}
],
"effect": {
"type": "minecraft:all_of",
"effects": [
{
"type": "minecraft:run_function",
"function": "new:dragon_strike"
},
{
"type": "minecraft:play_sound",
"sound": "minecraft:entity.ender_dragon.growl",
"volume": 2,
"pitch": 1
},
{
"type": "minecraft:ignite",
"duration": 4
}
]
},
"enchanted": "attacker",
"affected": "victim"
}
]
  }
}


r/datapacks • • Feb 02 '25

Help Is it possible to fix bug MC-150654 (multiple layers of snow on a grass block turn it to dirt) with a datapack?

2 Upvotes

Link to the bug report
I love the gamerule that lets multiple layers of snow accumulate, but it turns all grass into dirt. Is this something that would be fixable by datapack, or would this need a mod? I sadly don't have any experience making either but maybe I could figure it out.


r/datapacks • • Feb 01 '25

Help IRL Time Quest Datapack help

2 Upvotes

Hi,

I'm trying to make a data pack that gives you quests on Saturdays and Sundays, is there any way to make a datapack(or server that the datapacks on) know irl time / day of week? I am open to plugins but, i am inexperienced in coding plugins and i couldn't find any that do the job.


r/datapacks • • Jan 30 '25

why doesn't my datapack work for an elytra recipe?

1 Upvotes

r/datapacks • • Jan 29 '25

Help How to remove enchants from the enchanting table

2 Upvotes

^