Skip to main content

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
4 votes
0 answers
33 views

In Minecraft, is it better for performance to run one function with an @e selector, or run a function as @e?

I'm writing a Minecraft Datapack that adds "Abilities", each of which has its own function that's run once per tick. I have a scoreboard objective for each Ability, that determines whether ...
Harth's user avatar
  • 159
2 votes
0 answers
16 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
  • 159
1 vote
0 answers
17 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
  • 159
3 votes
0 answers
36 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
  • 159
5 votes
1 answer
57 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
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
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
  • 159
1 vote
1 answer
653 views

How to change local difficulty in all chunks?

On my SMP with a few datapacks when checking the F3 screen the local difficulty is displayed as "??" and the day counter which should be in the same line is straight up missing. Mobs hurt a ...
Maksiks's user avatar
  • 21
1 vote
0 answers
137 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
4 votes
0 answers
150 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
1 vote
1 answer
193 views

Detecting when an armor stand gets hit

I am creating a datapack which requires the use of armor stands. However, the main issue here is that I don't know how to detect when an armor stand gets hit. Most mobs, including the armor stand, ...
WarpPrime's user avatar
  • 1,777
2 votes
1 answer
248 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
0 votes
0 answers
77 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
2 votes
1 answer
67 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
1 vote
1 answer
237 views

How to make smithing templates non-consumable?

I'm looking to make a datapack (or if impossible, bukkit/spigot/paper plugin, but I haven't got any experience with plugins) that makes it so smithing templates are not consumed upon crafting. I also ...
Jaïr Paalman's user avatar
3 votes
1 answer
336 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
1 vote
1 answer
66 views

Minecraft datapack advancement predicate for horse's items (enchanted saddle)

I am trying to make a datapack that uses the started_riding advancement trigger. I need help fleshing out the details of how to make the predicate that I want. I want the advancement to only be given ...
turtlemcnuggets's user avatar
3 votes
0 answers
75 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
2 votes
1 answer
129 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
0 answers
69 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,538
1 vote
0 answers
131 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
157 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
3 votes
1 answer
627 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
101 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
0 votes
0 answers
97 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
1 vote
0 answers
115 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,538
1 vote
1 answer
40 views

Achievement for consuming tagged item

I would like to make and achivement for eating a tagged type of food, found in other loot tables, except neither of them are loading (The loot tables are empty when i open them). For the loot table I ...
Aceplante's user avatar
  • 1,538
2 votes
1 answer
260 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,538
2 votes
0 answers
311 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
1 vote
0 answers
72 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,538
1 vote
1 answer
124 views

Minecraft regular texture not showing

I'm making customModelData glasses using the pumpkin. My custom glasses are working perfectly but the regular pumpkin texture is not showing. The content of my models/carved_pumpkin.json { "...
Mouton_redstone's user avatar
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
3 votes
0 answers
111 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,538
0 votes
1 answer
69 views

How do I make a villager do different things when clicked on multiple times?

I understand load.mcfunction in data packs is for anything in-game when reloaded. And tick.mcfunction is for anything occuring according to in-game ticks. With this limited knowledge I got villagers ...
Flow Works's user avatar
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
2 votes
0 answers
336 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,538
2 votes
1 answer
531 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
665 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
0 votes
1 answer
128 views

How to add a player to the killer's team

I'm making a datapack where if you kill somebody they join your team, I already know how to track deaths and kills and I thought of making two scores, one is death count and the other is kills. If a ...
NotKatsuro 3's user avatar
1 vote
1 answer
221 views

How to unban a certain player without the use of an admin

So I have a problem. I'm making a datapack in minecraft 1.19 and I want a way to unban players from the server using it. It's supposed to be done by throwing or using a nether star (unban the player ...
NotKatsuro 3's user avatar
1 vote
0 answers
91 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
3 votes
3 answers
962 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
1 vote
1 answer
94 views

Editing "special recipes" Minecraft

Despite the grindstone being added as the new way to combine items, mojang has marked that bug where players can still combine tools in the crafting grid as "wont fix". So, obviously I have ...
Aceplante's user avatar
  • 1,538
-1 votes
1 answer
153 views

How do I limit my raycast range?

I have these raycast commands and I want to put a range of 6 blocks on it. How can I do it? execute as @e[dx=0, distance=0.1..] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run effect give @s ...
2wen's user avatar
  • 89
2 votes
1 answer
273 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,538
1 vote
2 answers
835 views

How do I exclude only myself in an execute command?

I have followed a raycasting tutorial: . I stopped at 7: 17 because I don't need headshot detection. It says to exclude players to avoid putting the effect on yourself. ...
2wen's user avatar
  • 89
2 votes
1 answer
141 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
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,538
1 vote
1 answer
100 views

Adding custom structure to replace ancient_city_center

I would like to have a custom structure I made replace the city_center structure of an ancient city, except when I do that, cities do not generate at all. To make sure it was working, I replaced the ...
Aceplante's user avatar
  • 1,538
1 vote
1 answer
659 views

Is it possible to add components/bars to the HUD Minecraft Java 1.19.x

I am trying to make a survival datapack that would require you to drink water. Is it possible to add an element to the HUD to indicate how much water you need based on a scoreboard value? I did some ...
TheEngineerGuy's user avatar