#Help making datapacks for a modded server.

1 messages · Page 1 of 1 (latest)

red mulch
#

This is going to be a long explanation, so buckle up. You see, not too long ago I've made a Forge Minecraft server that is EXTREMELY unbalanced. Normally, I would be ok with something like this, but after playing in my own server with other people for a few days, I realized that you can beat the game extremely fast with some OP gear and tools. Because of this, I want to restart the server with some datapacks to balance it out more. So what exactly am I looking help with? Basically everything. I've followed guides from wikis, I've looked at YouTube videos explaining how to make datapacks (vanilla or modded), and I've even asked for help in other servers, but to no avail. As for what kinds of datapacks I'm making:

-A datapack to change the recipes of certain items so they are harder to get (to the point of being end game).
-A datapack to change the loot table of both mobs (add or remove items that they drop) AND chests (blacklist certain items from being obtained in chests, but can still be crafted like normal).
-A datapack that blacklists items from being obtained in any way (specifically creative mode only items).
-A datapack to blacklist items from a mod called Randomium.

There might be some other stuff that I need help with, and I apologize if this is alot to take in, but its something that im willing to learn and to make it work in my server. If you have any other questions regarding the modpack or something else, be sure to ask me. One more thing that I want to mention is that I'm also using utility mods to help me with this, specifically Item Obliterator and CraftTweaker.

ebon turtleBOT
#
**Someone will come and help soon!**

💬 While you wait, take this time to provide more context and details. What are you trying to achieve overall - maybe there's an easier way to solve this problem

🙇 If it's been 30 minutes and you're still waiting for someone to help, hit the Summon Helpers button to call the official helpers here

✅ Once your question has been resolved (or you no longer need it), hit the Resolve Question button or run /resolve

slate sonnet
red mulch
#

I just need to learn HOW to use it

humble moss
shy tiger
#

well, as for the blacklisting, you could literally just check if a player gets the item and delete it from their inventory instantly using inventory changed advancement lol

#

and the first 2 are surprisingly easy

shy tiger
shy tiger
red mulch
#

The problem isnt HOW easy it is to make the datapack. The problem is actually me.

#

because i understand and learn stuff better visually

#

as in, by pictures

#

and keep in mind, i looked up various videos about datapack making, and i still dont understand much, other than having the correct item ids for it to work.

#

Also, Id prefer to make a datapack that blacklists items, since i already have a utility mod ready to start doing just that.

#

but again, im stupid

slate sonnet
meager furnace
#

I think randomium uses a loot table, i hadnt used it personally so cant say exactly
You can try item obliterator mod for the thrid one, you need to get into the configs folder and tweak a json file. But it crashed on my fabric modpack though, so results may vary. Id recomend to use the crafttweaker mod for removing items, personally found the scripts to be more managable

red mulch
#

I would do all of this if I knew how. It's sounds like I know what Im doing, but really I just have stuff prepared so I can learn.

red mulch
sly mortar
#

If available on your version, KubeJS does have ways to do all of this, including removing all recipes for items, adding custom recipes, editing loot pools (though I haven't messed with that using Kube yet, I've only needed to do it with datapacks once for my projects) and denying events eg placing a certain block

#

Crafttweaker is good too, though idk if it can change as much stuff as Kube

red mulch
red mulch
#

rather, it looks overwhelming

red mulch
#

i guess ill post this then to start off everything, since its a bit quiet in here:

#

Basically, this is what I made so far for the custom recipe of an item. basically, I want to make a datapack of this that removes the old recipe and replaces it with this new one.

meager furnace
meager furnace
red mulch
red mulch
red mulch
#

same goes for everything else ive made so far.

meager furnace
#

I assume lines 16 to 23 are all from randomium, so you can remove those, in my experience, adding the "id" and "required" for all your additions should make it work

#

if that doesnt work (or youre too lazy), just you can test it out as is, and remove anything from lines 16 to 23

#

make sure that your pack format follows, randomiums packet(folder) structure too, that might be the problem too

red mulch
#

and let me know what i did wrong

#

because when i asked someone else to help me out with this in a seperate server, this is the outcome of their help

#

it didnt work, and i wasnt able to figure out what was wrong

meager furnace
#

did you make sure that the folders are setup correcty?

#

it looks like it should work, i can install a fresh copy of forge and randomium to take a look see

red mulch
#

wait hold on

#

it didnt send the other pictures

#

there we go

meager furnace
#

i dont exactly see where anything could go wrong

#

did you load it into your world when testing?

red mulch
#

when i load up the game and try to enable the datapack, it just gives me an error. Let me see if i can remember what it said. this also happens when i try to enable a datapack that was already made and intigrated into a mod.

#

which is weird

#

Whenever I load up any datapack available, it says this:

reload failed; keeping old data

meager furnace
#

Well thats a first

red mulch
#

Thats why i need help. Because i dont know what happened or why it didnt work

#

it doesnt work with a datapack i MADE, and it doesnt work for a datapack that was already included with a mod.

meager furnace
#

Im not too familiar with reload fails, so you might need to ping/wait for some helpers to hop in

red mulch
#

darn...

#

all i just wanna do is balance my server so people dont become to overpowered and bully me... why do i always have issues like these happen to me 😔

red mulch
#

@shy tiger Apologies if im interrupting you, but since I still haven't been able to do what I mentioned in this post, can I ask you for help on the datapacks I want to make? I can show you what I have so far.

shy tiger
#

so wait, which aspects are you unable to figure out right now?

red mulch
# shy tiger so wait, which aspects are you unable to figure out right now?

well, yesterday I showed problem? (the actual user, not the word) the datapack I made for blacklisting items for the Randomium mod. Basically, the mod page tells you that in order to prevent certain items from being duped or obtained via randomium, you can make a blacklist datapack using the config files the mod provides. So I did that, and made sure everything looked correct (atleast to my knowledge). However, when I enable the datapack (or any datapack) in a world, it gives me this error and doesn't enable the datapack:

reload failed; keeping old data

#

this is what the blacklist datapack that I made looks like:

shy tiger
#

hmmm

#

would you mind sending me the file? i have a minecraft datapack plugin for visual studio code, so it would be easier to catch any simple format issues

red mulch
#

sure

shy tiger
#

sorry, i meant of the whole pack, haha

red mulch
#

oh

#

so wait, like everything? the packmcmeta, the folders?

shy tiger
#

yeah just the folder within the datapacks folder

red mulch
#

here it is

#

btw, theres some other datapacks I also want to make, but for now I want to focus on each one that I need individually so you or anyone else doesnt mixed up or confused.

shy tiger
shy tiger
red mulch
#

i can also send you the randomium mod itself, in case you need it for something

shy tiger
#

found the issue

#

2 missing commas

#

add a comma after ultimate_dust and creative_motor @red mulch

red mulch
#

hmmm alright

shy tiger
#

probably shoulda just looked at the .json image closer but wtvr im lazy rn and looking at the file was easier lol

red mulch
shy tiger
#

alright yeah hope it works

red mulch
#

you know, a datapack that adds extra content

red mulch
# shy tiger alright yeah hope it works

it worked! i still gotta add some items to the blacklist, but it actually prevents me from duping the blacklisted items, which also means it wont drop when you mine randomium.

shy tiger
#

lmk when you need help on the next thing

red mulch
red mulch
# shy tiger awesome!

ok, so i need help in the next datapack. basically, im making a datapack that replaces both the advancement name of 2 items AND the crafting recipe of the 2 items. when i tried out the datapack in the world, it simply made both items uncraftable.

#

with no recipe to look up in JEI.

shy tiger
#

i recommend trying a youtube tutorial on changing item recipes, if you havent already

#

since it will explain better than i will, and ofc ill be here if you still need help

#

and by advancement name, do you just mean like, achievement advancement?

red mulch
red mulch
#

the name specifically

shy tiger
#

im a little busy rn so sry if im slow to respond, but basically, make a folder under data called "minecraft"
under that make "advancements"
in there, make a .json file with the name of the advancement you wanna change (as it is in /advancement) minus ofc the namespace

#

click on presets and select the advancement

#

then edit the title as you see fit

shy tiger
red mulch
shy tiger
#

if its a simple advancement you want to change i can just help you recreate it but

#

if its more complicated i can try to look into grabbing the data for the advancement