Questions tagged [minecraft-data-packs]

Used for questions about server-side packs that add or change recipes, advancements, structures and more in Minecraft Java edition. Always use with the [minecraft-java-edition] tag.

Filter by
Sorted by
Tagged with
7 votes
1 answer
1k views

What loot tables have mending?

I am looking for a list of chests that are able to have mending (either on an enchanted book or a "treasure" item). I remember seeing a list on the wiki a long time ago but it does not seem ...
Aceplante's user avatar
  • 1,514
7 votes
1 answer
740 views

Check players permission-level

I am currently working on a minecraft map for realms, and was wondering if there is any way to check a players op/permission level. In a minigame, no one has operator permissions except the owner who ...
Rob's user avatar
  • 71
6 votes
2 answers
13k views

How can I modify an item while it is inside the player's inventory?

I'm wondering whether it is possible to change part of the NBT or add NBT to an item that a player is holding. My goal is to make custom enchantments. For example, my system is set up so that when a ...
Wicked Grinn's user avatar
6 votes
1 answer
344 views

Can I create a custom biome with no floor for my datapack?

I've been looking into custom world generation recently and I found out that you can create custom biomes and have them generate in the world. I was wondering if it was at all possible to use this to ...
Sam Hill's user avatar
  • 458
5 votes
1 answer
1k views

What was the (unofficial) Minecraft Snapshot 20w14✨?

I remember seeing many videos about a community "20w14✨" update but I didn't know what it was. After searching for a while, I found it here: https://minecraft.plagiatus.net/article/minecraft-...
Jmooroof's user avatar
  • 362
5 votes
1 answer
54 views

Detecting the block under the block an entity is standing on

I'm attempting to build a datapack, and I need to know the block at @e[tag=relevantMob] ~ ~-2 ~ (The block under the block the relevantMob is standing on). Is there an easy and compact way to get that ...
AnDrew the Awesome's user avatar
4 votes
1 answer
211 views

Make part of a writable book read only

I want to make an input system tool for some data packs, and add buttons to press when you are done inputting. The problem is the person inputting text, can delete the buttons, and then the input won’...
randomuser922's user avatar
4 votes
1 answer
1k views

What structures can be placed with a structure block?

I would like to edit/replace the swamp hut and mineshafts, but I am not sure what the namespace/path is. So does anyone know of a list of the structures that can be placed with the structure block and ...
Aceplante's user avatar
  • 1,514
4 votes
1 answer
716 views

How to use predicates inside of advancements?

I'm trying to use predicates inside of advancement triggers. According to the wiki I should be abled to use the player tag, but I couldn't figure out, how the syntax works exactly. player: The ...
IceFreez3r's user avatar
4 votes
2 answers
974 views

Custom Advancements and Functions 1.13.2

I'm setting up a new server, and would like to have some custom Advancements. I was thinking of using these as a way to start new players out with some basics...as they go through the spawn room, ...
Rdster's user avatar
  • 141
4 votes
0 answers
148 views

How to add predicates to custom entity models?

I have been trying to make a boss fight in Minecraft and I have re-textured an armor stand to be the boss model, but when you spawn a normal armor stand it shows as the boss (without arms) as well. ...
RedSkull's user avatar
4 votes
1 answer
2k views

Why does /trigger have no objectives/commands after installing a datapack that has /trigger commands?

Disclaimer: I know this is similar to a previous question I asked that is related to this issue, but it was a bit too specific, and I've decided to ask a more general/focused question this time in the ...
pocketrice's user avatar
3 votes
3 answers
899 views

Can I run several commands after /execute, instead of just one?

I want to create a Minecraft datapack in which I can shoot an arrow and, when it reaches its target, summons a lightning bolt. Currently, I have this: execute at @e[type=Arrow] unless block ~ ~-1 ~ ...
Aray's user avatar
  • 33
3 votes
1 answer
319 views

Is it possible to disable sweeping edge on a sword item with commands in 1.20.1 Minecraft?

I am working on a weapon datapack that is a lot like the Forge mod Spartan Weaponry. I am currently creating a dagger and I want to disable the sweeping edge ability from 1.9 while still having 1.9 ...
TheEngineerGuy's user avatar
3 votes
1 answer
587 views

How do I teleport a player to a specific dimension based on NBT storage?

I have created a datapack where players can use /trigger brainage_minigames:toggle_minigames to toggle back and forth between playing regularly on the server and playing in a dimension specifically ...
Thomas's user avatar
  • 31
3 votes
1 answer
395 views

How do I put an experience orb into a scoreboard?

I'm currently working on a data pack the reworks the leveling system in Minecraft. One of the things that I'm currently struggling with is putting the XP orb into a scoreboard instead of your XP bar. ...
Peter Davies-Crandley's user avatar
3 votes
1 answer
96 views

How to clear a specific item from all players' inventories based on the item held by another player

For my minigame, I want all the players to be able to build "towns" which all have a specific key assigned to them (each with a procedurally generated Lore that specifies its id [eg. the ...
RedditDidn'tHelp101's user avatar
3 votes
2 answers
1k views

Proper path to modify villager anger?

I would like to make villagers angry on command. I assume I need to use /data modify, but I do not know the proper <targetPath>. I have the following so far: execute as @e[type=villager] run ...
Aceplante's user avatar
  • 1,514
3 votes
1 answer
448 views

Tag for items not burnable in lava (like netherite)

Nice and simple. What is the tag for items to be not burnable in lava, like netherite ingots? Or how would I make other items like obsidian not burn?
Aceplante's user avatar
  • 1,514
3 votes
2 answers
995 views

How to protect a player from firework rocket explosion damage?

I try to make a pvp server that players are able to attack each other by using a crossbow loaded with firework rocket.The problem is if the player fires his crossbow too close to themself, they will ...
itsme's user avatar
  • 39
3 votes
0 answers
29 views

How can I detect which hotbar slot a player is selected when all the hotbar slots are empty?

I'm creating a datapack that needs to detect when the player has a specific hotbar slot selected. The issue is, I also need all hotbar slots to be empty. Is there any way to do this?
Harth's user avatar
  • 99
3 votes
0 answers
71 views

Select nearest entity which isn't the owner of a projectile

I'm working on creating a homing missile which targets any flying object. However, the main limitation is that the missile can only be launched from the ground because it tends to track whoever shot ...
WarpPrime's user avatar
  • 1,777
3 votes
0 answers
110 views

Skeleton killed by its own arrow achievement?

I would like to make an achievement for killing a skeleton with a reflected arrow. How would I go about doing that? There does not seem to be any noticeable NBT data difference other than owner. There ...
Aceplante's user avatar
  • 1,514
3 votes
0 answers
489 views

Can a custom dimension overwrite the overworld?

I am trying to learn how to use datapacks to affect world generation. I currently have a datapack with the following files: \pack.mcmeta: { "pack": { "pack_format": 8, &...
Programmer S's user avatar
3 votes
0 answers
164 views

How would I test if my custom dimension exists?

I'm making a datapack that relies on a custom dimension. If the dimension hasn't loaded in, it will break things. When you add the datapack to a pre-existing world, then the dimension won't load until ...
ThePhantomPig791's user avatar
2 votes
1 answer
121 views

How would I set a different "world spawn" for each player?

I am fully aware of the /spawnpoint command, however this does not quite work for my purposes. I am making a plugin that allows people to do the "heart tree" challenge easily, and I want to ...
Lionlance's user avatar
2 votes
1 answer
252 views

Custom Biome by Y level minecraft datapack

I would like anywhere under y28 in the nether to be a custom biome called "nether_depths". I tried using code from the deep dark (since it only spawns deep in the world), but it does not ...
Aceplante's user avatar
  • 1,514
2 votes
1 answer
263 views

Not broken by player loot table?

I have a loot table that makes it so logs only drop when mined with an axe; That part was easy. But I noticed it did not drop to creeper explosions/tnt due to failing the match tool check, which ...
Aceplante's user avatar
  • 1,514
2 votes
2 answers
822 views

Loot table based on NBT data

So I would like to have phantoms drop extra membranes the larger they are, except it seems like the min/max is ignored? When I kill regular phantoms with looting 3 for example I usually get 4 ...
Aceplante's user avatar
  • 1,514
2 votes
1 answer
207 views

Minecraft Data pack bug, mobs are just floating items

I play on a Mac, I'm not sure if that matters since it worked every time up to this point. This is what's wrong, for example. I have installed a random datapack, a snow golem with a melon head instead ...
FinnStudios's user avatar
2 votes
2 answers
5k views

Datapacks question: Craft Enchanted Items [duplicate]

The title explains most of it for you. I basically want a cursed crafting recipe However, I want the resulting wooden pickaxe to be enchanted with sharpness (for absolutely no reason). I tried ...
HalpMe's user avatar
  • 49
2 votes
1 answer
942 views

Sub-tick loops in functions without recursions

We all know that adding the minecraft:tick tag to a function can make the function run once every tick, but this would create a really slow loop. The question is, how to complete a loop in a single ...
Chlorie's user avatar
  • 133
2 votes
1 answer
484 views

Minecraft Datapack advancements not working

I was making a custom achievement, but the funtion in the reward doesn't run when the conditions are met. The advancement does grant appear in the /advancement command and it does grant the reward ...
bco2135's user avatar
  • 129
2 votes
1 answer
627 views

Minecraft custom loot table not working 1.19.2

I am trying to create a custom chest loot table and no matter what I try, it is not working. I have been researching this issue for 3 days now, and have had no success. My pack is in this filepath: ......
kaitlynmm569's user avatar
2 votes
1 answer
139 views

Can mobs be equipped with armour based on drops from a loot table?

I am making a RPG/Dungeon Crawler datapack and I want to procedurally make dungeons throughout the world. I have somewhat figured out how to make the dungeons, but I want the monsters to be random (e....
TheEngineerGuy's user avatar
2 votes
1 answer
774 views

Is it possible to create a custom ore and add it to world generation with a Datapack?

As the title suggests, I am wanting to add custom ores to the game (I.E. new gemstones like ruby, sapphire, topaz, etc), but I have no clue how to control world generation to add such a thing. I tried ...
TheEngineerGuy's user avatar
2 votes
1 answer
219 views

Execute as mobs wearing any type of armor?

I am making a datapack that adds weight (slight movement speed penalty) to armor using attributes. I got it working for players using the command: execute as @e[type=player,nbt={Inventory:[{Slot:100b}]...
Aceplante's user avatar
  • 1,514
2 votes
1 answer
442 views

Help with loading far away random chunks using commands

I'm making a working Tardis in Minecraft using datapack dimensions. Part of that is the ability to send the Tardis exterior anywhere in the world (And eventually in the Nether and End too). The /...
Accorwolf's user avatar
  • 111
2 votes
1 answer
6k views

List of all Minecraft crafting recipes for crafting web

I am attempting to build some sort of crafting web to find the most efficient crafting trees and which items need to be farmed to craft every other remaining item in the game. An old example is shown ...
Josh Hales's user avatar
2 votes
1 answer
2k views

Biome-specific music with resource packs?

So, I saw a suggestion on r/Minecraft talking about biome-specific music, and wondered if it was possible with resource packs? I doubt it is, but i know there are some Minecraft gods out there. I also ...
4AC11's user avatar
  • 67
2 votes
1 answer
440 views

(Java Minecraft 1.14) How to give effects in a function rewarded by an advancement?

I have a function triggered by an advancement that is supposed to give the player nausea and strength. It looks like this: tellraw @s [{"text":"[","color":"dark_aqua"},{"selector":"@s","color":"...
Nik3141's user avatar
  • 2,485
2 votes
0 answers
12 views

Can multiple custom biomes share the same generation features?

I'm working on a custom dimension datapack, and the dimension is just two biomes. Whenever I try to generate terrain in that dimension, the game crashes, referencing a "feature order cycle" ...
Harth's user avatar
  • 99
2 votes
1 answer
217 views

Tick.mcfunction file spontaneously gets disabled. How to fix?

I was coding my first Minecraft data pack, and everything was working perfectly for the first bit. After some time of coding, the tick file seemed to entirely stop working. I checked in the tick.json ...
Korogue's user avatar
  • 392
2 votes
1 answer
64 views

How do I make an item change colours in Minecraft with only one texture?

I want to make an item use a single greyed out texture to be any colour, much like leather armour. I would do this with OptiFine but I don't know if it supports that or how I would even do that. All I ...
Vito M's user avatar
  • 21
2 votes
0 answers
67 views

Ruined portal Nether in overworld

So, I am working on a datapack, and I came across this ruined portal (in the Overworld). However, this specific portal was of the Nether variant (blackstone instead of stone). What are the conditions ...
Aceplante's user avatar
  • 1,514
2 votes
0 answers
309 views

How do we link an items nbt numbers to a scoreboard number?

I'm working with my datapack but got stuck with this problem. We're basically connecting nbt numbers into a players scoreboard number. I'm trying to link an item's nbt to a scoreboard. For example, ...
Athryn's user avatar
  • 61
2 votes
0 answers
314 views

What does the "overworld_caves" dimension type do?

minecraft:overworld_caves is one of the preset dimension types. However, being down in the cave layer seems to use the minecraft:overworld behavior. What does minecraft:overworld_caves do?
Aceplante's user avatar
  • 1,514
2 votes
0 answers
735 views

Issues with overwriting crafting recipe in Minecraft Data Pack

I'm new to making resource packs for Minecraft Java and have decided to try to create some custom crafting. I've tried to change the recipe for black dye, requiring you to craft it with a diamond. I ...
user13749822's user avatar
2 votes
0 answers
457 views

Testing for if an item entity has an ID matching a list of item names

I am making a datapack that uses copper as a fuel, however part of that means that I need to be able to test an item when it is on the ground to see if it is one of the 37 copper items. I have already ...
Accorwolf's user avatar
  • 111
2 votes
1 answer
84 views

Error: Objectives cannot be longer than 16 characters

I make use of scoreboards to keep track of variables. However, this error popped up on the console when I tried reloading my datapack: Failed to load function terraria:wands/rod_of_discord/use java....
ShadeOfLight's user avatar