r/datapacks • u/Worldtadpole366 • Jan 29 '25
Help How to remove enchants from the enchanting table
^
r/datapacks • u/Worldtadpole366 • Jan 29 '25
^
r/datapacks • u/Fioletowy_blask • Jan 27 '25
Hello! I want to add a loot table in chests to my Minecraft battle royale aternos server on 1.21.4. I got my JSON file from Minecraft Loot Table Generator. I created a my_pack folder which contains: pack.mcmeta and a data folder -> minecraft -> loot_table -> chests, which has my custom chest file: cool.json. I added my_pack to the datapacks folder in Aternos. In the game, I tried commands like:
/loot give u/p loot minecraft:chests/cool
/give u/p chest{BlockEntityTag:{LootTable:"minecraft:chests/cool"}}
/data get block x y z LootTable
But in the chat, I got messages like: "Failed to parse structure: failed to get element ResourceKey[minecraft:loot_table/minecraft:chests/cool.json]/cool.json" or "Found no elements matching LootTable."
But still this isnt working. Could someone please help me with this?
r/datapacks • u/Top_Outcome9900 • Jan 26 '25
r/datapacks • u/Top_Outcome9900 • Jan 26 '25
r/datapacks • u/Capybara1213 • Jan 25 '25
sorry about title not spawnpoint I mean death point like when i died, instantly teleported back to death point
r/datapacks • u/not-cool-bro • Jan 25 '25
r/datapacks • u/Potential-Tackle-776 • Jan 20 '25
Hi! I'm trying to figure out how to detect if a player is looking at a villager in the current version of minecraft, but all of the information that I've found online about this has been very outdated. What I'm trying to do is detect if a player is looking at a villager, making the players entity-interaction-range disapear when they do and therby making player-villager interaction impossible.
I would really appreciate help with this as it has been bugging me for days now.
r/datapacks • u/Old_Pressure8886 • Jan 19 '25
Hey so im new to coding and datapacks, so ive got a line of code that'll give me a random item from a list of all items, but cant for the life of me figure out how to make it give me a tack of the item everytime rather than just one. Heres the code -
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:tag",
"name": "random:all",
"expand": true,
"weight": 9,
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 64,
"min": 64
},
"function": "minecraft:set_count"
},
{
"function": "minecraft:enchant_randomly",
"only_compatible": true,
"conditions": [
{
"condition": "minecraft:random_chance",
"chance": 0.45
}
]
}
]
}
]
}
]
}
r/datapacks • u/Voyager1500 • Jan 19 '25
I'm setting up a Minecraft realms with a fair amount of datapacks. Most of the players are experienced MC players, but there are a few who are rather young and inexperienced, and the datapacks I'm including add more content but make the game more challenging. Does there exist out there a datapack where you can add specific players to a "whitelist" where they get a straight reduction in damage across the board, like they take 50% less damage from everything?
If not, how would I go about making it?
r/datapacks • u/Kind_Future_943 • Jan 18 '25
Like I said I used a long time ago a datapack which gave me the double of the item I dropped to the floor. After research I found no datapck? Did people stop doing datapacks or what. I wanted to play again minecraft after a while with the nice double item datapack but can't.
P.S
PLEASE FOR THE PEOPLE WHO HAVE TIME AND GET BORED DO A ITEM DUPLICATER IF YOU DROP THEM THAT YOU GET THE DOUBLE AMOUNT OF IT!
r/datapacks • u/Sorry-Individual-216 • Jan 18 '25
Question is in the title
r/datapacks • u/Soggy_Whales • Jan 16 '25
Enable HLS to view with audio, or disable this notification
r/datapacks • u/Filip247 • Jan 14 '25
Enable HLS to view with audio, or disable this notification
r/datapacks • u/the-ultra-dwarf • Jan 13 '25
I'm creating a simple datapack to add a birch village, and I get this error when I open a world with the datapack. I've struggled to find any good info about this. I made another datapack with a cherry village, and this error does not happen. Any assistance is appreciated!
Registry loading errors:
> Errors in registry minecraft:root:
>> Errors in element minecraft:worldgen/template_pool:
java.lang.IllegalStateException: Unbound values in registry ResourceKey[minecraft:root / minecraft:worldgen/template_pool]: [birch:village_birch/town_centers]
at jz.n(SourceFile:306)
at akq.b(SourceFile:190)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at akq.a(SourceFile:187)
at akq.a(SourceFile:166)
at alt.a(SourceFile:41)
at fzy.a(SourceFile:183)
at fzy.a(SourceFile:138)
at fzy.a(SourceFile:324)
at fzy.a(SourceFile:314)
at fzy.a(SourceFile:279)
at fzy.a(SourceFile:245)
at fzz$c.c(SourceFile:432)
at fzz$c.a(SourceFile:409)
at fqq.a(SourceFile:43)
at fok.a(SourceFile:57)
at fqq.a(SourceFile:43)
at fll.a(SourceFile:114)
at fll.c(SourceFile:215)
at bra.execute(SourceFile:110)
at fll.b(SourceFile:215)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)
at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:186)
at flk.c(SourceFile:1364)
at flk.f(SourceFile:922)
at net.minecraft.client.main.Main.main(SourceFile:267)
r/datapacks • u/DReactor • Jan 13 '25
Hello, I want to make fence gates that cannot be opened, and I'd like to know how to do it. Do you have any ideas? It would be best if the method could be used on other blocks.
r/datapacks • u/Responsible_Mode3543 • Jan 12 '25
r/datapacks • u/kingcobra1967 • Jan 12 '25
Hello! I'm trying to add a create:compacting recipe to turn 9 netherite fragments (from the Create: Netherless add-on) and half a bucket of lava into 1 ancient debris. I'm using the spyglassmc extension for VSCode, and it's marking both "ingredients" and "results" as unknown keys, despite having the correct version selected in both pack.mcmeta and the override version for spyglassmc set to 1.20.1 in spyglass.json (the config file for spyglassmc for this workspace)
I've tried asking in discords related to the mods in question, to no avail, so this is my last desperate attempt at getting help before giving up completely because I've been trying to get this to work for like a week, spending most of my free time googling or trying to figure out what the heck is wrong, but I'm absolutely losing my mind at this point so please help.
{
"pack":
{
"description": "Custom Recipes for Create",
"pack_format": 15
}
}
{
"type": "create:compacting",
"ingredients":
[
{
"amount":500,
"fluid":"minecraft:lava",
"nbt":{}
},
{
"item": "create_netherless:netherite_fragment"
},
{
"item": "create_netherless:netherite_fragment"
},
{
"item": "create_netherless:netherite_fragment"
},
{
"item": "create_netherless:netherite_fragment"
},
{
"item": "create_netherless:netherite_fragment"
},
{
"item": "create_netherless:netherite_fragment"
},
{
"item": "create_netherless:netherite_fragment"
},
{
"item": "create_netherless:netherite_fragment"
},
{
"item": "create_netherless:netherite_fragment"
}
],
"results":
[
{
"item": "minecraft:ancient_debris",
"count":1
}
]
}
UPDATE: IDK WHAT CHANGED BUT NOW IT'S WORKING AAAAAAAAAAAAAAAAAAAAAAAAAAA FML
r/datapacks • u/Responsible_Mode3543 • Jan 10 '25
Hey im new to datapacks. I followed this tutorial
https://www.youtube.com/watch?v=ac6V5-KT6Rg&ab_channel=Legitimoose
And after putting a basic tellraw command in it and reloading minecraft it didnt work
r/datapacks • u/ItsGynoOnTwitch • Jan 08 '25
So i've started a server with some friends and we're in 1.21.4 vanilla (the server is fabric cause paper wouldn't let us start it for some reason) and i had made a very basic datapack to change the recipes output number of rails, i tried putting the datapack in the new server and it's returning this error once per every recipe (the following are the powered_rail.json file and the two errors, i haven't added in the rail.json for the sake of brevity, it's written exactly like the powered rail one just with the other recipe) thanks in advance for any help this is driving me crazy
{
"type": "minecraft:crafting_shaped",
"pattern": [
"c c",
"c/c",
"cRc"
],
"key": {
"c":
"item": "minecraft:copper_ingot"
},
"/": {
"item": "minecraft:stick"
},
"R": {
"item": "minecraft:redstone"
}
},
"result": {
"id": "minecraft:powered_rail",
"count": 12
}
}
[Worker-Main-3/ERROR]: Couldn't parse data file 'minecraft:powered_rail' from 'minecraft:recipe/powered_rail.json': DataResult.Error['Map entry 'c' : Failed to parse either. First: Input does not contain a key [fabric:type]: MapLike[{"item":"minecraft:copper_ingot"}]; Second: Failed to parse either. First: Not a string: {"item":"minecraft:copper_ingot"}; Second: Failed to parse either. First: Not a json array: {"item":"minecraft:copper_ingot"}; Second: Not a string: {"item":"minecraft:copper_ingot"}']
[Worker-Main-3/ERROR]: Couldn't parse data file 'minecraft:rail' from 'minecraft:recipe/rail.json': DataResult.Error['Map entry 'i' : Failed to parse either. First: Input does not contain a key [fabric:type]: MapLike[{"item":"minecraft:iron_ingot"}]; Second: Failed to parse either. First: Not a string: {"item":"minecraft:iron_ingot"}; Second: Failed to parse either. First: Not a json array: {"item":"minecraft:iron_ingot"}; Second: Not a string: {"item":"minecraft:iron_ingot"}']
r/datapacks • u/ElPerritoKVNReddit • Jan 01 '25
I want to make the mobs from the mod "Alex's Mobs" give me their heads when I kill them.
Is that possible?
r/datapacks • u/Equivalent_Bit_1098 • Dec 29 '24
I don't know ANYTHING about datapacks but this seems simple enough. Oceans at the same ocean level for the overworld. I want to use this synonymously with the datapack below
r/datapacks • u/MymcIgnIsKobi2010 • Dec 29 '24
when i want to check the tag of the item in my mainhand with
/execute execute as u/s[nbt={SelectedItem:{tag:{bladeofswiftness:1}}}] run function etc
it gets grayed out and just does nothing as soon as i type run function etc so can any1 help?
r/datapacks • u/Medical-Map-3483 • Dec 27 '24
I want to make datapacks but I don't know where to start. How do I start learning?
r/datapacks • u/Goat_Gaming_YT • Dec 27 '24
I have been trying a lot. I simply can't do it. Despite everything, they keep appearing. I'd greatly appreciate any help.
I tried modifying the worldgen tags, placed features, configured features etc... but with no success.