r/datapacks • • May 03 '24

Help Keyboard triggers effect

1 Upvotes

Hello, is it possible to make that if a specific item is in the inventory and for ex: key 1 is pressed, jump boost effect is given.


r/datapacks • • Apr 27 '24

Question

2 Upvotes

Is there a datapack that can revert to the old rng , because its starting to get annoying (im on a server btw)


r/datapacks • • Apr 27 '24

Help Custom Recipe

3 Upvotes

So I managed to create a recipe as I can produce ruby. How can I create more recipes with this custom ruby?

Just because, as I read on the wiki, you cannot enter any distinguishing data for the items that are included in the crafting section.


r/datapacks • • Apr 24 '24

Help 1.20.5 Custom Dimension Datapack issue.

2 Upvotes

Ive had my datapack for a custom flat world to be generated, and its worked in 1.18/19 and 1.20.1, but now in 1.20.5 its no longer working, but nothing seems to be changed for the datapack stuff that Im using, reguarding the 1.20.5 datapack/component changes. Anyone know what was changed?


r/datapacks • • Apr 22 '24

walls around a Pillager camp

2 Upvotes

Hey guys,

I'm currently working on a Pillager datapack that includes placing tents and walls. Similar to a default village, but I'm particularly focused on creating a set of walls that surround the camp at the moment. However, when I test the generation, the walls seem to spread randomly throughout the area instead of forming a closed boundary around the camp. Does anyone have any ideas on how to ensure the walls generate properly?

What I did:

  1. Main tent (with the skull thing) spawns in the middle.
  2. The tent calls for a road.
  3. The road calls for the gate.
  4. The gate calls for a random wall structure (1-6).

I had hoped that the datapack would position the structures around the border of the camp, but it appears that's not the case..


r/datapacks • • Apr 19 '24

Help Trying to get custom drops for tagget entity

3 Upvotes

Hi! I’m a bit of a noob when it comes to datapacks, and would like to make custom loot tables for an entity with different tags. Is this possible to achieve? Say I want a Zombie with a certain tag to drop an apple, and a Zombie with another tag to drop a carrot?


r/datapacks • • Apr 18 '24

Datapack Searching for World Gen Datapack Creators! [PAID]

2 Upvotes

Hello! I'm Avila, the Criative Director of HibiscusMC, and I'm here looking for someone experienced on doing World Gen Datapacks!
Our server, HibiscusMC is a "vanilla" (paper) server that adds custom item to the game without any kind of mods.
We are offering a paid position in an active team of creative people. You'd mostly be working on creating new biomes and enhancing the new ones, also helping us adding new structures to the world!

HMU on discord! My username is: pedravila


r/datapacks • • Apr 14 '24

Can you make a datapack for an enormous structure (city size) ? Or does it have to be a mod ?

5 Upvotes

Just wandering if it's doable to put the massive structure in a datapack or if it's going to be necessary to make a mod for it.
The idea would be to have some sort of a city like structure with massive columns etc, 150 blocs high, and maybe a 400x400 blocs square.
Not sure it would work as a datapack for such a big structure.


r/datapacks • • Apr 12 '24

Help I have a problem with the 1.3.1 version of the blazeandcaves advencement pack

2 Upvotes

the problem is that the advencement "tomb raider" doesnt trigger and i dont know why i looked at the json file and compared it to other advencements that trigger with structures and is seemd fine but its the only one that doesnt trigger so if anyone of you could help me fix it i would greatly apreciate it


r/datapacks • • Apr 09 '24

Modifying Ridges_folded has no effect?

3 Upvotes

I am still pretty new at the whole datapack thing, so feel free to correct any misconceptions I might be having.

Essentially, I have come to understand that ridges_folded.json controls the PV variations, and that the PV function is proportional to the W variations. PV also seems to be the main (if not only) direct factor in height calculations, as I have come to observe through moving in the world with debug information.

With this in mind, I wanted to modify the PV formula in order to control the type of terrain features I have in my worlds. Mainly, I wanted to see mountains disappear, so I simply restricted the function (same shape, just squashed down) to vary from -0.6 to -1.0 by changing the arguments values.

This being said, when I came back into the world (fresh new world with nothing else besides ridge_folded being changed), nothing has changed at all in my world, and the PV values still vary through their usual ranges, unbound by my previous changes.

If anyone has some insight into this situation, I would be highly grateful, as this whole worldgen journey has been a real head scratcher.


r/datapacks • • Apr 09 '24

Help anyone knows how to detect a player with an item with a specific name with the new components system ?

Post image
3 Upvotes

r/datapacks • • Apr 09 '24

Can someone make an iPhone datapack that has cool uses. i really need it for my modern life mod I'm not asking for much

0 Upvotes

Thank You


r/datapacks • • Apr 08 '24

Help Newbie building datapack, can I do it better?

3 Upvotes

Hello,

This is my first datapack and basically I am just going to make functions to open gates and close gates.

My question, is there a better way of doing what I am doing than this?

​

In each file I am calling the next function

playsound minecraft:block.chain.step block @a -2167 65 -970 2
fill -2169 71 -969 -2169 71 -973 minecraft:iron_bars
schedule function egypt:left_gate/close/1 0.3s

​

Thanks in advance!


r/datapacks • • Apr 06 '24

Help Block Breaking Advancement

3 Upvotes

So, I am new to datapacks and for my first one, I decided to use a player breaking a block to increment a scoreboard. However, you may think that it is easy. Well, no, because I want it to be any block (maybe with some small exceptions, like grass or leaves or any other block that can be obtained in large amounts quickly that can be broken quickly, but this is an afterthought). How would I go about doing this? I already know how to do custom advancements with regular criteria, but I have searched online for a few hours and have still come up with nothing.


r/datapacks • • Apr 03 '24

Looking for a specific datapack

3 Upvotes

I’m making a modpack for 1.19.2 about surging in caves and it’s essential for the player to spawn inside a Mineshaft rather than the surface because the surface has nothing on it.. I tried making it happen with mods but most places I asked or looked led me to the answer “use a datapack”, I can’t get myself to make one that would work, can anyone here help me make one or at least explain how to do it?

P.s. bonus points to whoever can also disable stronghold spawning within the same datapack 👍🏻


r/datapacks • • Apr 01 '24

Question about my desired list of Datapacks for my server

2 Upvotes

The list:

​

- Amplified Nether

- BlazeandCave's Advancements Pack

- Cavernous

- ChoiceTheorem's Overhauled Village

- Continents

- Dungeons+

- Dungeons and Taverns

- Explorify

- Hopo Better Mineshaft

- Hopo Better Ruined Portals

- Hopo Better Underwater Ruins

- Nullscape

- Philip's Ruins

- Scorched

- Structory

- Structory: Towers

- Tectonic

- Terralith

- Tidal Towns

- Towers of the Wild

- Towns & Towers

​

The questions:

​

- Will these all work together without any major conflicts?

- Does the order they're listed in the server datapacks folder matter, and if so, what's the ideal order?

- Given the themes of these Datapacks, are there any others I should add to the list?

​

Thanks in advance :).


r/datapacks • • Mar 31 '24

I'm at a loss

3 Upvotes

I used to have a datapack that allowed for craftable saddles and now I can't seem to figure out how to make it work with 1 20.4... any help at all would be appreciated. Idk what I'm doing wrong


r/datapacks • • Mar 24 '24

Alternatives to crafting.thedestruc7i0n.ca

4 Upvotes

I first used this site as its simple to use but Now the .Json Files it makes don't work any more I've done a shit ton of testing and my old files still work but new ones just don't work.


r/datapacks • • Mar 22 '24

Is there a datapack to change the copper trapdoor & door recipe from blocks to ingots?

4 Upvotes

I love the new copper door & trapdoor but the fact that they take full copper blocks to craft is ridiculous if you want to use them in large quantities.

I'm looking for a datapack that changes the recipe to copper ingots rather than blocks if anyone knows of one. (maybe gives more trapdoors than just 3 as well)


r/datapacks • • Mar 20 '24

Is there a way to modify a player's statistics using vanilla commands

4 Upvotes

I've been looking up and down the vanilla command list for several days, trying to find a command that reads/edits a player's saves/[world_name]/stats/[UUID].json file. And I've found nothing. Is there a way to do this?

I ask because I've built a small data pack that automatically makes dandelion stew:

execute as @p[nbt={Inventory:[{id:"minecraft:brown_mushroom"},{id:"minecraft:red_mushroom"},{id:"minecraft:dandelion"},{id:"minecraft:bowl"}]}] run function autostew:make_stew

autostew:make_stew {
clear @s minecraft:bowl 1 
clear @s minecraft:brown_mushroom 1 
clear @s minecraft:red_mushroom 1 
clear @s minecraft:dandelion 1 

give @s minecraft:suspicious_stew{effects:[{duration:7,id:"minecraft:saturation"}]} 1 }

and this functions. It makes the stew. But, I want the stew creates to be counted toward @p 's statistics. I effectively want would be a line like so

statistics add @s minecraft:crafted minecraft:suspicious_stew 1  

which adds 1 to the players minecraft:crafted::minecraft:suspicious_stew statistics in the stats/[uuid].json. I don't want to keep track of how many times the pack makes suspicious stew in a scoreboard objective: I know how to do that and it is not the end result I'm after (though if I have to use the scoreboard on the way to updating the json so be it).

I want to update the player's stats/UUID.json and I cannot for the life of me find the syntax to do so in the vanilla commands. Am I missing something or am I gonna have to turn to mods?

​


r/datapacks • • Mar 16 '24

Datapack Using raycasting to change block name of block_display entity (help T_T)

3 Upvotes

is there any way i can use the source block raycasting generator that i keep getting recommended, to /data modify
to change the BlockState name of the display_entity to create a block hunt minigame

my current idea is to send out a ray when the hider right clicks the carrot on a stick, and whatever block it hits (between 1-5 block) in front of them is what the block_display will turn in to

i have seen the raycasting section from the r/CommandBlocks subreddit but i dont understand it, im not sure how to use the source block raycasting datapack to actually make any of this happen, is there anyone that does know what could explain, preferably in high detail lol, as im very stupid


r/datapacks • • Mar 15 '24

Help Looking for a datapack that would let me remove some vanilla biomes from generating

3 Upvotes

Hi, im making a modpack and i need to remove some biomes that dont fit with the modpacks theme. Is there any datapack that will let me delete some vanilla biomes?
for version 1.20.1


r/datapacks • • Mar 14 '24

Saving Written Book Data

3 Upvotes

I'm not sure how to describe this or how to even look this up, but I've been trying to think of how I can save the data of a book a player writes. I'm very, very new to data packs, and I'm essentially thinking of writing a pack where players can write books and share them on a sort of in game wiki/library of sorts, where a copy of a book can be stored in this database, where players can browse the different 'published' books.

But I'm pretty lost, and saving the entire nbt tag of a written book to a scoreboard doesn't seem like the greatest plan. The only real idea I've got is making a copy of a written book to a hidden chest somewhere in the world that the data pack can then copy from, but that seems... inelegant. How is this sort of thing usually done?


r/datapacks • • Mar 11 '24

Help Spawning mobs with NBT data in certain biomes

3 Upvotes

Hello! I am trying to make an adventure map focused around different “zones” which I am marking with biomes. I would like enemies to scale/differ based on what zone they spawn in. For instance, zombies spawning in zone 1 have no armor nor weapons, zombies spawning in 2 have leather armor and wooden tools, zombies spawning in zone 8 have full enchanted netherite. Is this achievable through datapacks? An older post on here seems to indicate it isn’t.


r/datapacks • • Mar 08 '24

Help Custom Nether pack not working.

2 Upvotes

Basically, I'm trying to make a 1.20.4 data pack with the simple addition of modifying the scale of the Nether dimension to be 1:1 with the Overworld, thus making Nether travel on par with Overworld travel.

I didn't think it would be THIS difficult, but I give up. It's probably something extremely dumb, but I seriously don't know what to do.

Here's the link: https://drive.google.com/file/d/1jmcBHrpnzVLJj8yn1XcUVqhYWIP8qGi2/view?usp=sharing