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.
160
questions
2
votes
1
answer
25
views
How to add existing tags to items? (1.19.2, modded)
I'm trying to add existing tags to items, most notably things like forge:swords. Because a lot of items aren't correctly recognized in the modpack I'm making. Most of it would be just in case, but ...
-1
votes
0
answers
28
views
Is there any method (datapack, mod, command, etc.) to make non-mountainous biomes (e.g. plains) flatter in minecraft 1.18+?
Many apologies in advance for my occasionally terrible English since I'm not natively an English speaker. Feel free to edit or comment.
What problem am I encountering?
I'm trying to build a railway ...
2
votes
1
answer
44
views
How do I make a Minecraft fishing bobber attach to (catch) an armor stand using commands?
I'm creating a datapack (in Minecraft Java Edition 1.21) that allows me to fish in lava, and I've encountered a pretty annoying problem. When you cast the fishing rod, the bobber falls (sinks) to the ...
0
votes
1
answer
73
views
In Minecraft, is there a way to test if a player is at maximum health, regardless of their Max Health attribute?
I'm trying to run commands on the condition that the executing player is at full health. The problem is, in this datapack, a considerable
amount of players will not have the default Max Health ...
2
votes
0
answers
108
views
Hideflags 1.21?
How would I hideflags on an item dropped by loot table in minecraft 1.21? This seems to be done with a new component called "show_in_tooltip", but the generator I have been using (misode), ...
1
vote
1
answer
85
views
How do I change loot tables to make zombies, skeletons, piglins and creepers drop their heads without needing a charged creeper explosion?
I have downloaded the More Mob Heads data pack by Vanilla Tweaks for Minecraft Java 1.21, as well as their Anti Creeper Grief data pack, which changes Creeper explosions to have an explosion radius of ...
0
votes
0
answers
53
views
Give Levitation to player wearing helmet with custom model data
I want to give Levitation 20 to all players who wear a helicopter hat (a retextured leather helmet), with custom_model_data=6. So far it gives Levitation to anyone who wears a leather helmet.
Here is ...
-1
votes
1
answer
82
views
How to make a entry prohibited area in minecraft
In my server, anyone is free to enter and visit server members' buildings in default adventure mode.
However, there are some areas that we don't want non-member players to enter.
So I want to create ...
0
votes
1
answer
78
views
Minecraft Loot table with block nbt condition to prevent drop
I want prevent the block drop for banners if the contain a specific banner pattern combination. I know there is the loot table condition location_check which can test the NBT of a block but I’m unsure ...
5
votes
0
answers
112
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 ...
2
votes
0
answers
27
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" ...
1
vote
0
answers
63
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 ...
4
votes
1
answer
205
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?
5
votes
1
answer
84
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 ...
1
vote
0
answers
78
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" ...
0
votes
0
answers
68
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 ...
1
vote
1
answer
1k
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 ...
1
vote
0
answers
167
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 ...
4
votes
0
answers
169
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.
...
1
vote
1
answer
331
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, ...
2
votes
1
answer
386
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 ...
2
votes
1
answer
119
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 ...
1
vote
1
answer
319
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 ...
3
votes
1
answer
501
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 ...
1
vote
1
answer
85
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 ...
3
votes
0
answers
98
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 ...
2
votes
1
answer
166
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 ...
2
votes
1
answer
105
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 ...
1
vote
0
answers
192
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 ...
1
vote
0
answers
194
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 ...
3
votes
1
answer
856
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 ...
3
votes
1
answer
118
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 ...
0
votes
0
answers
117
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 ...
1
vote
0
answers
130
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, ...
1
vote
1
answer
46
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 ...
2
votes
1
answer
363
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 ...
2
votes
0
answers
334
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, ...
1
vote
0
answers
83
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, ...
1
vote
1
answer
157
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
{
"...
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-...
3
votes
0
answers
124
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 ...
0
votes
1
answer
73
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 ...
1
vote
0
answers
150
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?
2
votes
0
answers
418
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?
2
votes
1
answer
755
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 ...
2
votes
1
answer
866
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:
......
0
votes
1
answer
148
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 ...
1
vote
1
answer
235
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 ...
1
vote
0
answers
111
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.
3
votes
3
answers
1k
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 ~ ...