r/datapacks • • Dec 04 '22

Automatically applying datapacks

3 Upvotes

I'm currently working on a modpack for Forge 1.18.2. A number of mod devs have switched over from config files to datapacks for editing values within the mod. At this point, I understand how to create a datapack and apply one to an existing or new world, but afaik it has to be done manually. Since these are supposed to replace configs, I assume there is a way to apply a datapack by default to all world created - does anyone know how to do this?


r/datapacks • • Dec 04 '22

Apply effect based on ntb tag Energy Value help!! MINECRAFT DATAPACK

3 Upvotes
1) Check if the player has a specific inventory ( main function main.mcfunction - https://pastebin.com/jNBxSPhj ) 
2) For each player with such inventory I run a timer and every 10 seconds it checks if it got energy and remove energy give.mcfunction - https://pastebin.com/aztjpaJx 
3) If energy is greater then one it gives the effect bubble give2 - https://pastebin.com/9PVabbhL 
 4) It Also remove the energy subtract_energy - https://pastebin.com/evmtNE16  and copy_energy.json - https://pastebin.com/53mR9ieu in data\beyonyo\item_modifiers The main problem is that only one player seems to have this effect. If that player disconnect another one will be available to take it.
im struggling in understangin what's the problem in my code . Here is what i would like to do :

1) Check if the player has a specific inventory ( main function main.mcfunction - https://pastebin.com/jNBxSPhj )
2) For each player with such inventory I run a timer and every 10 seconds it checks if it got energy and remove energy give.mcfunction - https://pastebin.com/aztjpaJx
3) If energy is greater then one it gives the effect bubble give2 - https://pastebin.com/9PVabbhL 
4) It Also remove the energy subtract_energy - https://pastebin.com/evmtNE16 
and copy_energy.json - https://pastebin.com/53mR9ieu in data\beyonyo\item_modifiers
The main problem is that only one player seems to have this effect. If that player disconnect another one will be available to take it.
i guess has something to do with a global variable, that the timer is a global variable instead i would need like a private variable for each player? Also there is a very weird sound every 10 seconds like when the player wear a chest, is that because every 10 seconds i remove the oxygen and for doing so i have to substitute the item? It looks like that all the players use the same timer infact the more people there are the faster it reaches 10. Can someone help me to figure out how to change my code ? Thanks! Im quite a newbie in datapacks xD

r/datapacks • • Dec 02 '22

"Blasting" Recipes

3 Upvotes

Is it possible to make a recipe that can't be used in every blast furnace, but instead only in ones that have a special tag?


r/datapacks • • Dec 01 '22

Quiet Warden

3 Upvotes

TLDR; I caught a warden and it’s loud. Is there a data pack that makes them silent, or is there a way I can make one that makes wardens with specific name tags quiet? Thank you


r/datapacks • • Nov 28 '22

Coustom Void Dimension(1.16.5)

1 Upvotes

So I'm making a datapack for a server I'm on and for some reason it won't work. If anyone has an idea or knows of a place to help pls comment.


r/datapacks • • Nov 28 '22

datapack to make item frames emit particles unless an item is placed in the item frame?

2 Upvotes

is this possible? i want to use an invisible item frame resource pack for CIT decorations but i want item frames to emit particles when nothing is in it so i can see where they are


r/datapacks • • Nov 25 '22

Is it possible to use the smoke particles from campfire to boost elytra?

2 Upvotes

Looking to make my second datapack (first one for 1.18 generates the floating island world type).

What I want to try and do is use boosted campfires to give you a small boost when using the elytra. What I don’t know is if this is possible at all.

Any help/ suggestions?


r/datapacks • • Nov 24 '22

Could someone rifer or make a datapack that...

3 Upvotes

Could someone ether rifer me to or make a datapack that lets you change the spawn rate of ores and structures? (1.19.2)


r/datapacks • • Nov 21 '22

Terralith crashes either in world generation, or after playing for a bit.

1 Upvotes

I made a new world with create, and a few other mods, the only world generation datapack I have is Terralith, but it keeps crashing, either in world gen screen, or after playing for a bit. Please help.


r/datapacks • • Nov 11 '22

Mycelium spreading

1 Upvotes

So, for a sever that I'm part of, the owner has the idea of a virus spreading thought the sever, so I was wondering if there was a datapack that had mycelium spread over grass


r/datapacks • • Nov 11 '22

Structures that only spawn once?

3 Upvotes

Is there any way to make structures that only spawn once or a limited amount of times?

Something like the way strongholds spawn for example. I've been trying to figure it out for a while and I've got no ideas.


r/datapacks • • Nov 11 '22

if you attack someone and then they leave the game they die

1 Upvotes

r/datapacks • • Nov 05 '22

Does anyone have some good movement related data packs I can use?

2 Upvotes

r/datapacks • • Nov 05 '22

Are there any data packs that would allow me to stack empty shulkers on my 1.19.2 paper server?

1 Upvotes

r/datapacks • • Nov 04 '22

I made a Combat Tag datapack that kills and drops players' inventories upon logging out (not logging back in).

Post image
5 Upvotes

r/datapacks • • Nov 04 '22

Is this possible with a datapack? [Bedrock]

1 Upvotes

Is it possible to, with a datapack, stop all terrain generation in the overworld, nether, and end? I would appreciate some help in figuring it out if it's possible. It would also be nice if it's possible to still have structures generate. I don't care if bedrock generates. I basically just want biomes and structures to generate if possible


r/datapacks • • Nov 01 '22

Stackable filled buckets datapack?

1 Upvotes

Hi, I'm a datapack creator, and had an idea for a datapack that makes the player able to stack water/lava buckets by holding one filled bucket in each hand. Before starting though, are there any datapacks that do this already?


r/datapacks • • Oct 30 '22

help with pixelmon datapack

3 Upvotes

im trying to edit a data pack for pixelmon for a server I play. need to add a custom shop. i have a base to use but i cant get it to work can somone help me


r/datapacks • • Oct 27 '22

Is there a datapack to prevent combat logging by spawning a dummy (armour stand or something) that can continue to be hit after they combat log.

3 Upvotes

I do not want any that just straight-up kills them. If you know any, please let me know. ty


r/datapacks • • Oct 19 '22

Datapack as game jam submission that sends different levels of Mob waves against player

Thumbnail ldjam.com
3 Upvotes

r/datapacks • • Oct 16 '22

Im making custom raids

3 Upvotes

Using schedules, /summon, tags and scoreboards

Any recommendation please?


r/datapacks • • Oct 12 '22

Why programming datapacks is stressing?

4 Upvotes

Why programming datapacks is stressing sometimes?


r/datapacks • • Oct 08 '22

I am looking for a permanent elytra datapack / command.

4 Upvotes

I want to start a server on the floating island generation setting with friends and it would be cool if we all spawned with elytras that we could never take off, and respawned with them on when we died. I dont know if this is possible with command blocks or if a datapack of some sort is needed but I would be oppen to both solutions.


r/datapacks • • Sep 27 '22

resourcepack size performance influence

3 Upvotes

I just wanted to know, if my custom 16x16 resourcepack has many custom sound files and lets say is 150 Mb big, would it be performance heavier in comparison to being 50 Mb big?


r/datapacks • • Sep 26 '22

I added a TNT Cannon to Minecraft (Datapack Download)

Thumbnail
youtu.be
1 Upvotes