- check_circle Functions
- 1,982 views, 1 today
- 48 downloads, 0 today
3
Parchment is currently an Early Release! If you face any issues or want changes, feel free to leave a comment about them
Parchment is a datapack library that aims to detect if the pack is being run on PaperMC upon load
PaperMC has proven annoying for many large datapacks as its various tweaks and changes to how minecraft works may break various mechanics they rely on. Things such as not allowing non-player entities on scoreboards and removing empty teams are enabled by default and end up ruining various datapacks that take advantage of them. Parchment aims to warn users about these issues incase they risk incompatibilities when running Paper
To implement the Parchment Library, all you need to do is drag the parchment folder and the minecraft folder from Parchment into your own datapack. From there you can configure it using the guide below:
I'm rather new to making datapacks, this being my first public one. If there's anything that goes wrong or should be changed, I'll try to do my best to fix it.
There's no need to give Credit if you use this Library, though it would be much appreciated!
Special Thanks to:
Hashs, mmmeh, 'Biscuits', hhumanoid, the Minecraft Commands Discord, the Datapack Center Discord and the rest of the TCC Discord for greatly helping out with making the datapack
Also to Stoupy51 and Luish54 for having identified and having provided fixes for various issues
Parchment is a datapack library that aims to detect if the pack is being run on PaperMC upon load
PaperMC has proven annoying for many large datapacks as its various tweaks and changes to how minecraft works may break various mechanics they rely on. Things such as not allowing non-player entities on scoreboards and removing empty teams are enabled by default and end up ruining various datapacks that take advantage of them. Parchment aims to warn users about these issues incase they risk incompatibilities when running Paper
To implement the Parchment Library, all you need to do is drag the parchment folder and the minecraft folder from Parchment into your own datapack. From there you can configure it using the guide below:
Configuring Parchment
Adding your Own Functions/Messages: You can change the functions run by adding your own in the detected.json and undetected.json tag files located in data/parchment/tags/functions/...
Sample functions for using Parchment have been provided in data/example/functions/...
Removing Parchment's Sample files: It's recommended that you remove the Sample files from the Tag lists and have your own Functions run instead. They are only examples, and if multiple packs change them they may conflict.
Sample functions for using Parchment have been provided in data/example/functions/...
Removing Parchment's Sample files: It's recommended that you remove the Sample files from the Tag lists and have your own Functions run instead. They are only examples, and if multiple packs change them they may conflict.
I'm rather new to making datapacks, this being my first public one. If there's anything that goes wrong or should be changed, I'll try to do my best to fix it.
There's no need to give Credit if you use this Library, though it would be much appreciated!
Special Thanks to:
Hashs, mmmeh, 'Biscuits', hhumanoid, the Minecraft Commands Discord, the Datapack Center Discord and the rest of the TCC Discord for greatly helping out with making the datapack
Also to Stoupy51 and Luish54 for having identified and having provided fixes for various issues
Compatibility | Minecraft 1.18 |
to | Minecraft 1.19 |
Tags |
6 Update Logs
Parchment v0.2.3 : by FighterX9 07/24/2022 9:56:07 pmJul 24th, 2022
Literally just changed the mcmeta version from 9 to 10. That's it
I TOOK 2 MONTHS TO CHANGE A SINGLE NUMBER
I TOOK 2 MONTHS TO CHANGE A SINGLE NUMBER
LOAD MORE LOGS
tools/tracking
5568563
119
parchment-a-papermc-detection-library
Create an account or sign in to comment.
Once again sorry for my english.
btw your English is great and I feel you made it really easy to understand what to do
If anything needs to be changed or just isn't up to par with what it should be, just let me know and I'll be happy to change it
Edit: Here is the solution. I changed the second line (the first command) with these three:
execute store success storage parchment:store forceloaded int 1 run forceload query 0 0
execute unless data storage parchment:store {forceloaded:1} run forceload add 0 0
summon minecraft:marker 0 0 0 {Tags:["parchment.spawn"]}
...and after the command that kills the marker I put this:
execute unless data storage parchment:store {forceloaded:1} run forceload remove 0 0
I guess this will fix it. 😉👍
This may cause incompatibilities with mods that disable spawn chunks, however. I think ksyxis and even Optifine's Smooth world may break it, so I might have to do something about that...
The solution you provided is a really good one and I want to thank you alot for it. However, I ended up coming across 2 Issues: During my testing I realized that 1) Loading a Fresh server up with the datapack usually didn't work, and 2): Forcing Chunks to load can cause Incredible lag spikes
The First problem was solved by Scheduling the command several seconds ahead instead of 45ticks (big leap, i know). But the Second problem caused up to 10 seconds of no response from Aternos servers, which I don't think is drawback worth taking.
I'm currently thinking of a workaround to this (Something like running the original function off of someone when they join the server, which despite not running at the start of the server, would still give the message without much lag)
Sorry for my english.