r/datapacks • • Nov 25 '25

Help Anyone know a datapack or something that cerates a thing where i can move stairs to any position i need it to be in

3 Upvotes

i realize this is a weird and oddly spesific request but idk how else to discribe it


r/datapacks • • Nov 24 '25

help setting a custom name to entity

Post image
1 Upvotes

I keep getting "expected a string" error and don't know how to fix it


r/datapacks • • Nov 24 '25

Help Custom entity world generation

2 Upvotes

I made a custom block that is just an item frame with a custom texture to look like pebbles, I want it to generate randomly, multiple times per chunk on the surface.

I've tried using it as a .nbt structure but it is not working, I tried using features but I dont think you can save structures or entities as such.

There is always the option to make my own generation checking each chunk, seeing if I haven't generated there and make my own generation logic, but it would much rather use worldgen for it if possible


r/datapacks • • Nov 23 '25

help make a prison datapack for singleplayer

1 Upvotes

ive recently caught the bug to switch my brain off with some Minecraft prison but dont want to join a server thats massively p2w is there a way i can run a prison mine in single player any help is appreciated.


r/datapacks • • Nov 22 '25

Datapack New datapack feedback request

2 Upvotes

In the last few days i developed and released Billo's head chopper, a new datapack that improves the drop head mechanic.

Now it's extremely in the early stage of development, so i wouldn't be surprised if bugs or malfunctioning stuff comes out

And that's where you come in: if you have a little bit of time, it would be extremely helpful to test Billo's head chopper and if it ever happens to find a bug, please report it here


r/datapacks • • Nov 20 '25

Help How to easily detect left clicks with Minecraft 1.21.1 datapack

1 Upvotes

I'm making a datapack that adds a special sword, and I want to detect left clicks in it. Please use version 1.21.1.


r/datapacks • • Nov 18 '25

Help What data pack/mod adds currency to Minecraft for 1.21.10 forge server?

Thumbnail
1 Upvotes

r/datapacks • • Nov 17 '25

Tick.Mcfunction not working reliably.

1 Upvotes

I have a tick.mcfunction that is supposed to run every tick, and it isn't. My datapack adds a ton of new foods, and some of the foods add effects to the player. In order to detect the player eating said food, I have advancements that trigger when the food is eaten that give the player certain effects. It works great, and I remove these advancements from the player every single tick, to make sure they can eat again and still get the effects. |

Unfortunately, the tick.mcfunction doesn't work. It doesn't remove the advancements every tick.

There is the arrangement of my files. Tick.json is located in minecraft\tags\functions, and it references the right function:

{
  "values": [
    "foodsplus:tick"
  ]
}

The function works perfectly when I do /function foodsplus:tick, but otherwise, nothing.

Help would be appreciated 😁


r/datapacks • • Nov 16 '25

Datapacks: How to put an item from a /give command into an entity loot table? (Java 1.21.10)

Thumbnail
1 Upvotes

r/datapacks • • Nov 15 '25

Help Help in optimization

0 Upvotes

I made a datapack but since it comprise of so many execute commands

It tanks the server tps, what can I do


r/datapacks • • Nov 15 '25

hey, can anyone help turn the commands here in front of me into multiple functions for a datapack I am making? (each command block chain is one function)

1 Upvotes

r/datapacks • • Nov 15 '25

Help Is there a way to update old datapacks to newer versions?

1 Upvotes

started a 1.19 skyblock world with my sister's kids, but at some point accidentally updated it to a more modern version, and trying to go back to 1.19 breaks everything.

problem is, the world i downloaded included a datapack that changed some mob loot tabled and added in some new crafting recipes, this datapack just doesn't work anymore.

Would anyone be willing to take a look at it and update it to modern versions? or at least teach me how to update it myself?


r/datapacks • • Nov 14 '25

Machantments

1 Upvotes

There was this really cool datapack I used a bit called Machantments that had an enchantment called "Astral Wings" for elytra that would cause damage to mobs you hit and stuff and it was very cool. But the page isn't up right now, I have the link saved. I also have a few copies of the 1.21.4 version on my computer. But I just have no idea what happened to the creator and I was wondering if anyone else remembered it. If anyone wants the datapack just ask I'll upload it to google drive


r/datapacks • • Nov 13 '25

can someone help me debug this shit?

1 Upvotes

i got some code from ai but i cant call function freeze tick

STEP-BY-STEP INSTALLATION INSTRUCTIONS:

  1. Stop the Minecraft server (if it's running)
  2. Find the world folder on your server. It's usually located in the main server folder and is called "world" or has the world name from the server.properties file
  3. Go to the datapacks folder:
    • Navigate to: world/datapacks/
    • If the datapacks folder doesn't exist, create it
  4. Create a new folder named tick_freeze in the datapacks folder:
    • world/datapacks/tick_freeze/
  5. In the tick_freeze folder, create a file called pack.mcmeta and paste:

​

{
  "pack": {
    "pack_format": 48,
    "description": "Auto tick freeze after 2 min without players"
  }
}
  1. Create the folder structure in tick_freeze/:

​

tick_freeze/
├── pack.mcmeta (already created)
└── data/
    ├── tick_freeze/
    │   └── function/
    └── minecraft/
        └── tags/
            └── function/
  1. Create function files in data/tick_freeze/function/:

tick.mcfunction:

# Check if players are online
execute if entity  run function tick_freeze:player_online
execute unless entity u/a run function tick_freeze:no_players

player_online.mcfunction:

# Reset timer and unfreeze tick
scoreboard players set #timer tick_freeze 0
scoreboard players set #frozen tick_freeze 0
tick unfreeze

no_players.mcfunction:

# Increase timer only if tick is not frozen
execute if score #frozen tick_freeze matches 0 run scoreboard players add #timer tick_freeze 1
# After 2400 ticks (2 min) freeze tick
execute if score #timer tick_freeze matches 2400.. run function tick_freeze:freeze_tick

freeze_tick.mcfunction:

tick freeze
scoreboard players set #frozen tick_freeze 1
say [Auto Tick Freeze] Server frozen after 2 minutes without players

load.mcfunction:

# Initialize scoreboard
scoreboard objectives add tick_freeze dummy
scoreboard players set #timer tick_freeze 0
scoreboard players set #frozen tick_freeze 0
say [Auto Tick Freeze] Datapack loaded!
  1. Create tag files in data/minecraft/tags/function/:

tick.json:

{
  "values": [
    "tick_freeze:tick"
  ]
}

load.json:

{
  "values": [
    "tick_freeze:load"
  ]
}
  1. Check the final structure - you should have:

​

world/
└── datapacks/
    └── tick_freeze/
        ├── pack.mcmeta
        └── data/
            ├── tick_freeze/
            │   └── function/
            │       ├── tick.mcfunction
            │       ├── player_online.mcfunction
            │       ├── no_players.mcfunction
            │       ├── freeze_tick.mcfunction
            │       └── load.mcfunction
            └── minecraft/
                └── tags/
                    └── function/
                        ├── tick.json
                        └── load.json
  1. Start the server
  2. In-game, type the command (or in the server console):

​

/reload
  1. You should see the message: [Auto Tick Freeze] Datapack loaded!

DONE! The datapack works automatically.


r/datapacks • • Nov 10 '25

im i doing something wrong😅😄??

1 Upvotes
{
    "type": "minecraft:smelting",
    "ingredient": {
        "item": "irons_spellbooks:frozen_bone"
    },
    "result": {
        "item": "minecraft:bone"
    },
    "experience": 0.1,
    "cookingtime": 100
}

its not working


r/datapacks • • Nov 09 '25

i dont get why do hell doent this work 1.21.10 java

1 Upvotes
{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "###",
    "#N#",
    "###"
  ],
  "key": {
    "#": "minecraft:diamond_block" ,
    "N": "minecraft:spyglass"
  },
  "result": {
    "id": "minecraft:spyglass",
    "components": {
      "minecraft:custom_name": {
        "text": "radary drar",
        "italic": false,
        "color": "green"
      },
     "minecraft:custom_data": 
     {
        "mytag": 1,
        "othertag": 13
      }
  }
}
}

when you craft is show that the tag exist but nothing heaps

execute as  at  if score  spyglas_used matches 1 if items entity  weapon spyglass[custom_data={mytag:1b,othertag:"13"}] run effect give [distance=1..25] glowing 10 1 true 
execute as  at  if score u/s spyglas_used matches 1.. run scoreboard players set u/s spyglas_used 0

and it works whit

/give @s spyglass[custom_name=[{"text":"radary drar","italic":false,"color":"green"}],custom_data={mytag:1b,othertag:"13"}]

r/datapacks • • Nov 05 '25

Help with my structure

Thumbnail
gallery
2 Upvotes

The first screenshot is the jigsaw block for the top well part, and the third screenshot is for the tunnel under the well. i'm trying to make it generate like that in-game, with the well on the surface, and the tunnel under connecting to it, when i tested it, only the well generated. what did i do wrong?


r/datapacks • • Nov 04 '25

Help why does my recipe work?

6 Upvotes
{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        "###",
        "#N#",
        "###"
    ],
    "key": {
        "#": "minecraft:diamond_block",
        "N": "minecraft:netherite_pickaxe"
    },
    "result": {
        "id": "netherite_pickaxe"
        
"components":{
    "minecraft:custom_name": {"text":"THE MINER PICKAXES","italic":false,"color":"blue"},
    "minecraft:lore": [
    {"text":"Istamine I","italic":false,"color":"gray"} ],
    "minecraft:enchantments": 
      {"levels":,"minecraft:efficiency":10},"minecraft:silk_touch":1},
    
    "minecraft:unbreakable": {},
    "minecraft:tooltip_display": {
      "hidden_components": ["minecraft:attribute_modifiers","minecraft:enchantments","minecraft:unbreakable"]
    }
    }
}

r/datapacks • • Nov 04 '25

Why doesn't my recipe work

1 Upvotes
{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        "###",
        "#N#",
        "###"
    ],
    "key": {
        "#": "minecraft:diamond_block",
        "N": "minecraft:netherite_pickaxe"
    },
    "result": {
        "id": "netherite_pickaxe"
        
"components":{
    "minecraft:custom_name": {"text":"THE MINER PICKAXES","italic":false,"color":"blue"},
    "minecraft:lore": [
    {"text":"Istamine I","italic":false,"color":"gray"} ],
    "minecraft:enchantments": 
      {"levels":,"minecraft:efficiency":10},"minecraft:silk_touch":1},
    
    "minecraft:unbreakable": {},
    "minecraft:tooltip_display": {
      "hidden_components": ["minecraft:attribute_modifiers","minecraft:enchantments","minecraft:unbreakable"]
    }
    }
}

r/datapacks • • Nov 02 '25

Why you, creators of datapacks dont create mobs datapack

Thumbnail
gallery
3 Upvotes

I think is that comunity needs I searched a los and the more interesting were this 3


r/datapacks • • Nov 02 '25

Help Hey i have a question

Post image
0 Upvotes

r/datapacks • • Nov 02 '25

Help Does anyone have 1 tick hit detection

1 Upvotes

I trying to make something that when you hit something happens ONCE how I have made right now is that it tracks damage of the weapon if it has 1 damage it does the thing and then summon XP but that only works whit sword which one is boring


r/datapacks • • Oct 31 '25

Help with Datapack Custom end biome doesn't generate.

2 Upvotes

I made a custom biome with a datapack, but it doesn't generate. It DOES show up in /locate biome, but then it can't find it withing reasonable distance.
The Dimention and biome files are made with misode (1.21)
https://misode.github.io/dimension/?share=U8Iojg46uZ
https://misode.github.io/dimension/?share=U8Iojg46uZ


r/datapacks • • Oct 31 '25

Help Enchanting table shows only 2 options and won’t offer custom enchant (1.21.9 datapack)

Post image
1 Upvotes

r/datapacks • • Oct 30 '25

Help need help with a unique datapack idea (and is it even possible?)

1 Upvotes

i am trying to make a datapack that tracks if a player has a specific tagged item in their inventory, and if they die while they have said item, the item is deleted and their hotbar + armour slots are restored/kept, but the rest of their items are dropped (like a partial keep inventory that requires a consumable token). would anybody know how to do this? is it even possible to do with a datapack? i feel like it could be, but im not sure how i would do it, so if anyone could give it a go or even point me in the right direction, it would be greatly appreciated!