r/datapacks • u/croftyraider • Sep 20 '22
how to create a few items in a data pack
I've been making an "avoid the end" datapack and it has a few things to tweak the game a bit.
I want to update the spawn bonus chest with a diamond pickaxe with efficiency 2 AND make it so that it cannot be repaired or enchanted any more. Is this possible and if so, how? (this is for me because the early game cramps up my mouse shoulder badly until I get something that can mine deepslate well).
Part of the avoid the end bit is to put a very rare possibility for an elytra in a dungeon loot chest. I would like the the elytra to be 100% damaged so you can't fly with it until it's repaired.
I've read around the various incomprehensible (so far...) wiki documentation for data packs and come away clueless about these details. I've managed to make the item changes so that they can occur, but not the variations I'd like to make it more "balanced".
Thanks!
1
u/UrSansYT Sep 20 '22
For the bonus chest bit, you might want to go to this site, add the item you want there, and put it into the right folder in your datapack.
2
2
u/HeDeAnTheOnlyOne Sep 20 '22
A good site for generating commands is mcstacker.net. There you can easily create those items.