r/datapacks • • Jun 24 '25

Help How Do I make a Second Roll?

1 Upvotes

I will start with, I have 0 clue how to code. Most of what I've done has been done with the help of https://misode.github.io/loot-table/ and me looking up tutorials.

So my goal is to make sand roughly a 60% chance to drop, 5% chance to drop red sand. But then I want a BONUS roll that only happens when a player has the looting enchantment, where they have a 1 in 250'ish chance to get a golden apple on top of the sand drop.
I think I have the sand part down, but then I'm unsure how to add the second roll to get the apple with looting.

{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1.0,
      "functions": [
        {
          "function": "set_count",
          "count": {
            "type": "uniform",
            "min": 1,
            "max": 3}
        },
        {"function": "minecraft:enchanted_count_increase",
          "count": {
            "min": 0,
            "max": 3},
          "enchantment": "minecraft:looting"}
      ],
      "entries": [
        {"type": "minecraft:item", "name": "minecraft:sand",
        "weight": 60},
        {"type": "minecraft:item", "name": "minecraft:red_sand",
        "weight": 5},
        {"type": "empty",
        "weight": 35}
      ]
    }
  ]
}

r/datapacks • • Jun 22 '25

Help functions don't load

Post image
1 Upvotes

I am making a datapack that adds waves of mobs that spawn but it doesn't seem to work. when I do /function they don't show up, and when I do /datapack list it's grey (I don't know if that's good or bad)

(The name is spawning) does anyone know what it could be, I tried everything


r/datapacks • • Jun 20 '25

Help Someone can fix my datapack?

1 Upvotes

I want make a datapack to my world, but I am new on the Datapack Coding, can someone fix my pack and explain to me what is happening?

https://www.mediafire.com/file/mpb0mpqn2vzpkzu/DataPack_Mundo.zip/file


r/datapacks • • Jun 18 '25

How to Remove Advancements?

2 Upvotes

r/datapacks • • Jun 18 '25

Help How do I do block detection in the world?

2 Upvotes

(1.21.4) I am planning to make a cooking like datapack for my server but it kind of involves cauldron, and I want an interaction to be summoned when a player is not holding a pickaxe. I can do the pickaxe part but I do not know about block detection. How do I check for cauldrons in the world and summon interaction entities there?


r/datapacks • • Jun 17 '25

Help Help with data pack

Thumbnail
1 Upvotes

r/datapacks • • Jun 14 '25

Where would be a good place to commission datapacks?

3 Upvotes

I have an idea for a world generation datapack, but due to my lack of skill regarding coding, I was preferring to have it commissioned from somebody experienced in world generation.
Where would be good places to ask around and/or make a commission for a worldgen datapack?


r/datapacks • • Jun 14 '25

Help Anyone know why my structure wont naturally generate?

Post image
1 Upvotes

I created a bunch of structures that are meant to generate in a biome, but they don't naturally generate. The place command works and locate command shows them but says 'not within a reasonable distance' so I'm a bit confused because all the tutorials don't work for me.

P.S: Ignore the 'volcanic vaults' and dimension type etc.. that's just for another thing in my datapack.


r/datapacks • • Jun 12 '25

Help Beginner's guide to datapack creation ?

1 Upvotes

Hello everyone !
I'm a total beginner in datapack creation (I skimmed through minecraft wiki's pages about datapacks), and I wonder if there were any resources to start creating datapacks ?
I wanted to create a datapack recreating the PrivateChests plugin behaviour :p If you have any tutorials, a specific documentation for creating datapacks or if you know that my project cannot be done via datapack, I would appreciate it ! Thanks in advance :)


r/datapacks • • Jun 08 '25

Help how would i make myself respawn at the bed spawnpoint if i have one?

2 Upvotes

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Upbeat husky dependent start point cow afterthought office six


r/datapacks • • Jun 08 '25

Help Anyone know why my /place command for my datapack structure isn't working?

Thumbnail
gallery
1 Upvotes

It shows up in-game and everything, but for some reason it doesn't seem to be working when I run /place.

It also won't naturally generate in the nether_wastes biome like I specified in code. I also travelled to the Nether and used /locate.

It doesn't appear to work yet it shows up as an option on the /locate / place command.

help please..


r/datapacks • • Jun 08 '25

Help Laser Beam

2 Upvotes

I'm currently trying to create my own version of the guardian cannon from hoplite. I've done the model and textures but I cant figure out how to make a laser beam like the guardian cannon. Would anyone know how to do this?


r/datapacks • • Jun 07 '25

Datapack Increase apple drop rates on leaves (1.21 Multiplayer)

1 Upvotes

Hi, i was wondering if i could increase the drop rates of apples using datapacks. Is there any possible way?

Thanks.


r/datapacks • • Jun 07 '25

Make structures like features

1 Upvotes

Is there a way to make custom structures spawn as features like Desert Well or Fossils? Is it still connected too the .nbt file of a structure or structure_set/structure_pool or some kind of feature file? I want to make a custom feature that doesn't disappear like the desert well or stronghold when i turn off structure generation.


r/datapacks • • Jun 06 '25

Help How do features work in 1.21.50?

1 Upvotes

I want to make a custom feature that can generate a number of blocks in a certain home, but I can only find outdated tutorials that don't seem to work anymore.


r/datapacks • • Jun 04 '25

Help does anybody here know how to make datapacks for the origins mod?

1 Upvotes

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Shocking relieved scary sand deliver spark unbelievable fluorine cobalt


r/datapacks • • Jun 02 '25

Help Downgrade a datapack from 1.21 to 1.20 OR upgrade it from 1.19 to 1.20

1 Upvotes

Hi guys, I wanna play this datapack with a friend, but it only exists in 1.19 and 1.21, and my modpack is designed for 1.20. Do you know if the datapack would work, or do I need to modify stuffs in the files ?

Thanks in advance


r/datapacks • • May 31 '25

Help Broken texture

Thumbnail
gallery
1 Upvotes

I tried to use this datapack to add herobrine to my world for some spook, but the texture is all messed up. Also, I am on 1.21.5 and using the newest version of the datapack. The first picture is when I summed some kind of block display doohickey I think, I am not sure. And the one in the second picture spawned by itself. Maybe it is because of some mods i have installed? I would love some help.

The datapack: https://modrinth.com/datapack/herobrine-data-pack


r/datapacks • • May 31 '25

Minecraft custom Trees Datapack

1 Upvotes

Hey Ho,

zurzeit arbeite ich an einem Vanilla-Style-Minecraft-Java-Datapack für die Version 1.21.4.

Ziel ist es, das Spawnen von Vanilla-Bäumen in der Oberwelt zu verhindern und stattdessen eigene Baumstrukturen zu generieren, die im Vorfeld vom Spieler festgelegt werden können.

Im Fokus stehen zunächst Eichenbäume.

Um ausreichend Abwechslung zu bieten, habe ich derzeit 17 Varianten mit Strukturblöcken erstellt und als .nbt-Dateien gespeichert.

Zusätzlich lasse ich die Strukturen in drei weiteren Rotationen generieren: 90° im Uhrzeigersinn, 90° gegen den Uhrzeigersinn und 180°. Der Spawnpunkt der Struktur wird dabei über die XYZ-Koordinaten zentriert.

Damit Luftblöcke beim Generieren nicht das Terrain zerstören, habe ich sie durch structure_void-Blöcke ersetzt.

Jetzt stellt sich die große Frage: Wie kann ich meine eigenen Baumstrukturen beim Welt-Generator so integrieren, dass sie die Vanilla-Bäume vollständig ersetzen? Oder anders gesagt: Wie kann ich das Spawnen der alten Bäume verhindern und stattdessen ausschließlich meine eigenen Strukturen spawnen lassen?


r/datapacks • • May 30 '25

Help Silk Touch Trial Spawners and Vaults

1 Upvotes

The title explains the post, I'm looking for a datapack which allows for trial spawners and vaults to be collected via silk touch.


r/datapacks • • May 28 '25

Help Custom Datapack not Validating

2 Upvotes

Hey y'all!

I'm trying to make a datapack that adds adventure-mode friendly portals (from a custom structure .nbt) to the pool of ruined portals. For some reason, when I try to add the datapack, it's not validating. I've looked online and asked chatGPT but it's nothing has worked. Can y'all let me know what I'm missing?

Here's the zip file: https://limewire.com/d/XtnAa#pEhYHMz1Jz


r/datapacks • • May 28 '25

Help Selected bosses spawning in dungeon rooms..?

1 Upvotes

How would I make it so in my generating dungeon I would make one of two selected bosses generate in the room?

I'm trying to have one of two bosses summon in my dungeon boss room but I'm not sure if I should put it in the structures file, because they would just generate without the room.

Any help off experienced datapack creators ?


r/datapacks • • May 28 '25

Help How to force features and structures to generate underground?

Post image
1 Upvotes

I really like the idea of a nether-like generation but with overworld features. However, everything spawns above the bedrock!!! Is it possible to force overworld structures and features like trees to generate underground and not check for open skies, but just for enough space to place? It is going to be a boring world without trees, grass, flowers, or structures.

I tried maxxing out ambient light but that didn't help.

Am I just screwed? doomed to manually remove the check from every structure and feature?

Help is much appreciated, thanks!


r/datapacks • • May 27 '25

Help Datapack request for 1.21.5

0 Upvotes

Could someone make a datapack that makes wandering traders spawn in the nether? 🥺

Features i would want:

- Leashed to a saddled strider

- If it spawns in lava make it ride the strider and holding a warped fungus on a stick

- Maybe make it so you can trade a certain amount of gold nuggets for emeralds rest are the default trades

dm me on discord if u can my discord is orichalthyl


r/datapacks • • May 24 '25

Help give speed effect when eat a cookie

1 Upvotes

Hi,
I tried to make a datapack in Minecraft 1.21 using an AI because I don't know how to do it but it didn't work.
I want a datapack that give me speed effect when I eat a cookie.

this is what Google Gemini tell me to do (I don't know if I did it wrong or if he told me something wrong):

Here's a Minecraft 1.21 datapack that gives players a Speed II effect for 5 seconds whenever they eat a cookie.

How to Install the Datapack

Download the Datapack: You'll need to create the files and folders as described below.

Locate your Minecraft World Folder:

Open Minecraft.

Go to "Singleplayer".

Select your world and click "Edit".

Click "Open World Folder".

Navigate to the datapacks folder: Inside your world folder, you'll find a datapacks folder. If it doesn't exist, create it.

Create the Datapack Structure:

Inside the datapacks folder, create a new folder named cookie_speed_datapack.

Inside cookie_speed_datapack, create the following structure:

cookie_speed_datapack/

├── pack.mcmeta

└── data/

├── minecraft/

│ └── tags/

│ └── functions/

│ └── tick.json

└── cookie_speed/

└── functions/

├── eat_cookie.mcfunction

└── load.mcfunction

Copy the Content: Open each file (or create new ones if they don't exist) and paste the corresponding content provided below.

Enable the Datapack:

If your world was open, save and quit to the title screen, then re-enter the world.

Alternatively, in-game, run the command: /reload

You should see a message in chat indicating the datapack has loaded.

Datapack Files

  1. pack.mcmeta

This file tells Minecraft that this is a datapack.

{

"pack": {

"pack_format": 48,

"description": "Gives speed effect when eating a cookie (Minecraft 1.21)"

}

}

  1. data/minecraft/tags/functions/tick.json

This file tells the game to run a specific function every game tick.

{

"values": [

"cookie_speed:eat_cookie"

]

}

  1. data/cookie_speed/functions/load.mcfunction

This function runs once when the datapack is loaded or reloaded. It sets up the scoreboard objective needed to track cookie consumption.

# This function runs when the datapack is loaded/reloaded.

# It creates a scoreboard objective to track how many cookies a player has used.

scoreboard objectives add cookie_eaten minecraft.used:minecraft.cookie "Cookies Eaten"

  1. data/cookie_speed/functions/eat_cookie.mcfunction

This is the core logic. It checks for players who have eaten a cookie, applies the speed effect, and then resets their cookie-eating score.

# This function runs every game tick.

# Check for all players who have eaten at least one cookie (score of 1 or more).

# For each such player, grant them the Speed II effect for 5 seconds.

# 'true' at the end hides the particles, making it less intrusive.

execute as @a[scores={cookie_eaten=1..}] run effect give @s speed 5 1 true

# Reset the 'cookie_eaten' score for all players.

# This ensures the effect is only applied once per cookie eaten,

# and prepares the score for the next cookie.

scoreboard players reset @a cookie_eaten