#folia-help

1 messages · Page 37 of 1

viral coral
#

donutsmp does it well but not seamlessly though

#

horizontaly scaling folia is the same as people have been doing with paper for years

#

there's always a border to transfer the user between servers

timber igloo
#

happens sometimes, but isnt really something that degrades playing experience

#

making it completely seamless would be quite cool tho

eager bluff
umbral vault
#

sharded world

#

i was thought about this too much lol

#

it should not possible with nfs

#

and they are alr using linear storage

#

maaybe they are using nosql like mongo for storaging the world

umbral vault
#

i guess, i found how he managed to make this

#

@primal quail can u come dm?

eager bluff
umbral vault
#

afaik, If you are at the same coordinates when moving from one world to another, you can switch without seeing the world loading screen.

#

its like hack(?)

eager bluff
#

Oh skip the world switching, I have implemented that before

umbral vault
#

yep

viral coral
#

yeah that's a classic but still not seamless

eager bluff
#

How seamless do you want it?

viral coral
#

entities passing through, seeing players/entities and buildings on the other side, building against the border

#

bonuspoints if you figure out redstone cross border but i can ignore that

viral coral
#

i don't think those 3 are too unrealistic lol

umbral vault
#

:3

#

yeah its possible

#

but needs different thought

#

a different perspective

viral coral
#

yes and in the 10 years of doing minecraft i don't think i've seen any server pull off a near seamless sharding experience

#

donut i'd still have high hopes for because in the end they're probably the ones who can spend most of their time figuring this out

umbral vault
#

heavy i/o taks blocking the system

umbral vault
#

anyone who had the knowledge about k3s, minIO and how minecraft determines the world chunks handle

#

can do this system

viral coral
#

kubernetes is not relevant here

umbral vault
#

for making the shards active if they going maintain

#

so crazy complex

viral coral
#

in the end donutsmp still runs off of a basic pterodactyl setup at 20k players

umbral vault
#

i guess in future only donut can achieve this, too much complicated and expensive

viral coral
#

the shards are merely just regions off of a larger map

umbral vault
#

yeah

#

this is not near to real shard system or we understanding wrong about sharding the world in minecraft terms

viral coral
#

it's still sharding

umbral vault
#

but different method

viral coral
#

just not the most efficient method no

#

but the easiest and most maintainable

umbral vault
#

this level of scale needs really too much reseources, money, time and teams

viral coral
#

which is exactly what donutsmp has

#

if someone is figuring it out it'll be them

umbral vault
#

Does it make sense, I think uh...

#

i mean, not everyone can access this tech

#

The only place that actually implements the smp definition is donut for now.

#

if someone can tweak or change the heavy i/o tasks from scratch and handling the world in nfs or different system, this dream can be real, my thoughts about this.

In short, everything has to be done completely from scratch.

manic quarry
#

it's not on a single server

#

it's split in a grid between multiple servers

primal oyster
#

I'm pretty sure he knows that

warm rock
#

if dev-imports is exclusively for libraries now, what is the process for patching an ignored file, specifically trying to patch Beardifier atm

flat epoch
#

when is folia going to be available for 1.21.7 or 1.21.8 (and especially with the Dialog API)?

subtle wasp
#

It's available, go ahead and build it.

wet arch
#

ver/1.21.8

#

y'know, the current default branch

hushed hamlet
#

Can Ryzen 7 5700X handle 400-500 players?

dim merlin
#

I highly doubt it

umbral vault
wraith geode
#

Is folia good for a skyblock server setup where you have one world per Island?

timber igloo
coral ember
#

correct me if i'm wrong here, but iirc folia doesn't currently support loading/unloading worlds during runtime

timber igloo
umbral vault
timber igloo
umbral vault
#

yeah they implemented it at that api

stark kiln
#

Hey, is there a reason why this code is running on bukkit and on folia it throws an IllegalArgumentException: Unsupported custom inventory size 43

timber igloo
viral stone
#

player invs are bigger now

#

need updated paper

stark kiln
#

What do you mean?

#

On the latest version?

viral stone
#

There was an issue in paper

#

folia is based over paper

#

the folia base needs updating

#

Make sure that you're using the latest build of whatever you're using

#

idk when exactly this was fixed or if folia has pulled in what into what branch

stark kiln
#

Ah alright, thank you. Do you have a link to the issue?

viral stone
#

Nope

next crater
#

how to set up folia launch flags so that the GC does not load the processor so much

Flags:

java -Xms80G -Xmx80G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1MixedGCCountTarget=6 -XX:InitiatingHeapOccupancyPercent=40 -XX:G1MixedGCLiveThresholdPercent=90 -XX:SurvivorRatio=32 -XX:G1HeapWastePercent=5 -XX:MaxTenuringThreshold=1 -XX:+PerfDisableSharedMem -XX:+AlwaysActAsServerClassMachine -XX:+UseTransparentHugePages -XX:LargePageSizeInBytes=2M -XX:+UseLargePages -XX:ReservedCodeCacheSize=512M -XX:+SegmentedCodeCache -XX:+UseStringDeduplication -XX:+UseCriticalJavaThreadPriority -XX:AllocatePrefetchStyle=3 -XX:+UseAES -XX:+UseAESIntrinsics -XX:+UseFMA -XX:+UseLoopPredicate -XX:+OptimizeStringConcat -XX:+UseCompressedOops -XX:+UseInlineCaches -XX:+UseFastJNIAccessors -XX:+EliminateLocks -XX:+DoEscapeAnalysis -XX:+UseXmmI2F -XX:+UseXmmLoadAndClearUpper -XX:+UseXmmRegToRegMoveAll -XX:+UseFPUForSpilling -XX:+UseFastStosb -XX:+UseVectorCmov -XX:+UseNewLongLShift -XX:+EnableVectorSupport -XX:+AlignVector -XX:+UseCharacterCompareIntrinsics -XX:+UseVectorStubs -XX:UseAVX=3 -XX:UseSSE=4 -XX:+EnableJVMCIProduct -XX:+UseJVMCICompiler -XX:+EagerJVMCI -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true -Dgraal.VectorizeHashes=true -Dgraal.EnterprisePartialUnroll=true -Dgraal.VectorizeSIMD=true -Dgraal.CompilerConfiguration=enterprise -Djdk.nio.maxCachedBufferSize=524288 -Dusing.aikars.flags=https://mcflags.emc.gs/ -Daikars.new.flags=true -jar {{SERVER_JARFILE}} --nogui

#

this is the picture with online ~ 70 players
and already globally there are TPS drops during cleaning

paper siren
#

adding as much as possible flags doesn't fix your problem. I'd recommend to get rid of almost all of them and just set Xms, Xmx, and use generational zgc

#

as an example, UseStringDeduplication will definitely add overhead to your garbage collector, so unless you see significant benefits there, don't use it

timber igloo
night minnow
#

Hello,

Does anyone know how to resolve the following issue? I compiled the Folia .jar from https://github.com/PaperMC/Folia/tree/ver/1.21.7, but when I run it, I get the following error:

Downloading mojang_1.21.7.jar
Applying patches
Starting org.bukkit.craftbukkit.Main
Exception in thread "ServerMain" java.lang.ClassNotFoundException: org.bukkit.craftbukkit.Main
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:534)
        at java.base/java.lang.Class.forName(Class.java:513)
        at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:38)
        at java.base/java.lang.Thread.run(Thread.java:1583)```

I would appreciate any assistance you can provide. Sorry if I am dumb
next crater
#

GraalVM + ZGC

java -Xms40G -Xmx40G --add-modules=jdk.incubator.vector -XX:+UseZGC -XX:+UnlockExperimentalVMOptions -XX:ZAllocationSpikeTolerance=5 -XX:ZCollectionInterval=10 -XX:+UnlockDiagnosticVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:+UseTransparentHugePages -XX:LargePageSizeInBytes=2M -XX:+UseLargePages -XX:+EnableJVMCIProduct -XX:+UseJVMCICompiler -XX:+EagerJVMCI -XX:+UseStringDeduplication -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true -Dgraal.VectorizeHashes=true -Dgraal.EnterprisePartialUnroll=true -Dgraal.VectorizeSIMD=true -Dgraal.CompilerConfiguration=enterprise -Djdk.nio.maxCachedBufferSize=524288 -Dusing.aikars.flags=https://mcflags.emc.gs/ -Daikars.new.flags=true -jar {{SERVER_JARFILE}} --nogui

Aikar's Thoughts

Learn more about my In depth study on tuning the G1GC garbage collector to be optimized for how Minecraft servers run, and keep low pause efficient usage.

#

I had experience with them, but the load is not much less, if I have incorrect ones, then where can I get stable ones?

paper siren
#

I'd recommend to get rid of almost all of them and just set Xms, Xmx, and use generational zgc

timber igloo
next crater
paper siren
next crater
#

as far as I know it adjusts itself, but the previous server owner configured a bunch of things

paper siren
#

yeah that should be fine

next crater
#

Is it possible to set more maximum RAM in case of a sudden jump in players?

paper siren
#

a sudden jump in players won't necessarily require more memory, but you can set a soft heap size and increase the maximum

night minnow
next crater
#

does graalvm give any gain?

paper siren
#

maybe, maybe not. But most likely not enough to be worth the potential problems

timber igloo
hexed ice
umbral vault
next crater
#

java -Xms40G -Xmx40G
-XX:+UseZGC
-XX:+ZGenerational
-XX:+UseContainerSupport
-XX:ConcGCThreads=4
-XX:ParallelGCThreads=4
-XX:ZUncommitDelay=300
-XX:SoftMaxHeapSize=24G
-XX:+AlwaysPreTouch
-jar {{SERVER_JARFILE}} --nogui

Will this work as I intended?

#

the situation has become better, but I strive for more

next crater
umbral vault
#

nice

umbral vault
#

its like this

paper siren
#

you don't need that

#

but setting Xms > SoftMaxHeapSize doesn't make much sense

#

and configuring concurrent/parallel threads neither

next crater
#

java -Xms50G -Xmx50G
-XX:+UseZGC
-XX:+ZGenerational
-XX:+ZProActive
-XX:+AlwaysPreTouch
-XX:ZUncommitDelay=300
-XX:MaxMetaspaceSize=2G
-XX:MetaspaceSize=256M
-XX:+UseContainerSupport
-jar {{SERVER_JARFILE}} --nogui

#

This is the perfect option for 200+ players.

#

I just have doubts about
-XX:MaxMetaspaceSize=2G
-XX:MetaspaceSize=256M \

#

In the case of other servers where there are sometimes 300 and sometimes 50 players.

after all, there is a large amount of RAM and this did not interfere

#

I just want to be sure that there will be no crashes in case of shortage
for example during a peaceful raid when there are a lot of players

livid crag
faint crown
livid crag
#

You missed the context on top and bottom of that page.

paper siren
umbral vault
#

netty io is important on high player amounts

faint crown
# livid crag You missed the context on top and bottom of that page.

I saw that. But i still found it confusing to state you completely don't need to configure those threads.
However "ZGC dynamically creates and discards threads as needed to adapt to the load." seems to be a valid point. (Didn't know/thought about that. I was Just wondering... 😅)

peak adder
#

CPU AMD EPYC 7551 is good for Folia?

#

I found in shopping app only 70 usd

umbral vault
#

uh...

peak adder
#

But I think Folia not fully support duel cpu

umbral vault
#

idk

strong nimbus
#

Clock

#

And is old

umbral vault
#

^

peak adder
#

I think the ridge can be tested with a higher core count.

#

At least it should be better E5-2699Av4

#

I found out that they cost the same.

umbral vault
#

please dont use e5s

#

on folia

#

😭

livid crag
#

@peak adder you have been told many times for what type of cpu is good for folia. (I’ve checked your chat history)

If you do not have budget for a proper cpu (ryzen etc) you should stick with using Paper and get a shared plan with as much thread as possible.

finite hinge
#

I mean, EPYC 7551 would probably be fine for like skyblock or something

#

A setup where you can ensure each region only has a couple players in it

#

Each region is like its own Paper server and is limited by how fast a single core on your CPU is so however many players you could fit on a Paper server on that hardware is your limit for a Folia region

#

For that hardware I would assume if you have more than 5-10 players in a region and/or if they're doing expensive farms you'll have problems

prime juniper
#

how do i handle permissions in folia?

livid crag
#

Luckperm

prime juniper
#

i just added it and it doesnt work

livid crag
#

You have to use the one built for Folia

prime juniper
#

can you link it?

#

please

umbral vault
#

just download the latest version

#

of luckperms

#

it should work

#

@prime juniper

coral ember
umbral vault
#

dude, i guess u didnt see the builds at luckperms github repo

#

the downloads at jenkins is really old afaik

prime juniper
#

master branch?

#

ye

#

thanks

coral ember
#

the last jenkins build is the same as the one you're showing on gh. And the pr is not merged yet, so I assume that it's not included in the downloads on luckperms.net

#

looking at the latest jar from luckperms.net shows no folia-supported: true in their plugin.yml, so in theory it shouldn't load

peak adder
modern sundial
#

Does each entity run on its own tick thread

#

Since it has its own scheduler

#

So for example; if a region is running at 15 tps, an entity could be ticking in parallel at 20 TPS?

livid crag
#

Your answer depends on where the entity is

timber igloo
# modern sundial Does each entity run on its own tick thread

There are a bunch of tick threads. In essence, each tick thread ticks a part of the world, and also the entity schedulers for all entities within that region of the world. If there's 2 entities in 2 different regions of the world, their schedulers can run at different TPS

modern sundial
#

would it tick at that speed?

livid crag
#

Yes

modern sundial
livid crag
#

See Jan’s paragraph above

modern sundial
#

Oh

#

Nvm

livid crag
#

Like right above you lol

modern sundial
# livid crag Like right above you lol

If it ticking at the same speed as the region, then why would it need its own scheduler? Wouldn’t you be able to use the region scheduler to modify the entity?

timber igloo
#

each entity 'scheduler' is just a list of tasks

#

that is being polled by the tick thread the entity is on

modern sundial
#

Oh I see

white laurel
next crater
#

java -Xms50G -Xmx50G \ -XX:+UseZGC \ -XX:+ZGenerational \ -XX:+AlwaysPreTouch \ -XX:ZUncommitDelay=300 \ -XX:MaxMetaspaceSize=2G \ -XX:MetaspaceSize=256M \ -XX:+UseContainerSupport \ -jar folia.jar --nogui

Are these normal indicators?

#

GC

next crater
umbral vault
#

which

#

jdk r u using

next crater
#

maybe I wrote it wrong at that time

next crater
umbral vault
#

hmmm

#

it should work

#

can u repull?

#

or try this

next crater
#

I'll try later, there are too many people now

umbral vault
#

alr

next crater
# umbral vault hmmm

I had one capital letter (-XX:+ZProActive)
Thanks for helping
I hope it will work adequately

jade canyon
#

is there a good folia replacement for essentialsx?

dim merlin
#

there are forks of it that work on folia

#

also a lot of alternatives
but if you want essx just use a folia compatible fork

jade canyon
#

Ok ty :)

#

How to start up folia? Like just with the paper startup script but i switch the jar to folia one?

#

Cuz im tryna upgrade from paper to folia

timber igloo
#

But I'm wondering if it's the right choice for your use case, given that you don't sound like you have a lot of experience

jade canyon
jade canyon
#

ok so

#

how do i display server performance stats well or like what is it i should display? like local tps and what else?

jade canyon
#

How do i disable coordinates showing in /tps in folia and is there a configuration file specifically for folia options?

jade canyon
#

ok so how do i make a patch

umbral vault
timber igloo
timber igloo
jade canyon
umbral vault
#

or disable the permission at luckperms

timber igloo
#

altho his latest statement kinda defies that idea

umbral vault
#

oh

unkempt arrow
#

Hi, how could I make cross-servering between dimensions with portals? I have 3 servers, one for each world. Is there a plugin or something to connect the portals with the world?

livid crag
#

You will need to find a plugin yes

foggy pondBOT
plucky compass
#

wow

wanton star
#

Hello, does folia allow to do horizontal scaling ?

paper siren
#

it doesn't provide anything in that regard that isn't already covered by paper

timber igloo
lost vessel
inner swift
#

It works natively through datapacks

#

World loading can work if a plugin hacks around Folia's internal code in a way to allow this to happen, but this is considered unsupported

lost vessel
fair merlin
#

You can do custom terrain on Paper and then move the world over to Folia also.

prime juniper
inner swift
#

We don't support it

prime juniper
#

Okay 👍

#

So there is no good world manager plugin for folia?

inner swift
#

Well, Folia doesn't offer a way to load and unload worlds at runtime, the supported way is to define your worlds as dimensions in datapacks

prime juniper
#

Okay

umbral vault
dim merlin
dim merlin
dim merlin
umbral vault
#

yeah lol

dim merlin
#

But every folia update has the chance to brick something so...
Datapacks are probably more stable

umbral vault
#

🤣

dim merlin
# umbral vault

Not wanna bash on the plugin but I doubt there was any testing involved

umbral vault
#

i tested this plugin

#

on luminol/canvas/raw folia

dim merlin
#

Added folia support

+folia-supported=true
umbral vault
#

and didnt got any exception

dim merlin
#

Which one?

umbral vault
#

i guess, but still idk

umbral vault
dim merlin
#

No which plugin

umbral vault
#

phantomworlds

umbral vault
#

this explains my feelings to whole folia community

timber igloo
umbral vault
#

UnsupportedOperationException

umbral vault
#

canvas api fixed this and i be able to used it

#

otherwise managing worlds in folia is funny

#

im not gonna manage the worlds over datapacks/dimensions

timber igloo
#

But I mean I'm guessing there's some caveats to it

#

Since if it's actually fully stable, why not merge into folia

scarlet ginkgo
#

he wants to pr his fixes to folia

timber igloo
#

I see

lunar linden
#

I'm entering version 1.21.4 of folia, but only paper versions are visible.

viral stone
#

scroll down the software list

lunar linden
viral stone
#

We know

wicked mantle
#

It used to, but that broke with the Next update LUL

timber igloo
#

That sounds like a perfectly reasonable idea and will not cause region ticking threads to wait for one another

#

Not necessarily, but doing this is most defenetly not a good idea. The core problem isn't that some data structures will break with folia, but that folia just doesn't implement the bukkit word loading api

marble sentinel
#

Hi guys! Please tell me the optimal flags for Folia on this VM:

VM: 18 cores, 42GB RAM (maybe too weak for Folia?)
Java: open-jdk21

Host: 2x Xeon E5-2687W (16c/32t), 192GB RAM
ESXi 7.0

Server on 1.21.7 and online +-30 people

modest kestrel
#

it would probably be worth mentioning that since he is using java 21, Generational ZGC is not enabled by default, I'm not sure how good non-generational ZGC is

umbral vault
#

GraalVM 24 with generational ZGC, Probably Folia fork can handle your job.

#

with these specs

paper siren
#

I wouldn't recommend GraalVM without very strong reasons

marble sentinel
#

We use Folia because it's interesting to test it.

#

Thanks for the information, I'll try your advice.

paper tangle
#

Is folia faster then paper for chunk generation

lofty magnet
#

in a 1:1 comparison probably not

paper tangle
#

Hmm I see

orchid spire
#

question any way to turn on or enable the team command on folia or its just broken at the moment?

hexed ice
#

it's not possible to enable it

quasi imp
#

I swear it was 1.21.6 like 2 days ago

umbral vault
#

it got updated!

next crater
#

Does anyone know how to show global or local TPS in the tab?

timber igloo
# next crater Does anyone know how to show global or local TPS in the tab?

there isn't really 'global' TPS anymore, theres the global tick thread, but its TPS arent really meaningful to players im guessing. We use https://github.com/Winds-Studio/Folia-Expansion as a PAPI expansion, it allows you to get TPS in a players current region aswell as 'global' tps

GitHub

Adds some placeholders and PlaceholderAPI support for Folia - Winds-Studio/Folia-Expansion

timber igloo
#

8 cores is a little little perhaps

#

yeah

next crater
# timber igloo there isn't really 'global' TPS anymore, theres the global tick thread, but its ...

[PluginRemapper] Done remapping plugin 'plugins/Folia-Expansion-1.0.0-dev.jar' in 149ms. [22 [15]57 ERROR]: [DirectoryProviderSource] Error loading plugin: java.lang.IllegalArgumentException: Directory 'plugins/.paper-remapped/Folia-Expansion-1.0.0-dev.jar' does not contain a paper-plugin.yml or plugin.yml! Could not determine plugin type, cannot load a plugin from it!

it's for an old version, so it's possible to make your own plugin only based on it?

#

there are no other options?

daring nimbus
#

that is a PAPI expansion, not a plugin

modest kestrel
next crater
daring nimbus
#

see the message above

next crater
umbral vault
#

pterodactyl mentioned

jade canyon
#

Yo is there a pluginn for folia thst increases max speed of minecart?

#

Or some otjer way to do it

swift flicker
#

Can't you just "merge" so much regions that it just crashes due to watchdog or reaches a limit?

inner swift
#

Not really

viral stone
#

Watchdog doesn't really exist for regions afaik

#

but, yea, you could theoretically create an uber region so much so that you defeat the entire point of using folia, that's why the picture and many discussions try to make it clear of the limitation that exists

jade canyon
#

How to put datapack in server?

wet arch
#

the minecart speed thing is a part of the experimental minecart datapack thing

#

it isn't something you put in the datapack folder

real tendon
umbral vault
#

while server exit from deadlock, watchdog just sending a 500 line of death message

#

into console 😊

gray sapphire
#

Hi, can I benefit from Folia on Ryzen 5 3600?

#

Thanks. For now I don't have a large number of players, but in the near future I expect to have to handle more than 200 people. If I understand correctly this CPU is enough to run the game for 50 people, and later just move my setup to better hardware and it should increase the server's capacity (ofc if I increase the region thread count first in the config)?

#

sorry for typos, I'm on mobile rn

#

200 with a better hw

#

realistically how many players can a r5 3600 handle?

#

my proxy is already outsourced on a separate machine

#

what do you mean by 💀?

#

Well, I manage it, but it's on a separate machine

#

I expressed it incorrectly

gray sapphire
timber igloo
gray sapphire
#

And how does Folia (or Java) handle servers with multiple physical cpus on the MOBO? Does it just work like more cores?

timber igloo
viral stone
#

Folia runs with the expectation that you have extra threads for dealing with stuff like chunk loading and management outside of the region threads ticking; There is a pretty sizable resource usage increase mitigated by the fact that it can take advantage of more CPU threads (i.e. pipelines)

#

increasing the number of pipelines the game is trying to use (region threads) without increasing the number of CPU threads you have, just means that you stand closer to a risk of overloading the pipeline; where the numbers need to sit for your game play, etc, can vary drastically

#

The stats/recommendations for folia are generally around a level of assumption that if you're using folia, you should have or be a dev able to patch stuff, and have the income to splash out as needed, not be trying to squeeze as much as you can out of older hardware; Not that you can't, it's just not a situation that the general usecase is tailored for

gray sapphire
#

Well, I am experienced enough to create most of the plugins for Folia on my own. I have also ported several public (incompatible) ones to Folia. So the first recomnendation is already fulfilled. The "income" part is a bit more conplicated 😆

#

iirc Folia is backward compatible, so if I already have a server fully compatible with Folia, I can start with Paper, collect the required funds and later on better hardware just replace the server's JAR file?

gray sapphire
#

but that way, when I notice Paper can't keep up, I can easily migrate to Folia anytime without worrying about plugin compatibility

timber igloo
#

Yes, true

umbral vault
#

it will, but the gamemode affecting the performance directly.

umbral vault
gray sapphire
#

it's SMP, so players will be spread all over the world.

umbral vault
#

oh.

#

i dont think raw folia can do the things that u need. my thoughts

#

u can look on canvas and other forks, just an suggestion not recommendation.

#

i would still avoid at this point for using r5 3600 for folia.

jade canyon
#

Is there a working worldedit for 1.21.8 folia

maiden musk
#

im using a fork and it does work but i have no clue where i got it make some research on github

little sable
jade canyon
#

How to allocate more threads as tick threads? Currently it only is using 4 threads i think and i have a 16 core cpu

umbral vault
#

paper/paper-global.yml

#

you will find threads on downside of page

#

give it more.

modern spade
#

Wait is folia already released?

fair merlin
#

There are downloads on the website, yes, but it's still at the same level of "release" as it's been for quite a while.

calm fable
#

whats the gradlew command to create a mojmapped jar?

scarlet ginkgo
calm fable
#

ahh thank you!

calm fable
#

does the 1.21.8 version of folia have the change that all loaded chunks are randomticked regardless of player distance?

timber igloo
gritty ocean
#

Does Folia have any known issues with Java 24 or GraalVM? I am getting failed main thread checks on a brand new and bare server while it tries to do the initial world generation

little sable
gritty ocean
#

Hm, it appears to be consistent, but I can try again

#

Looks like you are right. It took quite a few tries, but it eventually managed to start normally

little sable
#

This is an error I get from time to time on the first installations of Folia when I use run-dev during my tests.

gritty ocean
#

It might have been exaggerated by the fact that I'm booting 3 new servers in parallel

#

so every time I upped my container stack, at least one server crashed

viral stone
#

There is a loosely known race condition or something weird there, no idea if anybody has ever actually reported it

#

Yeeting the worlds and trying a few times might help

little sable
#

I've noticed this happens when the player's spawn chunk in the world isn't actually in the center of the world, but I haven't done any more research than that.

viral stone
#

The thing hits a random pos and then scans from there

#

I wonder if folia makes some assumptions around where spawn is

ionic kelp
#

repo down repo down

chilly kernel
calm fable
#

sorry 1 more question but does ender pearl chunk loading work?

#

about to start a new season and would just like to know, if so how would one prevent that

ruby spire
tardy elm
#

hello friends

#

is it a bad idea to fork folia & force each world to be 1 region for a skyblock server?

#

currently ChunkAccess#fillBiomesFromNoise is omega killing the server, but I figure I'd ask so I stop before I go too deep down the rabbit hole

little sable
tardy elm
#

well the main goal was to use folia to be able to support a lot of players

#

estimate of 500+-

#

unloading world we can figure something out about that, we just figured each world ticking in a separate thread would be better than plain paper for this

little sable
#

after you can put a very large distance which separates the islands

tardy elm
#

well actually

tardy elm
little sable
#

Yes

#

This is what we did on our server, each island has 5 distance region files for 1 island per region folia

tardy elm
#

mind if I ask how many players you held?

#

all entities we would handle ourselves so they wouldn't need to be ticked, we will probably strip the jar down quite a bit

#

I'm just not sure if it's a better idea than just using plain paper

#

but i think it is

little sable
#

We reached 500 players at the start of the server, we had to upgrade our server to a 224 core CPU.

tardy elm
#

224 core for 500 players

#

hmm

little sable
#

In fact, we had 64 cores which was not enough, so we upgraded and everything is fine, I think we can hold 1000 players

tardy elm
#

where does one even find a provider with 224 core cpus

little sable
#

I don't know, on my server, we bought the machines and put them in a data center

tardy elm
#

okay well

#

thank you for the insightful information kind person on the internet

little sable
#

Np foliaheart

fair merlin
#

So you'd be better off using an instance of Paper.

viral stone
#

I mean, each world would literally already be a single region jsut due to how the regioniser works

#

You'd have the advantage of parallisation of world ticking but some level of overhead for each world, and would need to figure out a solution for the whole un/loading worlds thing

tardy elm
#

we have already figured out unloading

viral stone
#

smells arm'y maybe?

tardy elm
#

well our main goal was to avoid having to shard

#

& to maintain 2 versions of each module

#

since we already have an ongoing prison server

viral stone
#

oh, no, I forgot x86 was there with dual CPUs

tardy elm
#
                            FeatureHooks.closeEntityManager(handle, false);
                            handle.levelStorageAccess.close();```
#

this seems to do the trick at a first glance at least

viral stone
#

I saw some people having some issues where it looked deceptively easy but led to stalling out the system on actual servers, so much so that it needed actual patches to folia, but MahiruShrug

tardy elm
#

uhhhh

#

I'm gonna pretend like I didn't read that

foggy pondBOT
tawdry gullBOT
tardy elm
#

are there any known issues with cactus growing on folia?

timber igloo
livid sun
#

Hi, is it possible to create a plugin for Folia that generates empty worlds?
I want to create a minigame plugin for Folia.

inner swift
maiden musk
viral stone
#

Probably

#

The server is highly sensitive to where you teleport players, in a single threaded server you can mostly rely on nothing too bad happening to pretend you didn't just cause some oddball side-effects, on something like Folia, it becomes a whole lot more fun

maiden musk
#

i see ty

modern heart
#

hey is there a list of plugins that currently work or is every trial and error

hexed ice
#

plugin authors can choose to mark their plugin as supporting folia on hangar/modrinth

modern heart
#

oh okay

#

dang essentialx still doesn't

maiden musk
modern heart
#

for a skyblock public server estimate play count around 100-200 is folia or loofah a better server jar?

rare hare
#

I have never heard of loofah, but considering this is the Folia channel, people will probably recommend you Folia.

rare hare
#

Then I'd definitely recommend Folia

#

Server jars that attempt to allow for both plugins and mods have never worked well

modern heart
#

true

umbral vault
rare hare
#

The API design of the server is not very extensible in many areas, so once you try to add new blocks, items, entities, or even modify existing ones, it becomes very hard to also maintain plugin compatibility. So you run into the issue that either plugins work correctly, but many mods don't work, or mods work correctly, but then many plugins break.

modern heart
#

opinon on this then

daring nimbus
#

Sponge was made with the idea of mod compatibility in mind

#

so that likely works better than any Bukkit-based attempt at it

rare hare
#

Loofah is still newly started and HEAVILY WORK IN PROGRESS. At this point the game launches on both client and the dedicated server but opening worlds on clients crashes and players can't join the dedicated server.

torpid citrus
#

Hello everyone, i have question. How i can check right clicked on player?

torpid citrus
daring nimbus
#

PlayerInteractEntityEvent

#

for that special case

torpid citrus
gritty ocean
#

I seem to recall reading somewhere that PlayerPortalEvent is broken on Folia. Did I dream that?

#

Looks like it's in the readme

#

Any workaround to catching a player about to teleport to a different world?

modest kestrel
#

but its executed even when an entity touches the nether portal

#

so you have to add throttling or otherwise the method will be executed every tick you are touching the portal

gritty ocean
#

Ah, okay cool. That's doable. I was imagining scanning all player positions on a timer as a backup, but this is cleaner

proper coyote
#

Want to use Folia for my upcoming SMP just so that when we have events on the SMP and get a lot of players (100-200) the server doesn't crash or anything. Should I used Folia for this case or no and just stick with purpur?

#

map probably 20k by 20k

tawdry gullBOT
fierce fern
#

wrong message

tawdry gullBOT
proper coyote
#

Probably will start with no folia

#

and expand to folia if we get too big

sterile crag
#

I know that folia needs a lot of threads to work well, but what does it actually do with all those threads? A paper server is happy with just two threads (given reasonable player loads and plugins), but afaik a folia server with three regions would need more than 6 threads.

paper siren
#

there just isn't much benefit if you use only a few threads

timber igloo
modern heart
#

On the foila website it asked for 16 cores so what server host allows you that many

lofty magnet
#

pretty much any host that gives you a dedicated/root server

tawdry shoal
#

can i make a test server for folia only 1 person if i have 6 cores?

modern heart
#

I am doing sky block with multiple worlds

tawdry shoal
#

where to download folia 1.21.1?

#

i need folia for minecraft 1.21.1

modern heart
#

So if I get 16 threads that should be enough?

lofty magnet
#

if you really need it for 1.21.1 then you can just build it yourself but don't expect it to be stable

tawdry shoal
#

how

#

on github only 1.21.8

lofty magnet
#

there is a branch

tawdry shoal
#

thx

maiden musk
tawdry shoal
lofty magnet
#

I mean that page literally doesn't list folia 1.21.1 so...

maiden musk
#

oh yeah my bad.

#

idk why would you use 1.21.1 though especially on folia

#

use latest unless you gonna fork that version

modern heart
#

Well it says online 16 threads doesn't equal cores but server hoster isn't telling me how many cores 16 threads is

lofty magnet
#

then you might want to use a better host

modern heart
#

Ok

soft patio
#

has to be at least 8 cores for 16 cpu threads

#

But that doesn't really mean anything

#

if you have 16 dedicated CPU threads, that's all you have to worry about

worldly spruce
#

Hey there, apologies if this question has been answered a few times already. However, is there a chance to make Folia generate more regions?

As of now, it appears we're locked to around 3-5 regions despite me lowering the grid-exponent. For context, we are on a 8x8k pre-generated map.

viral coral
#

8x8k is pretty small

worldly spruce
#

What would a recommend map size be, for reference?

#

I assume it's time to go big or go home next time Hadge

maiden musk
#

167 players but only 3 regions

#

you have spread players more and 8x8k map isnt enough at all

worldly spruce
#

Yeah, I'm aware

fair merlin
# worldly spruce Yeah, I'm aware

Then the answer is no - if players are too close the regions will merge. You can’t force more. Folia wants large maps and player spread.

tawdry gullBOT
strong nimbus
#

How are the regions decided

north lake
#

We are experiencing intermittent issues with certain regions not responding.
We are using Folia 1.21.8, and we know that this is caused by some kind of plugin.
However, it is difficult to investigate because the error does not specify which plugin is causing the problem, and we do not know when the error occurs.
https://pastebin.com/raw/UCxu2zwU

Does anyone know of a good way to investigate this?

unkempt arrow
#

can i increase the stack size

#

of some items dropped?

wet arch
#

datapacks can't modify the default components of items, if that's what you're suggesting

#

a plugin would more suited to modifying items like that

tiny scroll
#

when mspt>50, does it change behaviour of entities? will minecarts move differently?

tiny scroll
tiny scroll
#

thank

tawdry gullBOT
cunning cradle
#

Hey guys, I’m testing Folia (build 3 for 1.21.8) and noticed something strange.
I split my server into 3 regions. In the first region I spawned a ton of villagers. What’s odd is that when I check CPU usage, only 1 core is fully loaded (sometimes 2-3 cores spike for a second or two, then go idle again). I tested this on both my 8-core server and my 12-core PC same result.

Is this normal behavior for Folia right now, or is something wrong? Shouldn’t the load be separated between regions/cores instead of sticking to one?

wet arch
#

iirc on sub-16 core cpus the default allocation for tick threads is only 1

cunning cradle
#

Yeah, you’re right I checked my paper-global.yml and it had threads: -1 so it was defaulting low. After setting it manually my regions actually started spreading across cores.
Pretty sure it wasn’t GC the load was stuck on 1 core the whole time until I fixed the config. Now it looks way more balanced. Thanks for pointing me in the right direction 👍

wintry granite
#

does sand duper work on folia 1.21.8?

#

@dim merlin i enabled the setting

#

and still it doesn't dupe the sand

dim merlin
#

it is an unsupported setting so ...

wintry granite
#

ok don't help if you don't want

livid crag
wintry granite
#

i didn't ping randomly

#

he responded me in another channel and told him here so i don't crosspost

finite hinge
#

iirc some machines still just don't work but some do?

#

Or you might not have actually changed the setting, depending on when you did it and what hosting solution you're using it might have been changed back or ignored

modern spade
#

Is this normal in folia?

#

Server works fine actually, but the main server thread is at 100%

velvet oracle
#

yes

strong nimbus
#

Would folia be good for a practice / 1v1 duel gamemode where all arenas are in separate worlds

velvet oracle
#

if you want to load and unload said worlds on the fly, no. otherwise yes

strong nimbus
velvet oracle
#

so long as the distance is enough, sure

strong nimbus
#

Okay

tardy elm
#

i just made a patch to fire a CactusGrowEvent and not actually make the cactus itself grow though

#

as my goal was to implement chunk hoppers, so problem solved:P

hexed ice
maiden musk
strong nimbus
maiden musk
# strong nimbus Any improvements over paper?

we still havent launched for everyone its under beta and we are testing with 20 to 30 players and so far everything is going well the main goal is most likely to handle more players so if you dont have a high player count i dont think its necessary to use folia but if you do i would suggest to build your server on folia

strong nimbus
#

I work on a practice core and wanted to know if it’s worth adding folia support

maiden musk
hollow raven
#

What's the best host for running a Folia server? Considering THE POWER OF MULTI-THREADING, obvious choices like PebbleHost go down the drain

maiden musk
strong nimbus
#

Yeah some want it but I was unsure if folia would even be a great choice for duel servers

maiden musk
#

i was looking for a folia supported practice but theres none so had to make one from scratch kekw

strong nimbus
#

Damn

maiden musk
strong nimbus
#

Right now I don’t even regenerate arenas as I generate a copy of the arena on match start

maiden musk
strong nimbus
#

The code is open source

maiden musk
strong nimbus
#

Yeah

hollow raven
maiden musk
maiden musk
strong nimbus
hollow raven
livid crag
#

Try to build a community and ensure you actually can sustain and have the income for big machine first. 99% of server don’t survive first few months

quaint panther
#

Pebblehost is a bit expensive, find a cheapest host with the same specs and trusted/registered company.

timber igloo
quaint panther
#

and i suggest him to run paper because he doesn't have enough funds to run a good machine for it.

hollow raven
quaint panther
#

but keep in mind you will need a good machine if you ever will use folia so make a good decision

#

it depends, a default will look like that, you need to adjust it since he doesn't have enough budget, that's the only way he havethonk

#

if you have good enough money for machine, go for folia

#

if you dont, then stay at paper paper

hollow raven
livid crag
#

In general sense yes, in Minecraft context, if your machine is below spec, running folia is just adding extra overhead.

hollow raven
#

Then I am definitely going with Folia! Thanks!

tawdry gullBOT
acoustic monolith
#

Hey

Someone have alternative of multiverse for folia ?

peak adder
#

Who can upstream Folia to latest Folia

strong nimbus
acoustic monolith
strong nimbus
acoustic monolith
#

okey thanks you dude

acoustic monolith
velvet oracle
#

cus I'm pretty sure you can just do it with datapacks

maiden musk
acoustic monolith
umbral vault
#

PhantomWorlds is not working with stock folia.

#

Worlds is workable with stock folia.

lime heart
#

Does anyone know if there's a workaround for this: https://github.com/PaperMC/Folia/issues/372

Since save-all is disabled I can't force map data to save. For reference this is seemingly still an issue in the latest folia release, but my current version is 1.20.4.

GitHub

Expected behavior map data do not flush to disk with autosave Observed/Actual behavior Playerdata and chunk data are saved properly to disk with autosave, but map data only save to disk on proper s...

tawdry gullBOT
jade canyon
#

yo anyone got the link for luckperms folia build?

foggy pondBOT
flat epoch
#

what would be the better CPU for folia?

  1. Ryzen 9 7950X3D
  2. Ryzen 9 9950X

2 would have more "raw" performance, while 1 has 3D-Cache. Is 3D-Cache good for folia?

modest kestrel
#

9950X would be a much better option

velvet oracle
#

yea either the 9950X or possibly going into epyc/threadripper territory

flat epoch
velvet oracle
#

on Paper single core performance is everything, as everything is ticked on that one single core

on Folia multicore performance is everything, as provided your game world is optimal for Folia (if it's not, go use Paper lol) then the ticking is spread across multiple threads

modest kestrel
#

what would you rather

#

32 threads

#

or 64 threads (but each thread is 25% slower)

#

the 64 threads for folia are MUCH better

velvet oracle
#

if Paper, 32 threads; if Folia, 64 threads.

timber igloo
velvet oracle
#

ehhh depends

#

if you get that on a CPU that's high single thread anyway, won't hurt

#

and it's useful for things that are async such as chunk loading

timber igloo
#

yeah

#

netty threads

#

chunk workers

velvet oracle
#

as well as some plugins that may be able to take advantage of multithreading

#

also you don't necessarily need to give Paper all of those threads, you can use them for side services which may be needed

#

such as a database, redis, proxy, website, wiki, etc

foggy pondBOT
finite hinge
#

It's less important because you might only need to care about regions having up to 20 players (really past that your game design has failed to take advantage of Folia) but you still shouldn't run Folia on one of those Atom-based Xeons

flat epoch
#
Sound sound = Registry.SOUND_EVENT.get(new NamespacedKey(NamespacedKey.MINECRAFT, soundName.toLowerCase()));
``` why is this null when "soundName" is "ENTITY_ENDERMAN_TELEPORT"?
paper siren
#

because it is entity.enderman.teleport

flat epoch
#

bruh

lost vessel
#

Hello i need quickly help i cant start my server and this error is from folia

tawdry gullBOT
lost vessel
#

i use the latest version but its also doesnt work

little sable
#

1.21.5 is not the latest version

lost vessel
#

So is the version buggy?

#

or what can i do

hexed ice
#

provide logs of it happening on the latest version

lost vessel
hexed ice
#

what happens when you try starting your server without plugins like Worlds

lost vessel
lost vessel
hexed ice
#

the plugin itself tells you that it's highly experimental, because folia does not support loading worlds outside of using a datapack to do so

lost vessel
#

but it works the last 3 weeks

hexed ice
lost vessel
#

my friend created a new world on 1.21.5 and we paste it in my other server

#

it works now

north shale
timber igloo
#

i would be guessing so. especially if you want to create worlds on the fly, a datapack is usually not the nicest option, curently you have to rely on forks for properly implemented apis

dim merlin
forest copper
#

Is it really recommended to use 16 threads? Or it can work with like 6 too but not as good? Or it would have issues?

paper siren
#

it will work but might be slower than paper, or generally just not worth the additional complexity and limitations (e.g. regarding plugins)

white laurel
lost vessel
#

Where exactly can I set the utilization higher, i.e., allocate more power to Minecraft?Where exactly can I set the utilization higher, i.e., allocate more power to Minecraft?

prime juniper
#

ok nvm we have already fixxed it 👍

white laurel
#

threaded-regions: threads: X

lost vessel
#

How can I make that Folia use less RAM?

livid crag
#

It is governed by the Xmx flag

lost vessel
prime juniper
fair merlin
prime juniper
#

Alright

lost vessel
#

Folia is really hard to configure. We’re running it on a Ryzen 9 7900 with 120GB RAM and a 1TB disk, and we need help setting up the server YMLs, like IO and Worker threads, and other performance-related settings from Paper.yml.

Our current startup command is:

java -Xms2G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar nogui

If anyone can provide guidance or recommend better settings, we’d really appreciate it. nyaahearts

fierce knotBOT
lost vessel
timber igloo
timber igloo
lost vessel
timber igloo
#

from looking it up, that thing has 12 cores, which is okayy, but not optimal for folia

timber igloo
lost vessel
#

Sorry, I misunderstood that.

timber igloo
#

no worries

#

but in any case you are probably going to have to try around a bit. if you have a question regarding a specific part of the config or how it will affect a folia server people will likely be able to help you, but i doubt someone wants to look at your entire server config, without knowing the details of your server type, and look for potential issues

lost vessel
#

Yes, I think so too, but it doesn't hurt to ask. But thank you very much for this helpful tip!

timber igloo
#

yeah most defenetly

#

or well

#

again really depends on your specific use case and configuratin

#

but as a general rule of thumb, probably

maiden musk
split depot
#

It's affecting every server that uses Paper currently and is pretty annoying

#

I don't really know where to look for a fix

maiden musk
calm fable
#

does "Utilisation: 130.9% / 400.0%" this mean i only have 4 threads going?

viral stone
#

yes

calm fable
#

my system has far more cores, how would i increase this?

inner swift
#

Paper global config, do note that it's intentional for the the tick thread count to be far lower than the total core count, because there's way, wayy more potential threads that'll be used

calm fable
#

right but i have 16 cores, i want to use at least 8

#

paper global, got it

#

do you know the keyword?

inner swift
#

Not sure, probably has "thread" somewhere

calm fable
#
  grid-exponent: 2
  threads: -1
``` this is the only part that i see that has that
viral stone
#

yes

calm fable
#

i assume i change -1 to 8?

viral stone
#

Yes

calm fable
#

thanks so much!

faint crown
#

Hey, how can i enable the spark-profiler for my folia server?

viral stone
#

You need to grab the folia build from their CI server

faint crown
#

ohh, so the bundled one that comes with paper doesn't work on folia? I was wondering a lot, since i didn't disable it but it didn't work 😅

radiant juniper
#

Is it possible to reduce the merge region size/radius ?

finite hinge
#

Not really, the smaller the regions the more locking overhead and they can't get smaller than the range of MC features

radiant juniper
#

Implementation variables: The implementation variables control how aggressively the regionizer will maintain regions and merge regions.

viral stone
#

There is a grid exponent configuration option which is exposed

radiant juniper
#

That's what I'm looking to experiment with, there is no easy way to modify thos implementation variables ?

viral stone
#

Well, they're implementation aspects, you would need to modify the implementation

radiant juniper
#

Ok, thanks

finite hinge
#

The grid-exponent setting is either already as small as you can go or almost as small as you can go

viral stone
#

if vanilla features access outside of the region, stuff iwll blow up; that is generally why the min region size is what it is

finite hinge
#

You certainly won't be getting regions down to like 400 blocks or something

radiant juniper
#

And lowering that is not feasable ?

viral stone
#

I've not done the maths, I have no idea how that works

radiant juniper
#

Just seen it was changed from 2 before to 4 in recent versions, wonder what caused this.

wet arch
#

2023
recent

north shale
#

So Folia says it recommends 16 cores, what happens if you run it on hardware with less?

viral stone
#

The recommendation is partially set based upon the economical expectations of using Folia

#

you could run it on 1 core, you'd just have less resources to gain from

#

(and with the overheads, it might even run a fair bit slower than paper)

north shale
#

What would you say about an 8 core cpu where each core has one thread?

#

So 8 cores and 8 threads

viral stone
#

nothing changes in what I've said

north shale
#

Do you think that would benefit from it? In my opinion, it's worth it even if it only benefits a little bit

viral stone
#

How much value you get out of said hardware is going to depend on your server setup, can't really provide much more than the genric plataitudes we've provided for the past few years over this topic

north shale
#

We'll it's a survival server where everyone is thousands of blocks apart. So I know folia is the right pick for it, I just don't know if the cpu would be good for it

viral stone
#

The number of cores is only one factor

#

Chances are it will be better than paper in those cases, that just ignores the other half of the equation there

north shale
#

What is the other half of the equation?

viral stone
#

The expectation that if you're dealing with folia you have the resources to throw around on suitable hardware and some devs

north shale
#

I just do all of the developing myself and the cpu is already prepaid for more than another year. It's just a side project

primal oyster
north shale
#

Well I run the proxy on the same machine and one small other server that only catches people when the main server restarts

primal oyster
#

I'll be honest. In donutsmp our experience has mostly been:
You will experience real improvement if your region has lots of players(like our rtp zones)
But you will have more cpu power if there are lots of farms that use a good amount of cpu so here more cpus are better

#

But then if your machine has more cores with slower core frequencies you end up with a higher latency for netty pipeline in general

north shale
#

Yes it's a vanilla server that has high mob rates, spread out players, afk alts at large farms, etc

primal oyster
#

It's more of a depends on your workload and what you find acceptable

#

But generally pvp performance is a one way road so

north shale
#

What do you mean?

primal oyster
#

Vanilla server with high mob rates and large farms

#

Or very good pvp latency

#

Usually you won't achieve both on the same cpu

#

At the finest level possible

#

There'll be a mid term

#

You can fit lots of spread out players with massive farms on a high core count box

#

But you'll have small but extra latency on lot of operations so you won't have massive player count areas on low latency or (mspt) if you want to call it

#

Fast cpus usually not have too many cores so

#

If you have 16-32 farms that are using a lot of resources and all on different regions, you see where you're getting?

#

Capping cpu

north shale
#

I think so

#

I'm not too knowledgable in this topic

#

How would that cap CPU?

fluid hinge
#

Hey, is there a folia version of vault?

subtle wasp
scarlet stream
ruby carbon
#

I'm trying to compile a simple test plugin, but every time I try I get something along the lines of

   > Could not find dev.folia:folia-api:1.21.2-R0.1-SNAPSHOT.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/dev/folia/folia-api/1.21.2-R0.1-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/dev/folia/folia-api/1.21.2-R0.1-SNAPSHOT/folia-api-1.21.2-R0.1-SNAPSHOT.pom```
#

I'm at a loss for where I'm supposed to grab the folia version from

#

Also this is my very first attempt at minecraft plugin development (im a software dev for work though)

viral stone
#

You would grab it from the paper repo

#

(There was no 1.21.2 published, however)

ruby carbon
#

So in the gradel build, in the dependencies, compileOnly 'dev.folia:folia-api:1.21.2-R0.1-SNAPSHOT' This isn't needed?

ruby carbon
viral stone
#

I mean, you need that, you also need to add the paper repo to your project

tawdry gullBOT
tawdry gullBOT
tiny scroll
#

why doesnt command blocks do anything on folia server?
there is enable-command-block=true is server.proterties
but when i try to use command block, it literally does nothing

#

it doesnt say "command blocks are disabled on server"

prime juniper
#

Hey all, i'm trying to setup a test server with folia, but it seems only one out of the 2 cpus is being utilized, ive tried changing some things in the .yml without avail

quaint panther
#

change the value

#

to what you desire

prime juniper
rich python
#

how do i get folia 1.21.4

quaint panther
coral ember
#

it's really not recommended to run outdated versions on folia, but if you insist

tawdry gullBOT
coral ember
rich python
#

tha jar name is paper

coral ember
#

you need to scroll down on the left to folia

rich python
#

okay thx

fair merlin
#

You don’t want to run an older version of Folia.

topaz grove
#

How can I use placeholderapi on folia?

rare hare
#

I don't believe PlaceholderAPI supports Folia, so you can't.

hexed ice
verbal magnet
#

hey, i was wondering if anyone knows an alternative of spark for folia?

viral stone
#

spark

#

they have an extra platforms page on their build server

viral coral
#

any good folia supported prometheus exporters in 2025?

umbral vault
#

"and Michael decided to learn his server stats in a cool way."

#

Test this thingy.

umbral vault
radiant needle
#

anyone had issues with mobs not despawning at all

fair merlin
acoustic garden
#

Hi, when my Folia server has a lot of players (+1100), it doesn't let anyone in and instakicks. Is this due to something wrong with the Folia/Paper configuration that I need to adapt?

viral stone
#

You would need to work out what packet that is

#

I would be surprised if the tab list stuff just wasn't designed to handle that

acoustic garden
viral stone
#

There is no trivial way to find that out

acoustic garden
#

protocollib listener?

viral stone
#

I mean, it would probably more require modifying the server software itself to inject that information

#

or some other form of hackery to pull off

#

Oh, could probably slip something into the packet encoder

acoustic garden
#

it would be great

viral stone
#

I mean, I'm not going to do that

acoustic garden
#

yeah yeah, I know haha

tawdry gullBOT
elder maple
#

how to use Folia NMS? I just want to know the MSPT of a certain region. I think ServerWorld.regioniser can help me with this somehow, but it is only available in Folia NMS.

tawdry gullBOT
hexed ice
#

instead of paperweight.paperDevBundle you use paperweight.foliaDevBundle

elder maple
maiden musk
maiden musk
little patrol
scarlet ginkgo
#

thats very much possible given there is no main thread to be profiled for tick times

#

each region has its own tps

little patrol
little patrol
azure wadi
#

Hello! I have a question regarding tnt behaviour when pushed through nether portals.

#

I dont know if its the servers specific plugins/config that change that, or what. But tnt loses its momentum when pushed with a piston and slime block (thus breaking farms like portal based obby farm)

rich python
#

How do i folia compile plugins

arctic tapir
#

don’t crosspost

elder maple
frail swan
#

I'm in the same bug. I have a release at 6 p.m. CEST today, and I need to be able to compile my project by then. Both my CI/CD and my PC are showing the error. Could you please restart your repo server or look into the problem?

elder maple
#

So I'm not the only one

elder maple
livid crag
unique gale
#

soo paper repo still down?

arctic tapir
#

yes

slim flint
#

Hey, is it recommended or required to set a fixed number of threads for the different tasks in the config manually, or does the default -1 generally do a good job at managing it automatically as a baseline?

#

Apart from that, any other basic recommendations? As launch args, I currently simply have matching xms and xmg as well as generational ZGC.

viral stone
#

@acoustic garden I don't provide 1:1 support

acoustic garden
#

Do you think you could help me configure Folia correctly?

#

I think I have too many chunks in each region.

viral stone
#

You have 134 players in a region

tawdry gullBOT
acoustic garden
# viral stone You have 134 players in a region

I know, my survival world is 50k x 50k and the spawns are separated into different servers. The problem is that there's a streamer with a lot of viewers who are concentrated in specific chunks and are lagging that region. Having 14k chunks in a single region seems excessive to me. Do you think I could lower the grid in the Paper config? Does it affect CPU usage a lot?

viral stone
#

It's nothing to do with chunks

#

it's all to do with how close players are together

#

there is the grid exponent setting but it's not going to help if all of your players are close together

acoustic garden
#

So I understand that this region is doomed to lag, right?

viral stone
#

Correct

acoustic garden
#

Hmmm, interesting. Thanks!

swift night
#

9k entities seems like alot for 134 players as well

timber igloo
timber igloo
# acoustic garden So I understand that this region is doomed to lag, right?

iirc one of the main problems with that was that if you have players within a tick region, entity update packets, players pushing each other etc. will rise with the square of the amount of players in that region, and the ticking thread will quickly get overwhelmed. You can split your spawn into multiple 'virtual' regions, where each regions keeps some players and spawns fake players for all other players, that gives every player the visuals of having all other players there. comes with the disadvantage that you basically have to disallow most interactions between players within the 'spawn' area, or put a lot of effort into making that work properly without dupes

swift night
#

20000 entities in one region is insane lol

tawdry gullBOT
broken umbra
#

Is it normal for my Folia server to crash with 400 players?
How should I set it up so it stays at 700 players?

#

I wanted to use Folia for a custom survival

lofty magnet
#

show the crash report

timber igloo
broken umbra
timber igloo
broken umbra
#

AMD RYZEN 9 9950X - 16 c / 32 t - 4,3 GHz / 5,7 GHz
RAM
128 GB DDR5

broken umbra
quaint panther
broken umbra
quaint panther
#

in jvm startup

quaint panther
dim merlin
quaint panther
#

oh yeah update to latestkekwhyper

fair merlin
quaint panther
#

mb i didn't see offline mode

fair merlin
vocal helm
#

nothing

quaint panther
# broken umbra why not :(

well you would need to ask support in another server because paper doesn't support offline mode servershrugtent

#

you gotta follow the rules

fair merlin
somber fog
#

hey, can someone help me get configurate-core to install? i keep getting this error:

Could not find org.spongepowered:configurate-core:4.2.0-20250225.064233-204.
Searched in the following locations:
  - https://repo.maven.apache.org/maven2/org/spongepowered/configurate-core/4.2.0-SNAPSHOT/configurate-core-4.2.0-20250225.064233-204.pom
  - https://repo.papermc.io/repository/maven-public/org/spongepowered/configurate-core/4.2.0-SNAPSHOT/configurate-core-4.2.0-20250225.064233-204.pom
  - https://oss.sonatype.org/content/groups/public/'/org/spongepowered/configurate-core/4.2.0-SNAPSHOT/configurate-core-4.2.0-20250225.064233-204.pom
  - https://jitpack.io/org/spongepowered/configurate-core/4.2.0-SNAPSHOT/configurate-core-4.2.0-20250225.064233-204.pom
Required by:
    root project : > dev.folia:dev-bundle:1.21.4-R0.1-SNAPSHOT:20250613.215508-3
viral stone
#

That snapshot version was lost during the repo migration

somber fog
#

wdym lost?

viral stone
#

gone

#

the asset is no longer there

somber fog
#

can i get it back?

viral stone
#

you should be able to add an exclusion to your project to not pull that dependency in

#

jmp said about it somewhere iirc

somber fog
#

so i should add an exclusion for that library specifically?

viral stone
#

yes

somber fog
viral stone
#

For paper

somber fog
#

ah

viral stone
#

folia would need updating to pick up that fix

somber fog
#

if i get the dependency sent to me by someone who has it, would that fix it?

viral stone
#

I mean, you would need it in a maven repo where it can resolve it

somber fog
#

i'm pretty new to maven and repositories in general, but can't i just put it in the directory it's expected in and gradle will pick it up as cached?

viral stone
#

it's expected in a maven repo, idk how you'd manually slap it into the gradle cache structure

somber fog
#

how would i add an exclusion?

viral stone
#

not sure exactly

#

the exclusion needs to be applied to a specific configuration so you'd need to get that and add it to that

somber fog
#

can you provide an example of that

#

oh i think i got it to work

somber fog
#

is /data disabled in folia?

daring nimbus
#

yes

somber fog
#

why?

daring nimbus
#

probably because it allows modifying state across regions and its more trouble implementing that than its worth. Especially given that is something used mostly by datapacks anyways

somber fog
#

oh alr

rare steppe
rancid swift
#

Can someone edit the ClickVillager plugin so it works on Folia for me?

#

The owner needs it for a large earth smp that wont be starting in that long

fair merlin
rancid swift
#

Oh ok sorry

#

Which server do i join

fleet rock
#

hello, monster not spawn for me

#

in all worlds

#

the monsters not spawn

tawdry gullBOT
fair merlin
#

Post a spark report please

wet arch
#

you can lower the delay from 300 to 11 since the spark is just for configs

rancid swift
#

I kinda need it converted asap

timber igloo
rancid swift
#

Im not the one hosting it

#

But the owner wants me to find a way to get it on Folia

#

And its also not a large large server

#

It has like 300 people

#

Its a revival of a dead smp

fair merlin
rancid swift
#

...

viral stone
#

We don't want people hiring services inside of our discord because then we have to moderate it and we would rather not do that; we ask that you take such requests to a place which has said that they're willing to do that

fair merlin
#

To which you were already directed.

cosmic pawn
#

Are all datapacks disabled in folia? Because apparently there’s a distinction between datapacks that use .mcfunction and datapacks that just alter the registry. Registry datapacks are only processed on init, which doesn’t seem to be in contradiction with folia, as far as I can tell

#

But I only learned about registry datapacks today so idk

viral stone
#

Command functions are disabled because global state

cosmic pawn
viral stone
#

I'm saying that command functions inside of datapacks will not work

ebon sage
#

what is mean by compile Folia to version 1.21.8

foggy pondBOT
deep basin
#

guys im pretty new to folia, is there any way of doability to trigger portals to another server in folia? im trying to proxy nether, end and overlord in folia to each have its own server

livid crag
#

Yes but can I ask why you need nether and the end in different machine?

deep basin
livid crag
#

A single beefy machine would just do the trick.

#

Your end and nether ain’t going to be populated enough to justify the complexity to use 3 physical machines to do the work when one is just ok assuming you are using Folia properly.

#

If a player is in nether, that player would have a region dedicated to him/her already on Folia.

#

There is almost zero gain and all the extra works/potential dupes/exploits by introducing complexity.

deep basin
livid crag
#

Yes

deep basin
umbral vault
#

folia 1.21.9 when 😭

tawdry gullBOT
umbral vault
#

well well

fair merlin
umbral vault
#

i finally found a way to divide the overworld into two pieces

tawdry gullBOT
umbral vault
#

now all i need to setup postgres and redis

strong nimbus
ebon sage
#

PS C:\Users\RajathRejesh\Auctions> ./gradlew build -x test
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/C:/Users/RajathRejesh/.gradle/wrapper/dists/gradle-8.13-bin/5xuhj0ry160q40clulazy9h7d/gradle-8.13/lib/native-platform-0.22-milestone-28.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

FAILURE: Build failed with an exception.

What went wrong:
Could not determine the dependencies of task ':check'.
Could not create task ':test'.
Could not create task of type 'Test'.
Could not create an instance of type org.gradle.api.internal.tasks.testing.DefaultTestTaskReports.
Could not create an instance of type org.gradle.api.reporting.internal.DefaultReportContainer.
Type T not present

Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org/.

BUILD FAILED in 1s

why it failed?

umbral vault
#

😃

#

managed to run 4 shards successfully

#

maybe i can increase it

#

its even enough rn in this condition to handle 5-7k players?

#

if i handle 1500 player per shard

viral stone
viral stone
#

which is basically not considered supported yet by their matrix

vernal thorn
#

how does folia handle mob spawn, is there a difference to paper,?

acoustic garden
#

Hi

#

Are there any flags recommended only for folia?