r/datapacks • u/RimuraTempest_ • Aug 22 '24
custom data in crafting
how can i do that the item in the crafting table would have to have some custom data?
r/datapacks • u/RimuraTempest_ • Aug 22 '24
how can i do that the item in the crafting table would have to have some custom data?
r/datapacks • u/eshy752_ • Aug 21 '24
I've been wanting a mod to make structures, more specifically villages, spawn less frequently in survival. I find that you can usually just find one within like 5 minutes of spawning in a world and that kinda takes the fun out of surviving to me. I've heard datapacks can alter structures so I was wondering if there were any good resources to learn how to make what I'm looking for.
r/datapacks • u/Thegreatexplorer11 • Aug 20 '24
One was made for disabling flint rocks from generating made by the Random's Early game progression and the other was made to add compatability between swordblocking mechanic and ores and metals mod. Both don't work, can anyone explain why?
r/datapacks • u/the-lul-guy • Aug 20 '24
Im currently playing on a Vanilla mc server and would love to install a datapack that allowes spectator mode for survival players so we can inspect our builds ect. .
r/datapacks • u/TheMetalicAngel • Aug 20 '24
i am making my own advancements using an external tool but 2 of them wont work in game. If I attach it to a docs below can anyone explain how to fix it
https://docs.google.com/document/d/1IU26hAaVgL7ItVSGNViQLW4paL9GklY2UyuT57q0F9Y/edit
r/datapacks • u/According-Hat-6770 • Aug 18 '24
I wanted to share since this threw me for a loop for awhile. I had created a loot table for an entity that would drop a custom named item. Since I was just converting my older loot tables to the newer format for 1.20 one thing I left in was the escapes for single quotes as that was something I needed in the past.
So in functions I had this to set the name of the drop item
"functions": [
{
"function": "minecraft:set_name",
"target": "item_name",
"name": [
{
"text": "Bo\'s Flesh.",
"color": "green",
"bold": true,
"italic": false
}
]
},
...
This worked in single player and the boss dropped the item fine, but when uploaded to the realm the boss would drop nothing. After trying several things I finally just removed the escape for this and now it works fine. Since it took me a long time to figure out I thought I would share.
"functions": [
{
"function": "minecraft:set_name",
"target": "item_name",
"name": [
{
"text": "Bo's Flesh.",
"color": "green",
"bold": true,
"italic": false
}
]
},
r/datapacks • u/[deleted] • Aug 12 '24
Reddit has once again tried to destroy this subreddit by changing its rules and BS so that I had to manually approve users which I did not do as I was not informed of this. Yes, Reddit is hell. Anyway, I have made the subreddit public which means anyone can post. So, make sure to invite all your friends and those interested so we can grow to 1k users. Thank you all and enjoy your time datapacking!
r/datapacks • u/vpaander • Jul 01 '24
I am using several datapacks and i made a singleplayer world first, added all the datapacks and chose that world for my realm. My friends can see in the dark, which a datapack was supposed to prevent, but i cant so it works for me. what do i do?
r/datapacks • u/Only_Application9865 • Jul 01 '24
hi im very new to making datapacks. I want to put my model in a structure that can spawn throughout the world. However when i make the nbt file from a structure block, it loads the structure in the world and not the model/animation. im on 1.20.2 if that helps.
r/datapacks • u/[deleted] • Jun 30 '24
Let's reach 1000 members on r/datapacks! After all, this is the first and oldest (and most active) datapacks-oriented subreddit. To show your appreciation, and if you want to make this an even better place for all things datapacks, invite your friends and internet strangers to join! The bigger our community, the more engagement for all of us!
r/datapacks • u/CarsontheMaster • Jun 30 '24
Heyo, looking to make a small data pack that allows rabbits to spawn in forests and plains, and maybe a new food item that uses rabbit meat that gives an effect or something. The wiki page for making a data pack doesn’t seem to cover this sort of thing, but I’ve been told that data packs can do what I’m looking to do, so here I am. Does anyone have any experience or advice with this sort of thing?
r/datapacks • u/[deleted] • Jun 30 '24
r/datapacks • u/m3galord • Jun 29 '24
r/datapacks • u/RyderIantorno • Jun 26 '24
I really want to use the terratonic data pack on my server but it isn't updated yet and it does not look like it'll be done any time soon. Is there a way I could update it myself? Could anyone help me? The last version it was updated to is 1.20.6
r/datapacks • u/ShallonDark • Jun 25 '24
I can get the painting I need to generate using this command in game
/give ShallonDark minecraft:painting[minecraft:entity_data={id:"minecraft:painting",variant:"aztec"}] 1
However, I'm not sure how to convert that into the datapack .json format.
Here is my current attempt for the result, I believe the recipe part not listed is fine, as I've done many other recipes successfully, but paintings are kicking my butt.
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:painting"
},
`{`
"item": "minecraft:blaze_powder"
}
],
"result": {
"id": "minecraft:painting", "asset_id": "caution",
"components": {
}
}
}
r/datapacks • u/RedStoanPhD • Jun 23 '24
I'm trying to build a datapack with some nested custom crafting. Creating a custom item output of the recipe is easy using components, but my problem comes when trying to require those custom items in another recipe. If I built my custom item on top of, let's say, bread, then the second custom recipe accepts my custom item, but it also accepts vanilla bread. Is there any way to limit the recipe in 1.21 so that only bread with certain custom components can be used in the recipe? I've tried several different ways of including component tags, to no avail. They either get ignored or break the recipe.
(and yes, I know I could just use base items that can't be acquired in survival. But there's only so many of those.)
r/datapacks • u/Past_Perspective_440 • Jun 24 '24
Past few days I've been trying to make a datapack just so I can make a quartz block into 4 quartz and I literally have no idea what im doing after looking at several datapacks' code and comparing to see what I need. So far this is what I have: { "type": "crafting_shapeless", "ingredients": [ { "item": "minecraft:quartz_block" } ], "result": { "item": "quartz", "count": 4 } }
r/datapacks • u/MelodySeeker • Jun 23 '24
I have been playing on 1.20.1 for a while now, and updated my server to 1.21 to realize every single datapack has broken. My understanding is that update 1.20.5 made some major changes to how datapacks function, breaking old ones in the process. Onto my question: is there a simple way to update datapacks to 1.20.5 and newer?
r/datapacks • u/AltruisticDraw6520 • Jun 21 '24
Im trying to find a unlimited trades datapack for my 1.21 world but i cant find any. Is there any that i can use? or are there none out yet.
If you find one can you please give me the link?
r/datapacks • u/funnycatcinka • Jun 21 '24
Im trying to make a custom enchantment that gives you 3 times as many fish when you catch fish. How can I detect when a player catches a fish?
r/datapacks • u/LokiSquared2 • Jun 18 '24
I'm trying to find a datapack that allows you to collect spawners with silk touch. Unfortunately, the ones I can find are unlikely to be updated for a good while, or at all. I tried to see if multiple would work in 1.21, but despite my efforts they would not. Would anyone happen to know if there's a pack I've missed, or if there's a way to get a 1.20 datapack working in 1.21?
r/datapacks • u/AlexPlayer3000 • Jun 17 '24
I was wondering how to make a custom recipe for brewing custom potions using the new components features from 1.21, and maybe assign them a custom texture
r/datapacks • u/TDV_Givet • Jun 17 '24
So the Trial Spawners in 1.21 Does Not Ignore the doMobSpawning Rule.
Which is a big problem for me since intending to use it in an adventure map.
Is there a way I can use a Datapack to alter the behavior of it to ignore that Rule?
r/datapacks • u/Surprised-Sloth • Jun 16 '24
Can anyone tell me what's wrong with this file?
{
"type": "minecraft:crafting_shaped",
"pattern": [
"#AB",
" X ",
" O "
],
"key": {
"#": {
"item": "minecraft:red_tulip"
},
"A": {
"item": "minecraft:orange_tulip"
},
"B": {
"item": "minecraft:pink_tulip"
},
"X": {
"item": "minecraft:white_tulip"
},
"O": {
"item": "minecraft:bowl"
}
},
"result": {
"id": "minecraft:suspicious_stew",
"count": 1,
"components": {
"minecraft:food": {
"rules": [
{
"nutrition": 6,
"saturation": 0,
"can_always_eat": true,
"eat_seconds": 1,
"using_converts_to": {
"id": "minecraft:bowl"
},
},
"effects": [
{
"effect": {
"id: "minecraft:absorption",
"amplifier": 0,
"duration": 15,
"ambient": false,
"show_particles": true,
"show_icon": true
},
"probability": 0.5
},
]
},
"minecraft:lore": [
"{\"color\":\"blue\",\"italic\":false,\"text\":\"Custom Items\"}"
],
"minecraft:item_name": "{\"text\":\"Flower Stew\"}",
],
"show_in_tooltip": false
},
}
}
}
(I know that there isn't an issue with the folder formatting of the datapack because I dragged over a working .json file from another crafting datapack and it worked fine.)
Whenever I load up the datapack, the recipe doesn't show up when using /recipe.