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.

52 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
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
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
0 answers
428 views

How can I make a smithing table recipe that yields a named item?

I am trying to make a datapack where you can combine a turtle shell and a netherite ingot in a smithing table to get a turtle shell with knockback resistance and armor toughness. I have figured out ...
papayasaurstoast's user avatar
2 votes
0 answers
254 views

How can I check for an item in a specific slot in Minecraft using JSON

I'm currently working on an advancement pack for Minecraft and I wanted to be able to check if a player has a certain item in a certain slot of their inventory. This is what I'm working with right now:...
ieatcrayons05's user avatar
2 votes
0 answers
688 views

Hoe do I enable multiple resource packs for datapacks on one server?

I was having trouble trying to get my server to have multiple resource packs in one world. In my case, I have many datapacks on my server, but more than one of them require a resource pack, meaning I ...
PulseBeat_02's user avatar
1 vote
0 answers
11 views

Minecraft crashes when loading custom dimension/biomes, due to a feature order cycle

I'm working on a custom dimension, which is very basic, and has 3 custom biomes that are essentially just features cobbled together from other biomes. However, I cannot load my testing world, as it ...
Harth's user avatar
  • 99
1 vote
0 answers
72 views

operation scoreboard function will not run every tick

When I try to run this function below called checklevelscore.mcfunction Inside of tick.mcfunction, it does not change the level score at all. I expect it to continuously add 1 to the "level" ...
Whent Tray's user avatar
1 vote
0 answers
131 views

Make a custom scoreboard as a datapack for my server

I have a server where I host hide and seek games from time to time, where I'd like to show a scoreboard that shows the players' names, if they're a seeker or not (based on their team), how many ...
Rosy-senpai's user avatar
1 vote
0 answers
124 views

Custom block tags failing or working inconsistently

In my custom map, I'm setting up a system where magic spells check to see if they can be cast in a valid block. To do this, I've setup a block tag containing all the valid blocks where spells can be ...
Lonnie Hawkins's user avatar
1 vote
0 answers
151 views

Dynamically modify item data in player's inventory

I would like to modify the coordinates that a Lodestone Compass which is already in a player's inventory points to, where the coordinates are stored in scoreboards. I'm aware that it's possible to do ...
iTechnical's user avatar
1 vote
0 answers
109 views

Make snowballs damage using data merge

I would like to make snowballs damage players by modifying their data. I remember seeing a pack that could but cannot seem to find it. How do I do what? what do I need to edit? I tried HasBeenShot, ...
Aceplante's user avatar
  • 1,514
1 vote
0 answers
70 views

Make ocean monument spawn at absolute Y height

How do I change the absolute spawn height of the ocean monument? It seems to already have an absolute height (always being two blocks under the surface), but in my datapack that makes oceans deeper, ...
Aceplante's user avatar
  • 1,514
1 vote
0 answers
144 views

How to remove item offset with an invisible item frame?

When you make an item frame invisible any item in it has a 1/16 of a block offset so it sits almost flush with the surface it's on. Is there a way to remove this?
Wild Owl's user avatar
1 vote
0 answers
85 views

How do I run a function based on user input in Minecraft data pack?

I am new to making data packs and I wanted to know if a player pressed Q or something it would run a function.
pie man pie's user avatar
1 vote
0 answers
147 views

Summon/data merge villager with Explorer Map trade

As the title states, I would like to add an explorer map to a summon villager command but nothing seems to be working. More specifically, I would like to append that trade to an existing villager. Is ...
Aceplante's user avatar
  • 1,514
1 vote
0 answers
462 views

Giving an advancement on crafting a recipe

I have a datapack and in the datapack is a custom crafting recipe. In the advancements folder, I have created an advancement which should trigger when I craft the recipe. However if I craft the item I ...
user13749822's user avatar
1 vote
0 answers
130 views

How do you delete items in "invisible" slots of shulkers with commands?

When you generate a shulker with stacked items that are supposed to be unstackable inside, then break it, the items separate, and while 27 of them remain visible, the other 37 items (provided that you ...
aidenwilson's user avatar
1 vote
0 answers
47 views

Teleporting a bat with a hopper using a data pack

I am trying to tp the bat when summoned to an item in radius 32 around you then to tp it again 1 down for the hopper to pick it up, then bring it back to me and to kill the 2 entities to get the items....
Nik's user avatar
  • 11
1 vote
0 answers
119 views

How to store execution result on entity arbitrarily without effecting gameplay?

I need to store the amount of one item a player has in their inventory to their own entity, but I need to store it in an arbitrary way that doesn't effect the gameplay. If this makes it any clearer, I ...
vain_alibi's user avatar
1 vote
0 answers
64 views

Minecraft -- Advancement criteria that targets specific villager professions

I am trying to create an advancement criteria for 1.16+ where the advancement is granted after a player interacts with a specific villager. So far I have this: "criteria": { "test1&...
runnybabbit223's user avatar
1 vote
0 answers
449 views

Keep gravity with NoAI in Minecraft 1.16.4?

How do I have gravity affect NoAI entities? I want to have the Motion still work with a entities with NoAI. Is this possible? In 1.9 NoAI no longer prevents gravity, but in 1.16.4, NoAI cancels out ...
randomuser922's user avatar
1 vote
0 answers
127 views

Is it possible to have a loot table for a block tag in Minecraft 1.16.3?

I have a block tag and I wanted to know if I could make a loot table for the block tag. If you don't know what a block tag is, a block tag is basically a group of blocks. Could I make a loot table ...
randomuser922's user avatar
1 vote
0 answers
178 views

Is there a way to make naturally generated extra-large biomes?

I'm trying to figure out a way for a 1.16 bukkit/spigot-enabled-server to generate biomes that are even larger than the classic "Large Biomes" settings (like WAY larger), but I'm struggling ...
Tristan's user avatar
  • 11
1 vote
0 answers
40 views

How to select an entity that have same data as another

Suppose there are two players on a server: player A and player B. Each player has 2 tamed dogs which therefore have the Owner data corresponding to their owner. What I want to do is teleport player A'...
Weltkaizer's user avatar
1 vote
0 answers
217 views

(Java Minecraft 1.14) How to simulate overworld terrain generation?

I need to scatter a specific floating-island structure (stored in a structure file in a datapack) randomly throughout the overworld, so that there is one island approximately every 1000 blocks in any ...
Nik3141's user avatar
  • 2,485
1 vote
1 answer
777 views

Editing ore/structure generation with NBTExplorer

I was wondering if there was a way to increase the spawn rate of ores and structures using NBTEditor. I've been able to change player data, spawn "illegal" enchanted items, and other fun ...
VVolf Socks's user avatar
1 vote
1 answer
914 views

How do I check if a certain item has been taken out of a chest?

I am trying to make a custom crafting data pack for Minecraft. I have found some tutorials that show me how, but all of them use droppers that craft the item instantly after putting the items in. ...
Jordan's user avatar
  • 31
0 votes
0 answers
62 views

Why is my datapack timing out players?

I'm working on a "species" datapack, which includes a species meant to emulate spiders. One of the abilities of this spiders species is that they move more swiftly through cobwebs. How I'm ...
Harth's user avatar
  • 99
0 votes
0 answers
72 views

Why won't my custom ore feature generate?

I have a custom feature defined in a datapack, as shown below. Whenever I change the field Name from minecraft:cyan_wool to minecraft:lapis_ore, the lapis blobs show up during world generation. ...
Axel Reynolds's user avatar
0 votes
0 answers
111 views

Why won't my Minecraft loot table drop more than 64 blocks/items? 1.19.4

I've been working on a data pack for me and my friends that has a mob called a "loot pig" that is supposed to drop a lot of rare and valuable loot upon death, and I used the loot table ...
Alexander Day's user avatar
0 votes
0 answers
96 views

Help with launching wither skulls

I am working on a datapack for a server. It's a datapack with custom swords and I have 1 sword done already and I'm trying to make another one the wither sword. An ability you would expect it to have ...
Frog's user avatar
  • 21
0 votes
0 answers
111 views

How can I track that the player has placed a block and cancel the damage while on it?

I have this code in datapack: execute as @a at @s if block ~ ~-0.05 ~ minecraft:grass_block run effect give @s minecraft:instant_damage 1 1 true execute as @a at @s if block ~ ~-0.05 ~ minecraft:dirt ...
Mirnoy F's user avatar
0 votes
0 answers
151 views

How to move the contents of a chest to a Bundle using commands?

I'm currently trying to move the contents of a chest into a bundle (being held by a placeholder armor stand) but the most it would do is copy the last item in the chest (that is not minecraft:air) ...
YoYo's user avatar
  • 1
0 votes
0 answers
225 views

Test if an nbt string contains another nbt string

Story So I’m trying to make a searching system in Minecraft 1.16, and need to be able to get search results. To get search results, I can test if the search query is contained in any of the ...
randomuser922's user avatar
0 votes
0 answers
13k views

Minecraft Datapacks functions not working

I use 1.14.4 and when I put datapacks in the server, I can't find the functions and they don't appear or work when I manually put them in. I am using a home hosted server and am trying to get ...
Fierygamer85's user avatar
0 votes
1 answer
333 views

Force a falling block to place in Minecraft 1.16.4?

What is the best way to force place a falling block? In other words, is there a way to make a falling block place itself in the air? If so, what is the best way? I know you could use barriers under ...
randomuser922's user avatar