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
0 votes
0 answers
47 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
  • 39
1 vote
1 answer
155 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
75 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
106 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
65 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
108 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
  • 382
0 votes
0 answers
44 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
1 answer
35 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
  • 1
1 vote
1 answer
135 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
184 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
49 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
49 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
78 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
0 votes
0 answers
75 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
1 vote
0 answers
50 views

Ruined portal Nether in overworld

So, I am working on a datapack and this happened. I am not sure how but im assuming its something temperature related? What are the conditions for the spawning of a nether ruined portal? Edit: ...
Aceplante's user avatar
  • 1,495
1 vote
0 answers
72 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
95 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
341 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
79 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
65 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
102 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,495
1 vote
1 answer
36 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,495
2 votes
1 answer
190 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,495
2 votes
0 answers
249 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
59 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,495
1 vote
1 answer
94 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
  • 330
3 votes
0 answers
98 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,495
0 votes
1 answer
66 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
122 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
243 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,495
2 votes
1 answer
341 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
  • 99
2 votes
1 answer
505 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
102 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
169 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
66 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
646 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
78 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,495
-1 votes
1 answer
107 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
206 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,495
1 vote
2 answers
531 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
121 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,495
1 vote
1 answer
98 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,495
1 vote
1 answer
551 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
0 votes
0 answers
1k views

Minecraft Error Exit Code 6 Problematic Error [duplicate]

I recently made a post and I was told that it was a Problematic error, but still don't get it. I run a MacBook Pro Moneterey and the Chip is an Apple M1. (don't know if needed) And I have tried all ...
Builder Noob's user avatar
1 vote
2 answers
233 views

How to detect if an item is dropped near an armor stand?

I'm trying to make a sort of shrine system where a player can drop a set number of items, say five gold ingots near a shrine, which is a block with an armor stand inside of it, and be given a ...
Alex Sash's user avatar
  • 111
1 vote
1 answer
211 views

How to print the name of the block under me in Minecraft?

If wanted to make a data pack that takes the block under me and then says: "The block under me is [block]". How would I do that? If this was like a mix between Java and Minecraft then it ...
Danny Theis's user avatar
1 vote
0 answers
140 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,495
2 votes
1 answer
647 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