#folia-help
1 messages · Page 35 of 1
make sense 💀 🙏
Unload that()
I remember some version of Gsit would cause this error
i have question that does cpu amd that have 3D does it help any on minecraft server?
it won't be a significant change most likely
like when the cpu full load 100%

that doesn't mean anything
nvm 🙏
even sometimes
non 3d's beating 3d
lol
x3d cpus isnt designed for servers generally, but hostings using it
-# coughs in Epyc 4004 series with 3D vCache https://www.amd.com/en/products/processors/server/epyc/4004-series/amd-epyc-4584px.html
should i change my server software to folia? im using paper my members are far from each other like 5k between each player and my ghz speed is not too good
We can't tell you if you should
The reality is that Folia is not a slap in replacement for Paper
I do use parallel world ticking on my Survival server (I'm the creator of the parallel world ticking patch, I created it for my own Paper fork (SparklyPaper), which then Winds Studio's Leaf fork borrowed it). The patch is literally just "mom can we have folia?" -> "we already have folia at home" -> folia at home: parallel world ticking.
It was created as a stop gap while Folia was not "ready" yet, and because I knew that creating multiple individual servers for each world (which is what some servers do) would be EXTREMELY painful (also known as: "man I'm too lazy to make my plugins work with folia" makes something even harder) 
My server does have multiple "Survival" worlds to spread out the ticks into multiple worlds. With Parallel World Ticking you need tailor your server around it to make it efficient, whereas with Folia you don't need to worry that much about it because it spreads out into multiple regions for you. Folia is more efficient, and better, and cooler, pets the spottedleaf... but PWT is also fun! [citation needed] 
In my experience on my own server I did not need to change a lot of plugins to make it work with parallel world ticking (only MyPet, NoCheatPlus and Citizens had bugs), but then again, most of my server plugins are coded by myself so ymmv
All of that was explained on my own fork's docs, but because it seems that most people learn about Parallel World Ticking because of Leaf, no one ends up learning the reasoning behind the patch lol
https://github.com/SparklyPower/SparklyPaper/blob/ver/1.21.4/docs/PARALLEL_WORLD_TICKING.md
cc @umbral vault @little sable
It's always like that, the better you advertise, the more people look at the person who advertises well, not the person who invented.
I'm experiencing lag on my server, even though TPS is stable at 20.
I'm running the server on a powerful CPU (Ryzen 9 9950X), and the performance metrics like MSPT and region TPS all look perfect. However, players (including myself) still feel some kind of delay — like everything is happening about one second late, even though there's no TPS drop.
I've tried optimizing the server, but I still can't fix it. It doesn't feel like tick lag — it's more like network or input delay, but I can't find the root cause.
Any suggestions or ideas on what might be causing this?
what da ping?
20/30 ms
Please post a spark report as requested
isnt spark excluded from folia by default?
they might not have it
The paper version doesn't work, they'd need the plugin
We can't really advise much without information, if they can't/won't provide such info, there is little we can do
Hello guys!
Can someone give a hint why one region has too many regions?
We have a barrier from -10000, -10000 to 10000, 10000
7 processor cores and 14 threads, region chunk shift is 2 (and also i changed ThreadedRegionizer maxDeadRegionPercent to 0.5 but its not important)
I tried to make debug /tps server for details but i think its useless
I'm back again.
I'm not sure it should work like that
I mean, what's wrong here? A lot of players are relatively close together
so yeah, regions will merge
you want small groups of players with at least 2-3k blocks between them
Yeah you've basically got 2 medium size paper servers in 2 regions
Your players are way too close, so essentially you are not taking any advantage of Folia server.
so technically I can skip nearby regions if a certain limit is reached in ThreadedRegionizer#addChunk and it'll make separated regions?
I mean adding other regions if neighbourSection.getRegionPlain().getOwnedSections() or .getOwnedChunks() is not too big
its a dirty solution but i think its ok for small (10k) map
that's simply not how folia works
that's fundementially not going to work, your server is better off running Paper @sleek fjord
Anyone know any folia-compatible alternatives to MyCommand? I just want to be able to define commands in yml
Like a command that outputs a message or a command that makes the server run a command
And them able be perm-based too
you can probably just make your own plugin that adds all commands you want at that point tbh
Yeah you're right but I've already dev'd like 5 other plugins just because there wasn't a public folia alternative
7 actually
can you enable sand duping in folia?
Same as Paper.
Can dual Xeon E5-2680 v2 CPUs handle 200–300 players on a Folia server if properly optimized?
Folia is not designed for NUMA and a more than 10 year old CPU shouldn’t be touched with a stick for anything serious
does folia have all of the same global and world config options that paper does?
Yes
no, get a newer xeon or run on hi-end ryzen, if you have that amount of player, you should be able to get a dedicated server or something
i have islands 1k appart, is that still too close?
that would be way too close
With my tests on my Skyblock plugin, you must have at least 1500 blocks/grid for an island per region
java -Xms2G -Xmx4G -jar folia1.jar nogui
Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException
I'm using the server jar for the dev branch 1.21.5.
Anyone else have this issue?
I'm using the Nightly builds posted here on the Folia To Go Downloads
Also, could someone explain the difference between the folia-paperclip, folia bundler and folia server jars?
Please edit the message to remove the url and preview. We ask people to not share direct download of Folia. Thank you.
Oh okay sorry.
The paperclip jar will download Minecraft on first startup and patch it, the bundler jar already contains Minecraft and is illegal to distribute.
Got it, thank you. For anyone having the problem I had, I just had to actually run the jar itself before trying to run it as a server (🤦)
Hello, I ran into the problem that when some players teleport to the rtp, their ping rises to 1k. I do not even know what this might be related to. Can someone help? (chunks are uploaded in advance via Chunky)
Don’t cross post if it’s not folia related @tardy zinc
Is there a plan to add support for additional worlds?
You can already do so with datapack. And no, nothing planned as of now.
datapacks are broken on folia
Not the functionality I mentioned
is there a folia version for 1.21 available as I can only see branches for the 1.21.1 1.21.3 1.21.4 1.21.5
Nope and you should never run those outdated version as they have bugs and exploits.
ah I see so I probably switch to using 1.21.1 right?
no .5
especially with folia you should always be on the latest branch
does folia not support datapacks?
It supports world gen datapacks (and some other non-command stuff), but not ones with command functions
just look in the log on startup I guess
ok now if I want to use plugins does it care if its a version below mine / are breaking changes mad during any version
It depends on whether the plugin uses only API
If a plugin uses internals, it's bound to break on any version updates
API is less likely to change in between versions, but it does happen sometimes
Attempting to get the tripwire hook dupe to work on a 1.21.4 server, option is not in the config, server is on folia
Already checked the docs
You may want to re-read the docs.
The config mentioned does not match the servers config
There is no tripwire exploit option in the servers config, when the docs have it
How does your paper-global.yml look like?
Or do
Ah, yeah, that's better ^
what commit of folia are you running
not sure what that is
run /ver and send the output
alr
A spark report would be better, as stated above.
How big is 1 Folia region?
There is no set size for a Folia region. Regions grow and shrink depending on the location of players.
Guys How do I build 1.21.5 Folia with gradlew
just like how you build Paper
But I got an Errow with "gradlew.bat clean applyPatches createReobfPaperclipJar"
So how can I know all scripts...?
by asking gradle
(pretty sure you can?)
ther eis a command which tells you all of them
only if you've already applied once can you reliably get away with a 1 liner, and even then it depends on what changed
also, you're not supposed to use a reobf task
Apparently, you can. I didn't know that either. Good to know though, that will save me from doing fixupSourcePatches and rebuildPatches (or whatever the commands were) one after the other xd
last I knew it was tempermental and not something i care to invest time into supporting/recommending
The ordering is just not stable
huh, is that so
that makes it unusable again then
Can someone help me with some info? I need to have an understanding of whether to use folia on my map or something else. Also, am I able to define the boundaries of the sharding?
The majority of players will be in zone 0. projected total average is 200 players inside zone 0. Projected for whole server, 500+.
map will be 30k x 30k
You can't define the boundaries, regions move with players (and merge if players come close to each other from diff regions)
Thank you! It seems folia is not a good fit for my world'
you wouldnt happen to know of an ideal setup for my project? off the top of your head of course
I'd say just regular Paper
If you really want fixed boundaries like that, you could also run multiple Paper servers and simply move the players to another when they cross
the thing is, I cant have any loading near the borders, also i cant have any borders at all. I want a fully connected world at all times.
Heyy, I was having some issues logging in after updating to 1.21.5 https://mclo.gs/tzJKzr4 I keep on getting this error, and I can't figure out what plugin is causing it. Is it a plugin?
Well there's like 12 errors in there but they all look to be plugin related.
i would assume the login one is probably related to some scoreboard (adjacent) plugin
did you update your plugins when you updated?
I was pretty sure my plugins I was using was updated. Although maybe I should double check? I had to update 12 plugins so far.
well, as usual, try binary search
hahahaa sorry for the ping lol
Okkk
the link in this bot command is wrong ever since the docs redesign
or at least, doesn't seem to scroll
hmmm
@rare steppe I wonder if I fucked up that one
https://docs.papermc.io/paper/basic-troubleshooting#binary-search?utm_source=discord&utm_medium=app&utm_campaign=binary

yes
https://docs.papermc.io/paper/basic-troubleshooting?utm_source=discord&utm_medium=app&utm_campaign=binary#binary-search
probably
riley will fix them 
Oh wait so this wasn’t a plugin only issue?
Re-read the messages. They're just talking about the snippet that gets sent to Discord to tell people to use the binary search method.
Ohh hahahah I was keeping my hopes up lol. I’ll have to just do a binary search in the coming days.
Hey there, I just built Folia and just get no main manifest attribute, in folia-1.21.5.jar when trying to boot. I followed the Paper build intructions on the GitHub.
https://github.com/So4246la/RandomDeathpawnForlia/tree/main
Can someone help me figure out why my plugin isn't working correctly?
The remaining life feature is functioning fine, but the random spawn point feature isn't activating properly.
(Note: Comments and other texts are in Japanese because I'm Japanese, but please don't worry about that!)
wrong jar, you need to run the task to get a bundle jar and grab it from the root build folder iirc
Paper doc states its /build/libs. The task generated folia-1.21.5-R0.1-SNAPSHOT.jar in the aforementioned dir, which seemed promising considering the file name. There arent any over jars in the build dir.
Just found folia-server-1.21.5-R0.1-SNAPSHOT.jar in /folia-server/build/libs, gonna give that one a try
not the root build folder, it's from -server; but, that's not the right jar, as I said, you need the bundler jar
Yep, just realized. Thank you :)
I have a question does folia affect spawner range like from the normal 9x3x9 to like 5x3x5 or if there's a way to increase the range of them?
Spawner range is same as Paper which is same as Vanilla.
Not built in on Paper. You will need to make a custom plugin
Okay thanks 🙏
Or vanilla commands, if you want to change a single spawner
hey
i use velocity for my basic server using paper .
i would like to add a folia server for my new version of my server .
but i have a problem:
my connection is break with this error message :
[23
49 INFO]: [connected player] royaljacques (/) has disconnected: Unable to connect to dev: If you wish to use IP forwarding, please enable it in your BungeeCord config as well!
my config is good no ?
# This is the global configuration file for Paper.
# As you can see, there's a lot to configure. Some options may impact gameplay, so use
# with caution, and make sure you know what each option does before configuring.
#
# If you need help with the configuration or have any questions related to Paper,
# join us in our Discord or check the docs page.
#
# The world configuration options have been moved inside
# their respective world folder. The files are named paper-world.yml
#
# Docs: https://docs.papermc.io/
# Discord: https://discord.gg/papermc
# Website: https://papermc.io/
_version: 29
block-updates:
disable-chorus-plant-updates: false
disable-mushroom-block-updates: false
disable-noteblock-updates: false
disable-tripwire-updates: false
chunk-loading-advanced:
auto-config-send-distance: true
player-max-concurrent-chunk-generates: 0
player-max-concurrent-chunk-loads: 0
chunk-loading-basic:
player-max-chunk-generate-rate: 40.0
player-max-chunk-load-rate: 40.0
player-max-chunk-send-rate: 40.0
chunk-system:
gen-parallelism: default
io-threads: 30
worker-threads: 10
collisions:
enable-player-collisions: true
send-full-pos-for-hard-colliding-entities: true
commands:
fix-target-selector-tag-completion: true
suggest-player-names-when-null-tab-completions: true
time-command-affects-all-worlds: false
console:
enable-brigadier-completions: true
enable-brigadier-highlighting: true
has-all-permissions: false
item-validation:
book:
author: 8192
page: 16384
title: 8192
book-size:
page-max: 2560
total-multiplier: 0.98
display-name: 8192
lore-line: 8192
resolve-selectors-in-books: false
logging:
deobfuscate-stacktraces: true
messages:
kick:
authentication-servers-down: <lang:multiplayer.disconnect.authservers_down>
connection-throttle: Connection throttled! Please wait before reconnecting.
flying-player: <lang:multiplayer.disconnect.flying>
flying-vehicle: <lang:multiplayer.disconnect.flying>
no-permission: <red>I'm sorry, but you do not have permission to perform this command.
Please contact the server administrators if you believe that this is in error.
use-display-name-in-quit-message: false
misc:
chat-threads:
chat-executor-core-size: -1
chat-executor-max-size: -1
client-interaction-leniency-distance: default
compression-level: default
fix-entity-position-desync: true
load-permissions-yml-before-plugins: true
max-joins-per-tick: 5
region-file-cache-size: 512
strict-advancement-dimension-check: false
use-alternative-luck-formula: false
use-dimension-type-for-custom-spawners: false
packet-limiter:
all-packets:
action: KICK
interval: 7.0
max-packet-rate: 500.0
kick-message: <red><lang:disconnect.exceeded_packet_rate>
overrides:
ServerboundPlaceRecipePacket:
action: DROP
interval: 4.0
max-packet-rate: 5.0
player-auto-save:
max-per-tick: -1
rate: -1
proxies:
bungee-cord:
online-mode: false
proxy-protocol: false
velocity:
enabled: true
online-mode: true
secret:
scoreboards:
save-empty-scoreboard-teams: true
track-plugin-scoreboards: false
spam-limiter:
incoming-packet-threshold: 300
recipe-spam-increment: 1
recipe-spam-limit: 20
tab-spam-increment: 1
tab-spam-limit: 500
spark:
enable-immediately: false
enabled: true
early-warning-every: 5000
- Don't share your secret, now anybody can join your backends if they find the IP
- if you're using modern forwarding, you need to keep bungee mode disabled in spigot.yml
hi does luckperms work with folia? or is there an alternative?
same question for essentialsx
you can probably also search for essentialsx in this channel
will do, many thanks 😸
Is there a way to find the main chunks that cause lag?
not really
There are plugins like insights, idk if they support folia, which do some guess work based on how many events they see
Hello! Could you please tell me if this server is suitable for folia? We are planning to use an SMP server with an average online of 200 people. I'm also worried about what they say about the 13th generation Intel Core not working well with Minecraft servers
Or maybe a simpler server, like this one, will be enough for my needs?
probably wouldn't work super well
The recommended minimums are 16 physical cores, the i5-13500 and the i5-13900 have, respectively, 6 and 8 of those
The others logical cores from these CPUs como from SMT or e-cores, these are not ideal for heavy workloads. Regions tend to be heavy
Where do you even get those power horses like the one used for public testing
avoid new intels
- there are stability issues with 13/14th gen of intels that go back like a year, a lot of cpus were/are affected and will give out really fast under heavy use
- intel uses the bullshit "p-core" and "e-core" system which basically means you only get a few actual cores that perform as expected and more crap cores that you can wipe your ass off with because they are just there to artificially bump core/thread count
Any good alternatives for folia for essentialsx plugin?
Also i need permission plugin for folia anyone know any good one?
thanks!
Does enabling generate-random-seeds-for-all effectively stop users from using SeedCracker?
enable before render chunky right?
but if people reallllllllllllllllllllllllllllllly want they can still get your seed but it wouldnt help them much as ore location wont align with world seed.
once enabled, only the newly generated chunk will take effect.
ah oki
Just make sure you either NEVER open the server (or else spawn will generate)
or you open the server > set the spawnRadius gamerule to false > set the random-seed and structure seed then delete the world, this also works.
thanks.
I recommend considering AMD instead.
Ryzen 7 7700 or Ryzen 9 7950X3D are great options. I currently run an SMP setup using cross-server architecture with 500–1000 players. With around 200 players online, my Ryzen 9 9950X typically uses only 20–30% CPU.
I assume the 9950X performs similarly to the 7950X3D.
How do you divide your cross-server architecture?
In my cross-server architecture, I use several plugins to handle synchronization between servers. These include:
- Sync – for syncing player data and other server-specific information (a custom fork of HuskSync).
- RedisChat and RedisChatFilter – for cross-server chat and message filtering.
- RedisEconomy – to synchronize the economy system across all servers.
- zAuctionHouseRedis – for a shared global auction house.
- BungeeRTP – for random teleportation between servers (a custom-developed plugin).
These plugins enable seamless communication and shared features across all my Minecraft servers.
-# This summary was generated by ChatGPT because I was too lazy to write it myself. 🙏
OK we pretty much have the same infra, I was asking more about which worlds you divide.
Do you put your nether or end on different servers? Or is it just simple spawn & everything else.
Yeah, I split them up a bit more than just spawn vs everything else. Here's how I divide my worlds:
- 1 server for Spawn (/spawn)
- 1 server for The End (/warp end)
- 1 server for AFK world (/warp AFK)
- 2 servers for SMP – both are survival worlds but use different seeds
I am guessing you only use Folia on SMP, or?
yes only Folia on SMP
What about nether?
same with world too
Makes a lot of sense.
We've basically been doing:
- 1 Paper server for Spawn, End, Nether and AFK
- 1 Folia for SMP
i see
Somewhat scared that it would cause harm on the long run, but since we are in Beta i have at least more control over what to do with End, Nether and AFK worlds.
Your setup looks much safer to scale up though.
Must say
Are you planning on using Folia on end and afk on the long run?
Actually, I plan to run the End world alone on a separate server because running it linearly helps save disk space. Since the End is less active and simpler, this setup keeps things efficient without needing Folia there.
for the afk world, some plugins I use aren’t compatible with Folia, so I keep that server running on Paper for better stability..
I was thinking the same. However if people make big bases in End that require a lot of resources AND it gets more active, then it might cause headaches. I think the simplest way to go is to have different end worlds.
Fair.
- It would have basically no use unless the players are really far away
you can check out some other forks; some of them support linear.
Also, why does the plugin I’m using, Packetevents, fail to inject when I set network-compression-threshold from 256 to -1?
Never had problem with the injection. Could it be that some other plugin is causing it?
It only happens when I try to disable compression by setting network-compression-threshold to -1.
I’ve heard from others that this might be a bug in Folia causing the injection failure.
I’m trying to reduce my CPU because Netty is using 400–600% CPU for 350–400 players. 🙏
How much do you allocate?
for netty?
Yeah
8
Folia README does say 4 cores for netty for 200-300 players so that doesn't sound too bad
that was 400 players
And?
nothing
You're using more than 4 cores too 😛
😔
Just saying, it sounds like an expected amount of CPU usage
Disabling compression just means you'll run out of bandwidth and your users will suffer
I'm running local LAN for my setup
TCPShield -> Proxy <-Local Network-> Node
I use something similar, had no issues with netty while disabling compression.
What version are you using?
1.21.4-DEV-ver/1.21.4@6a87cc7
¯_(ツ)_/¯
Unless it's something that broke with newer versions and ulkernova is on an old one that doesn't help
😔 😔 😔
Time for you to bust out your IDE and start inspecting source code
Maybe attach a debugger and see where it goes wrong
wish me luck 🙏
We are in 1.21.4 but we use some custom fork of folia
Yeah I think most people who use Folia do/should
Ideally they'd put some effort in to making their changes appropriate for upstream too but I know there are some major infrastructure bits missing for some of that to happen
Folia lacks a looot of events and I see why people used to tell me why it shouldn't be "popularized" in the same way paper/bukkit are
Yeah but you can't just add those events back in general, they're missing for a reason
But if your specific case doesn't run in to the issues with them then...
thx u bro
If I don't have 16 cores, isn't it worth running the folia?
no, you need 16 cores to run it - refer to the faq in pins
you don't need 16 cores to run it, you need 16 cores for it at minimum to actually utilise what folia's giving to you
if you run it with less it might aswell be worse than paper
Only in specific situations (e.g. you want to run a 5-10 player friend server that's extremely heavy on farms and people tend to make bases far from each other)
For the typical usecase (large servers), it gets hard to justify a lower core count compared to the number of regions you can get in a suitable server setup
Hello, I ran into a problem in server.properites, I have a complex difficulty, but when I write a command /difficulty shows that it is peaceful and even if I set a complex command, hostile mobs will not spawn, what should I do?
my server version 1.21.5
You need to run the difficulty command in each world
do you have plugins installed?
yes i run this command in correct world
Yes, but they don't affect the rules of the world.
You set the difficulty using a command for each world - just like on Paper.
Not in server.properties
Hello, I ran into the problem that hostile mobs can't spawn through the summoning egg or even through the command in any way at all version 1.21.5 folia
Have you tested without plugin installed
0 plugins
at first, I also thought that one of the plugins was to blame, but when I installed an empty server, the problem remained
hard
yes
I only have hostile mobs not to spawn, but regular ones to spawn.
Didn't that cause eggs to break due to upstream changes?
I thought that spigot made it so that if you disable hostile mob spawning you just quite simply can't spawn them at all
so I don't seem to have disabled it anywhere and I don't even know where to disable them.
Maybe there really is a line in the configs that is responsible for this?
No idea, too busy to look, but it's likely going to have been something you've set somewhere
But I have a standard configuration, I just didn't touch anything.
Just spun up a fresh test server and spawner eggs work fine for hostile mobs
hi, I have a question. sometimes folia only uses 2 tick threads instead of 12. how to like fix it in the settings?
not enough active regions to start them?
no
it says
[20:06:12] [Server thread/INFO]: [io.papermc.paper.threadedregions.TickRegions] Regionised ticking is enabled with 2 tick threads
This is automatically determined from your amount of cores
Can be manually overriden in the folia config
where
It is written in the Folia readme.md#faq
oh oki
Please be patient with people when asking questions in help channels. Posting a bunch of question marks in succession is neither helpful nor productive (not patient).
ok
meta questions
ahh moment
Sorry, what?
he just sent ??? and u wrote this and i said meta questions
Please be aware that this is a help channel, so random side commentary/conversation is really better suited for #general
Why is my server crash? How to fix.
yo so is it worth replacing paper with folia cuz paper is lagging and i am getting like 15 tps i am running an anachy server on ryzen 5 5600g and 32gb ddr4
Probably not. Sounds like you most likely need to fix your issues or upgrade your hardware. Folia needs more resources than Paper, not less.
If you are lagging provide a spark report in #paper-help
Ryzen 9950x is better on folia than ryzen 7950x right sorry dumb question
both is good
same freq poeer
power
Just slightly good 9950X
if you can't find 9950 go for 7950, if you find 9950 go for it
both are good
For some reason I dont have spark on my server is there a place to redownload it specifically for folia? 1.21.4
paper spark doesn't work on folia
There is a version of the plugin which does on their site or something
https://spark.lucko.me/download
"other platforms"
ty
is this the correct usage for folia: Duel server all in one world theres a hub and arenas 10k away from spawn with 5k block gap between the arenas?
i think it is but just need to double check as there will be alot of players in the spawn arena
but only 2 in each arena
that will work yes.
ok cool ty
Depending on how many people are in the "arenas".
Oh you already said 2 per arena. Duh. Ignore me.
although there may be 2v2s but i doubt there will be many people doing that would that also be fine?
If you have a lot of people in the spawn area you might want to use velocity and have that be a different instance that people get transported from.
But that's dealer's choice, really.
yeah i did think that although the whole idea of having it in the same world would be so you dont get the building terrain screen when being put into a duel e.g: after a game tryning to send a long message but then you get tped to spawn and loose the message you were trying to type
but good idea tho
Hey, can't find the Folia channel so I will ask here, what does this part do? (It's on a client's server)
it configures the threaded regions system
grid exponent is how it deals with the region grid
threads is on the tin
My goal is to make so there are more regions(?)
I don't know if it's a thing
The server is gonna get like more than 500 players
regioning is more based on how players are spread
Yes, no problem when they are spread, but sometimes we get a lot in spawn
That's what makes us crash a bit
reducing the grid exponent can reduce the required distance between players a bit
Then they'll all be in the same region
There is no real avoiding that
You can't have regions overlapping
Btw, any clue on how I could optimize this further? we've already got the best CPU we could get
Ryzen 9 9900X
I mean, in terms of folia it's all about having enough player spread for regions
past then, it's the general tricks optimisation where each region is basically its own mini server
use pstate-amd
optmize ur ghz
That should all setup the right way by default on recent distros
Maybe not on Debian stable until later this year but anything else should be fine
is a Ryzen 9 5900X 12 cores 24 threads good enough to benefit from using folia or should i stick to paper?
It largely depend on what your players are doing and how close they are to each other
Duel server all in one world theres a hub and arenas 10k away from spawn with 5k block gap between the arenas and they would be fighting
Don't quote me on that as you're still in unsupported/below recommended minimums territory, but since there's no chunk gen, it may work out for you
Is there a good library for managing nametags/scoreboard teams with packets? Since Folia doesn't have support for scoreboard?
If you just want a scoreboard to display something, Fastboard works fine on Folia
What's happening here? The Piston just complete disappears
It's not my error just trying to help them. I'll let them know to update
how to custome crystal dame
Huh?
i don't know how to buff crystal dame
Can you provide more details and use ChatGPT to translate your message if English isnt your first language
in my server crystal damage is very low and i want to increase it
Does it deal less damage than vanilla or do you just want to make it higher? There is a difference
Paper by default does not change the damage value unless you have a plugin making those changes
Does anyone have any suggestions for a Folia-Safe World Edit? Or will I have to build my own?
it does less damage
and i don't know which plugin affects it
Start with the following guide
Hey, does anybody know a good PlotSystem for Folia? PlotSquared doesn't seem to support it...
If not, I would try develop one myself,
but wouldn't this lead to problems, because i would need to have multiple worlds?
PlotSquared and FastAsyncWorldEdit both appear to have much of the same contributors, contributors which have given up on supporting folia last year.
But are there any alternatives?
Not that I know of unfortunatley 😦
@faint crown Have you tried SimpleClaimSystem: https://www.spigotmc.org/resources/simpleclaimsystem-✅-1-18-1-21-5-fully-configurable-⚙️-folia-bedrock-supported-⚡.115568/
States that it is Folia compliant
hmm.it doesn't seem to have any feature to generate a plotworld like plotsquared does...
could i implement something like that in folia or would it break, since i need multiple worlds and a custom generator in my plugin for that?
I don't see why it wouldn't work, although I am not an expert on your problem, and I haven't looked into what your use case is.
Folia does not support loading worlds at runtine
Seems like that problem could be worked around if implementing something custom.
so a plotsystem like plotsquared is not doable?
you should be able to work around it by using a datapack to add the world and then overwrite the generator in the bukkit.yml
Interesting... I will take a look! Thank you
Send a spark report?
while giving villagers jobs or just run the command
Just run it
known bug, no way to fix it
all they can do is block themselves with the villager
and then the villager will pick up the job
in some regions they always get a job in other its a 1% and when they get it after 3 minutes they lose it
anything I can do?
I mean, you're running an old/unsupported version of Folia, and you're in offline mode, which we also don't support.
oh ok. Thanks for the help anyway
Sorry.
why does that work 😭
How do I decrease mob spawns?
Reduce the spawn limits in bukkit.yml
thx
folia when 1.21.6
@narrow bough ^
ok thx
Damage from the explosion in the unusually high server but cannot be adjusted
if I run folia in a 6 core server does it perform same as paper or it will perform like paper with less lag or it will perform worse than paper?
That's significantly below the minimum recommended specs. The scheduling adds some overhead, so it might perform worse. And will have far less plugin compatibility.
So if that is your only hardware just stick with Paper
Hi, until now i thought having multiple worlds with Folia isn't possible, but it seems to me i have misunderstood something there...
The Problem is just (un-)loading worlds at runtime, right?
So I could place a world in the serverfolder when the server is shut off and change the bukkit.yml so that it gets loaded when i start the Server. Or am i wrong?
And If so: Would it work to write a CustomWorldGenerator via. plugin and specifiy it in the bukkit.yml?
(please ping on reply)
you also need to create a custom datapack that registers additional worlds and yes you can override the generator using the bukkit.yml
I have never worked with datapacks... What do i need to do there exaktly?
And I sidnt't find something about registering worlds using datapacks...
Ohhh. It's about dimensions... Which is in multiplayer technichally not really different from having multiple worlds?
So i just have to put an Datapack into my main-world which defines another dimension and therefore another world, since it's a multiplayer Server?
essentially yes. "worlds" just predate vanilla dimensions by around 10 years, but its essentially the same thing
Okay, thank you guys!
when folia update 1.21.6?
whenever leaf gets around to it
though I wouldn't expect it to take him too long
-# I had a look at the patch diffs, there aren't that many conflicts
leaf as in spottedleaf the paper dev you idiot
Don't call people idiots here - especially not in help channels.
sorry
Probably better if you apologize to them, not me.
no problem, I got used to it.
im testing stuff on an 8 core 3700x right now, is it possible to get more than 200% through configs or is this the set limit from the cpu?
You can force more through the folia config
If your utilisation is only 8.6% then you probably don't need more lol
Yes
@inner swift
- your log file does not show that error
- You are using a stupildly old version of 1.21.4
...
I see it warning
We don't support offline mode setups
Ok
how is that possible?
which config and what do i need to change
there is a threaded-regions section or something somewhere
also what would it do for me if i increased it?
it would create more threads for ticking regions in parallel?
so it would be a good thing to do?
depends
how so
Because if you overallocate you'll just stall out
Nobody here can give concrete answers because we don't know your setup and all of the variables involved
i cant find anything about this on the docs but im assuming that if i increase the grid exponent it will go to 400%?
-1 means "calculate it"
aha, changed the -1 to 2, still at 200% then changed it to 4, went to 400%
Hello! I would like to know, is there any plan for Folia to eventually be integrated directly into Paper, or not at all? I'm wondering because Folia still seems quite experimental at the moment, and it's not available for direct download (I know it needs to be built manually). I'm really curious about its future development prospects. Wishing you a wonderful day !
no, its intended to stay a separate project.
Folia requires plugins to specifically adapt for it, so integrating it into Paper would mean breaking all existing plugins. It also has different, higher, hardware requirements than just Paper. And its only really beneficial for certain kinds of servers (players being very spread out)
Alright, I didn’t think so. Thank you very much anyway!
Hey, I saw 2 days ago that y'all added support for 1.21.6. I built the server by running:
./gradlew applyAllPatches && ./gradlew build
But when I run /usr/lib/jvm/openjdk21/bin/java -jar ./folia-server/build/libs/folia-server-1.21.6-R0.1-SNAPSHOT.jar I get the following error:
Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException
Did I do something wrong?
Can someone please tell me what Ufolia is
Assuming that you mean Folia (wouldn't be surprised if there's a fork called Ufolia)
@inner swift could you help out would you know why i'm having these weird item drops
Send a spark report?
Second
it took a while i didn't have spark
Well you look like you’re below the recommend system specs for Folia.
But if you’re just testing by yourself for now try without plugins.
Yeah i was trying just for my self since it runs better than paper for me
Everything else worked fine just the drop
is weird
@fair merlin It is a 1.21.6 issue. this has nothing to do with the plugins.
You’re able to reproduce this without any plugins installed?
I keep getting intermittent crashes with 1.21.5. I originally experienced this on 1.21.6 with no plugins, which was why I downgraded. As either a dev or as a server host, what can I do to help fix this?
latest.log by @severe hedge: https://pastes.dev/0jhse8lOu0
Now, my system does not meet the Folia requirements, I am very well aware of that. Right now I'm preparing the server in a test environment before I move it onto a beefier machine because I'd rather not test in prod
Hard to tell from the log but really just looks like an overloaded server.
Yes.
Are you using the vanilla client with no mods installed?
yes
i see the method by which you build folia has changed
how would i build the mojang mapped jar now?
i tried running it the normal way with applypatches first but it fails
i also tried just ./gradlew build and that fails aswell using java21 jdk
No it's still just apply patches then create mojmap bundler jar
hmm, or maybe applyAllPatches?
I remember folia being a bit weird there
is there a way to check how many group chunks are there? or how many chunks are used by a group? If there is also a setting to decide how many chunks fall in a group
chungs are split into regions based upon distance between other regions
you can tweak the grid-exponent but the whole "regions cannot ever touch" is always true
iirc, the tps command in velocity prints out a bunch more info relating to the region system
you mean the tps command in folia?
yes
My main purpose was to lower the number of chunks in a group in order to guarantee better TPS across all the world. I will try to see with TPS command.
then you need player spread, there is no way around that
ah thank you, didn't know that. So the server kinda need to implement a strategy to make players spread across the world
What is the explanation for the grid-exponent?
No idea, there might be one in the commit that added it like, a year or two or three ago, what even is time; but, idk where it would be documented across the scattering of documentation
if it's performing fine then yea, you just have 65 mini servers in a sense
which cpu youre using?
great to hear that
r9 5950x
back to this there can be a case where there is only 1 region? due to players being too close?
yes
thank you now its more clear for me how it works
Hi everyone, who understand in Folia and know Russian language?
We want to keep to English in this server.
Best to just ask your questions and use a translator.
I just have a partially stupid question.
Okay, I'll ask a question. I don't understand these aspects:
- Are the regions divided in the same way as in the first screenshot? Or are they without gaps and adjacent to each other? Or is the middle of the first region aligned with the middle of the coordinate system? The idea that the regions have gaps between them arises from a lack of understanding of the second invariant.
- Help me understand the example of region division. I've indicated what is unclear to me in the second and third screenshots. (17;-5) is not in the region (1;-1).
Regions are never a fixed size
They will merge and split depending on how close players are to one another
But do they still have a square shape, or is it optional?
Or maybe it will always have sides that are a power of two?
Who knows?
best is to make as little assumptions about how regions look like as possible
Why?
because relying on anything means things might break after changes
I'm not predicting how the program will work; I want to understand how the algorithm for dividing the world into regions should work.
well that's described in the docs
Are you kidding? I know, I've been reading the documentation, but I don't understand. Can you just answer the question I asked above?
this question
https://docs.papermc.io/folia/reference/region-logic/#region-section-chunk-shift this answers your first question
and basically also the second one
I'll read it now, thanks.
is dual socket fine for folia?
i have a machine already with dual socket high core or should i get another with an epyc for single socket high core
nevermind~ searched messages and it doesn't seem like a decent idea with NUMA
i have an epyc server on hand
will just use that instead
yee
makes sense
i know the interconnect on this server atleast is pretty slow- hope it'll be fine lol
how does one disable the data fixer upper if its causing log files to be 6 gigs in size
wrong question
could you post (a part) of that log?
sec
my 2013 imac lacks enough ram to open it so i gotta transfer it to my pc
6GB might be too much for most text editors tbh.
Easiest would be just restarting the server so it creates a new one
after like 10 minutes of uptime its already 1.38 gigs
i think its some sort of new exploit being abused
restartserver and basically immediatly stop it?
also for some reason 1.21.6 folia builds velocity cant see it but 1.21.6 clients can well heres the thing it happens only sometimes like its people doing it on purpose and stopping yesterday and prior days 24 hours uptime i restart at midnight daily and then today now its insane spamming to the point of 6 gigabyte log files
sublime text can handle it
head -n 2000 latest.log | less
just did a restart hopefully i can catch it before it gets too big
You could probably just less latest.log and it wouldn't read the whole thing into memory
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
its that spammed over and over
reproduce on folia
ok
but also don't put legacy text in components
the 1.21.6 builds are busted tho i tried them earlier
If you're building it yourself it should be fine.
We don't support forks or offline mode here, though. This seems like a problem with your setup.
i dum
i figured it out
Folia builds are now available through our website: https://papermc.io/downloads/folia
Is it correct to assume that Folia is still considered unstable?
The time is right it seems!
I wouldn't say unstable, moreso, not meant for everyone
I mean it still has glaring holes in API and Vanilla feature support, so I doubt it could be considered stable
It can be stable and missing features lol
Anyway, not an argument for this channel 
I mean, there are some stuff pending an bunch of work on the event system; vanilla feature support is mostly on par with paper outside of some stuff relying on tick sematics, which is just never going to be fixable (but, does not impact what 'stable' means)
if you require perfect vanilla parity, somethimg which completely changes how ticking works is probably not your first port of call; it's also generally just not as burnt in as much other software, it will likely never be a general consumer piece of software
They are stable enough if you have a team of developers to handle any issues that may arise. Network like DonutSMP and 2b2t had been using it since the dawn of time.
fair enough I suppose
And it being on 2t is really a good treatment as you know those anarchy kids would be doing their best to break it 
FYI for anyone running Folia, using CarbonChat with more than maybe 250 players will overwhelm netty and completely annihilate your server until it's removed. Found that out the hard way. Went from barely able to handle 250 people with rubberbanding to 450+ perfectly stable just removing CarbonChat
rubber banding, multi second pings and then mass Timed Out disconnects
ideally would be nice if you profiled it and sent it to them
Hi,
I heard that folia requires 16 cores to work.
is this true or the recommended amount ?
just wondering as it was working on a 3 threaded server for me when testing.
doesn't require that
that is just the expectation of the hardware/expense you'd have to burn to be able to justifyibly use it and some level of "we don't want people running it on potatos and complaining because it performs much worse than paper on their dual core pentium"
Yeah, it'll "run" on 3 threads just for testing. Once you start adding players it's not gonna be happy.
In that case you're better off running Paper.
i will be, its a weird one to profile
took me a few hours of instability to figure it out, will have to test with bots later
Well, yea, cos old xeons generally had a bunch of cores sitting around usually doing nothing on paper, so, being able to flex them if you've got the spread is always nice
What would happen if you use less than 16?
you can get away with less than 16, you're just more likely to get into issues with threads hanging up on eachother when loads get high
👍🏻
I'm on a EPYC 4584PX with vanilla SMP-ish, 10 view dist 3 sim dist with 450 players
1 thread per world rather than multiple regions per world
So basically each world ticks separately?
yes
I mean, regions are regions
but each world can have multiple regions
if your players are too close together, the regions in a world will become a huge uber region
so 9 threads munich have 3 regions per world
Would each region basically tick like a paper server?
Basically.
Would recommend reading the docs and pins in this channel.
Lots of questions answered there.
basically, yes; just there are some overheads which end up being taken out by a big folia server vs running multiple paper instances
where the balance between instances and overheads sit, idk
if you just need combined chat and inv sync across multiple places where you don't need vanilla level continuity it'd prob make more sense to just use paper, save a lot of headache with concurrency issues
but being able to more evenly distribute the resources and not waste anything is nice too
Is Folia still experimental or can it already be used in production?
The status hasn't really changed. It's still missing some stuff. Whether to use it in production is your choice. Some folks do.
It's still not a 1:1 replacement for Paper. It has different uses.
So not everyone will want to run it.
in which thread should manipulating to bossbar be ran ? global region or region ?
There is no global thread.
this one ?
shouldn't it be the player's ?
since you're manipulating the player's state
nvm im dumb
he's talking about the thread that corresponds to the global region schedulder
Sorry, my brain is fried. I was transposing "thread" to "region"
bossbar works really weird, like you add player to the bossbar, not the bossbar to the player
I call it from the player's
it seems to work fine
ok lemme try
kinda messy though cause it's being called from an event, I'm assuming this event just passes off to the player's thread
have you tried with packets?
not really, i am porting a plugin over to folia
not really the choice i can choose since i want it to be maintainable with upstream
folia became stable enough to make builds public?
there are some missing things
but yeah, it should be stable if you know what you're doing

does this only happen with Carbon or is it a problem with chat plugins on Folia generally?
no it seems to just be something wrong with Carbon
I'm using LPC currently without issue, which tbh may use legacy colors or something to function but unsure
carbon may just be a little too fancy for its own good somehow
interesting, less is more ig
yeah i think theyre just doing some insanely complicated nested components or something
the networking was getting bogged down on serialization
which is a little hilarious considering that i'm doing a rewriting pass on every single packet with an itemstack on the server atm for modded content support but /shrug just a design oversight on their part im sure
well, good to know, thanks!
Does Folia crash randomly on its own, or is it caused by plugins? My server sometimes encounters an issue where a chunk at [x,z] stops ticking, but the watchdog doesn't show anything related to plugins
I mean, we can't really tell you, it's your job to look at the stacktraces and see what is generally going on
it could be induced by many plugins, the platform itself seems to be okay for most but is not bug free/smoke tested as much as other platforms
in general it's advisable to do a daily reboot or something but I've had very little long-term stability issues with folia myself
as electronic said it's more likely there's some plugin thats causing regions to break
id check the logs for any exceptions from any plugins prior, and also make sure your on the latest folia available
if you're on like, 1.20 or something months old there were definitely occasional situations where regions could die but newer versions don't have that problem in my experience
oh ive check the whole stacktrace of watchdog error, it didnt show any plugins
im using 1.21.4
1.21.4 covers several builds
But, that thread is locked pending on some other thread
ok thank so much, ill try delete some plugins related to region to see if it's reason
..ive ask chat gpt and hes said its about the performance problems
And this is why we still have humans inside of these channels
yeah i suspect there's some earlier error thats occuring during an unload or save that triggered that
ok to update to Folia .6 from LEAF .6?
could really be anything tho
fwiw I'm built on top of 80ab57d right now and haven't had any regions die, if your building against an older commit id update
We can't comment on forks and the compatability with stuff like vanilla, we simply do not know;
migrating is also generally not a trivial operation due to the nature of plugin support being sparsely different
all our plugins have folia versions
ok ill try new build
iirc based on the bot messages ive seen, is there a chance we'll get the newest folia patched backported to older 1.21 builds? or is folia also just a latest-only targeted software still
No, we as an org generally do not backport stuff outside of major security issues; and folia doesn't really get that due to its more niche nature too
gotcha
bot msg is slightly misleading then imo, unintentionally implies that it might be backported
It's saying that folia as a whole will not be backported to older versions of mc
this one here
i.e. there isn't going to be folia for 1.8.8
yeah but specifying a version there with a < makes it sound like newer than 1.19.4 it might be backported
suppose so
I've just interpreted it as, for whatever reason, "new patches could be backported"
doesn't have to change but if folks badger about it would be worth rewording imo
Heya, I'm having an weird issue where, when you place a block of obsidian and then a crystal on top of it after, the latter only happens with a delay. Ironically, if you go far out, say 200.000 blocks, that issue just magically vanishes - The exact same sometimes happens for ender pearls as well - throwing is slightly delayed, completely vanishes when you go far out.
It doesn't appear to have anything to do with playercounts close to ( 0 | 0 ), as the MSPT in that region is always below 8, and we were able to replicate the issue in different regions with a single player.
Is folia good for SMP?
if you have beefy hardware and lots of players, then yes
and they are spread out. Unlikely on an SMP unless you specifically take that into consideration when creating the server
I have a server with a spawn world (lobby of the smp) that has an AFK area
Its like a DSMP type server
So that is my main concern
that does not sound like something Folia would help with
I found that very interesting
less than 24 hr ago there was a /command saying don't provideo folia downloads. is it that now folia is stable enough?
yes a command changes
idk how hard that is to understand. There is no deeper meaning than that.
like its so quick
I mean, it have to change at the same time. When there is no (in this case unnecessary announcement that says "we will make Folia builds in 1 week to download") it will always be "quick". And such an announcement would leed neccesary to the question "Why not make it now instead in 1 week?".
The command has been there for a long time. Folia hasn't changed in terms of stability / instability. It's still not for everyone and still missing stuff.
I'm not following. We removed the command - which has been there for a long time - because downloads are now available on the website.
Redstone doesn’t tick note blocks dose someone know how to fix I am on 1.21.4 folia
try updating to 1.21.6
a lot changed since 1.21.4
with folia you should always stay on latest
even more important than paper
doing that fixed nothing
Folia is made for server with unique situation such as individual players are thousands of block apart majority of the time and the server network has good hardwares and a dedicated development team to address the issue with plugin compatibilities. A few good example you can look at is DonutSMP and 2b2t.
Exactly. Majority of people are perfectly fine using Paper.
Unless you are rocking 100+ players and ALSO meet the unique situation mentioned above, there is little to no gain switching from Paper to Folia.
can you help me redstone doesn’t tick note blocks dose someone know how to fix I am on 1.21.6 folia
Look at issue tracker and see if there is one like that. Assuming you already tested with no plugins
I am currently in bed so is unable to further looking into your issue. I can still answer simple question like the one from above though 
Send another spark report? Configs might be different
already fixed thanks anyway
What was the issue?
erm.. where can i get lastest .jar of 1.21.4 folia..
On the website, but you really should be running Folia 1.21.6
There's been a lot of changes/updates/improvements in Fola.
oh so i have to keep my server on the lastest ?
For Folia, probably.
But at least 1.21.6 for now.
It's not a 1:1 swap for Paper.
Make sure you read the docs/caveats/requirements/etc
got it, thanks
cant wait for stable folia 
wait what, is folia considered stable now?
I mean, yeah, it just feels like yesterday
It's considered stable enough that for the purposes of anyone who actually should be using it, it's stable
If you're not sure if you need it, then you don't
speaking of that, what is the map size that folia is designed for? 50k? 100k?
congratulations on launching folia on the website🙏‼️
So, there was that Signed Velocity bug that made them upgrade to 1.3.0, the fix works on Paper but does not work on Folia. I have someone actively using it. I have tried and confirmed the same
The primary fix is on the proxy side, not the backend side
hey i am looking forward to creating my first folia plugin, is there some template I could have a look at to get the gist of what to expect and how to get started?
You should ask this in #folia-dev
ah i figured #folia-dev was for development of folia and help was for help with folia development
now im realising help is for help with using folia
I just deleted the plugin, updated my own velocity plugin to use HMAC. Screw other developers (||/s||), making my own solutions from now on 
Hey, do you guys think folia is worth it for me?
For the next SMP I expect around 75 to 100 players, I have good Servers, newest hardware.
I think the plugins shouldn't be a problem because I can switch to ones that are working or code some.
Did you think I should stick with purpur or paper or folia? Please explain your decision
Thanks for your help
Depends on what exactly the server you're talking about is, and, more importantly, player spread
It's an smp so players are spread more I think.
Do you refer to server specs?
Be careful not to overestimate how spread the players are and how willing they are to come close to each other
Yes, server specs
Hmm
I have a dedicated server so I'm free - 16 cores AMD Ryzen 9 9950X 64gb ddr5 ram nvme SSD
What do you think is too less?
The bot image gives you an idea
If any two players are within ~1000 blocks of each other, they will be in the same region. If any two players that were far apart move towards each other and eventually reach less than that distance, they will force a region merge that will not unmerge as easily as they merged
Do you support 1.21.4 in folia?
scroll down to folia there
#bot-spam
Do you happen to have a VoidTeleport plugin compatible with Folia?
Never heard of that plugin
Maybe ask the author or consult their docs if there are any
Or look for alternative plugins that offer the same features
A plugin that will teleport us to the spawn point when we fall into the void
java.lang.UnsupportedOperationException: Configuration mode is not supported in its current state
at net.minecraft.server.network.ServerCommonPacketListenerImpl.onDisconnect(ServerCommonPacketListenerImpl.java:97) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
at net.minecraft.server.network.ServerConfigurationPacketListenerImpl.onDisconnect(ServerConfigurationPacketListenerImpl.java:73) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
at net.minecraft.network.Connection.handleDisconnection(Connection.java:923) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
at io.papermc.paper.threadedregions.RegionizedServer.tickConnections(RegionizedServer.java:376) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:325) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:161) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[folia-1.21.7.jar:1.21.7-DEV-6cc7f5b]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[concurrentutil-0.0.3.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1570) ~[?:?]
anyone getting this on the 1.21.7 branch?
yeah i'd assume it would've been like of the 'toggle experiemental builds' or whatever paper used to have
yk where it turns red
When there's an experimental build there will be, yeah.
But Leaf's still working on it to be ready to build properly.
👍
<@&748618676189528155>
I am thinking about adding a skyblock server to my Minecraft network. But I have a couple questions about folia.
- Is it compatible with all plugins that support Paper?
- Is folia currently stable enough for a public Minecraft server?
- Is it compatible with velocity + legacy forwarding for pre 1.13 support?
Just had my server crash with a weird series of events, anyone seen anything like this before?
On Folia 1.21.4 FYI
- Server stopped letting new players join
- Players start being randomly timed out
- Players stop being able to see block entities
- Autocomplete in the console caused the console to freeze
- Everyone is disconnected
- A message codecache appeas
- The server force quits after disconnecting everyone
There are no exceptions in the console to denote any thread specifically crashing, but here's the thread dump where everything seems suddenly parked.
Is there anything here indicating something like a deadlock caused by the anticheat?
pretty concerning error tbh, the JVM running out of CodeHeap is pretty unusual for a Minecraft server.
You probably have something creating a massive amount of different classes, or very heavily/wrongly using reflection or bytecode manipulation of some sort.
The other issues are likely related, the JVM having to fall back on purely interpretation will be awfully slow, too slow to properly run a server.
Probably best to figure out what causes that. jcmd <PID> Compiler.CodeHeap_Analytics should give you helpful output for that. Probably best to pipe it to some file, cause its a lot lol
I mean, the plugman reload call has me suspicious as to the cause of filling things up
oh thats tiny, I didn't see that. But yeah that could cause that. Especially if you did it multiple times before. Do not use plugman in production, terrible idea.
is there no spark by default? or am I missing something, it's the first time I start up a Folia server
yep but I thought it was bundled with Folia by default, I found the right version tho
hey, can folia be used to have one singular world in multiple regions?
im just extremely curious as to how that works as i saw that kind of integration in donut smp
One world can have multiple regions depending on how spread players are
how would that work? like what would the backend look like?
What do you mean with backend?
wym by in multiple regions
like how they have multiple servers in different continents?
yeah, but all linked to one world
i dont think they do that
lots of work to do in syncing world data
you can ask the man himself, pedro pagini
from what i have researched, they just dont
each region has a different world
they do, its based off of coordinates as well
not sure how to handle edge chunks of the world
or they do flexible regionize like how folia do
no idea honestly, might have a plugin that checks player locations every interval and redirects you to different regions based on it, but I have no idea how they would have all the servers synced to one world
magic
just code it
hello everyone
im having trouble with folia
how do I allocate more ram for the server ?
if you need to ask that then folia is not for you
nvm i did it my bat file wasnt starting for some reason but now it does
can someone come mp to help with the creation of my server with folia ?
Why do you need folia?
i am making a minecraft server with friends on java and the last time i did that we were having bugs, so i try something else and i saw a video saying folia was a good way for no bug
No
If you have a VPS you don't want to use Folia.
Folia will have more bugs than Paper.
Can you link whatever video that was?
can u help me i dont know minecraft world i just want to make a good server without bug
paper is better so ?
For your case, yes
I'm going to ping you in the #paper-help channel
In the future, it's best to get more info on what's going on before redirecting them to other channels.
I need some help, why am i not able to import these?
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>eu.hibermc</groupId>
<artifactId>BetterSell</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>BetterSell</name>
<properties>
<java.version>21</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<repositories>
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dev.folia</groupId>
<artifactId>folia-api</artifactId>
<version>1.21.6-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>ru.spigotmc.destroy.primeseller</groupId> <artifactId>PrimeSeller</artifactId> <version>2.4.7</version> <scope>system</scope>
<systemPath>${project.basedir}/../HiberSell/lib/PrimeSeller-v2.4.7.jar</systemPath>
</dependency>
</dependencies>
</project>```
no need to flood chat
My bad, sorry
that is probably because your IDE is outdated
I use intellij
update
thats why it doesnt work?
That wouldn't cause a class to be unavailable
It should only affect new methods on existing classes, right
I guess try to build without the IDE and see if it's actually broken or if your IDE is
im installing 2025 version to see if that fixes it
does that 2nd import even exist
What import?
Oh are you vibe coding?
Still in the learning phase
Using AI =/= Learning.
I knew nothing about folia tbh
Asked chatgpt why was it not importing and he probably messed something
You can probably just use paper-api, it has almost all of the API from Folia and the things it doesn't have you likely don't need anyway
But it would be the same imports, although those are apparently just wrong
Updating intellij made this get imported
import io.papermc.paper.threadedregions.scheduler.ScheduledTask;
but the other one playerscheduler didnt
because that doesn't exist
AI makes shit up
oh
Especially for niche/new things that it didn't slurp up a lot of data for
(of which folia certainly is)
Oh that's about internals, bleh
Anyway you want the EntityScheduler, RegionScheduler, GlobalRegionScheduler, and/or AsyncScheduler depending on what you're doing
Check out the javadocs for those https://jd.papermc.io/paper/1.21.5/io/papermc/paper/threadedregions/scheduler/package-summary.html
Thank you very much
<@&748618676189528155>
^ Handled
Hey, quick question—why doesn’t Folia use Project Reactor? It’s literally built for multithreading and async tasks. I get that you can’t just drop it in overnight since the server codebase is huge, but still, seems like a good fit long-term?
It’s a little clunky to answer this kind of question. “Why didn’t you” or “why don’t you” doesn’t really have a direct answer. You’re basically asking “why didn’t you rewrite the entire codebase” or “why don’t you do it the way I would do it?”
There’s a million ways to approach these kinds of things. Folia is a fork of Paper, and the further it deviates from Paper the more difficult it becomes to manage.
I’m not Leaf so I can’t speak to his reasons exactly but I would guess that library doesn’t really have the approach he wants to take.
Or it’s more work than it’s worth to integrate.
But at the end of the day, philosophical programming design questions probably aren’t the best topic for this channel.
And probably don’t have clear black and white answers anyway.
Thanks for the explanation--totally fair that there are a ton of ways to approach concurrency and that Folia needs to maintain some compatibility with Paper. I wasn't trying to say "why didn't you rewrite everything," just genuinely curious about the design direction.
Reactor stood out to me since it's purpose-built for async/multithreaded work and has a mature operator model. But i get that adopting something like that means a big architectural shift, and Folia might have different priorities or design goals. Appreciate the insight either way!
How is folia going?
I'd like to get into modding minecraft for servers, and I'm wondering if it's worth learning about paper and how to mod / use it in case Folia succeeds, otherwise I'll stick to Fabric
what do you mean by "succeeds"?
I had looked at folia in the past, maybe 2 years ago when it was still in development
I hadn't realised that it's available for download now
and that 2b2t uses it
which means that it's ready to use in servers
So I guess it already has suceeded
(it's always been available to download, just not shown on the website)
It's been available on the api day 1
I just installed it and am testing it out
btw is there a command to change the render / simulation distance at runtime or do I have to restart the server?
really?
I'm pretty sure I asked around and everyone told me to compile
yes
on purpose
wdym?
Because if you couldn't compile folia then it wasn't for you
No, I DID compile it
and test it
I just said that it didn't have a publicly available jar
And the fact that it didn't means it wasn't ready yet
And I'm saying that there was one available for the public, we just didn't announce that it was available there.
This really isn’t the core of their question, so I’m not sure why you’re going back and forth about this
Fabric mods and Paper/Folia plugins are pretty different.
Fabric and Folia aren’t really the same thing. Folia has pretty specific use cases.
If you’ve read the docs and what we server type you’re making support these use cases then rock on. There’s still stuff missing compared to Paper and you’re likely going to have to do some custom stuff.
Will Folia get world loading support for stuff like multiverse?
Is that planned at all?
It's currently very difficullt/low priority
Also, this topic is broadly discussed (here and in dev) and has some "solutions"/plugins.. when Discord search does not fail again.
This isn’t built in support. So it doesn’t really answer this person’s question.
I had it in my clipboard alr so I just sent lol
Any recommendations for a good skyblock plugin that works with folia?
How much is folia's overhead compared to paper? If everyone had their base in around the same area, how much slower would it be than paper? And even if they do have it in the same place, don't people go out exploring all the time? Wouldn't folia help in those cases?
Let's say the server has an infinite amount of the fastest cores available right now
players very rarely go out exploring several thousands of blocks away from other players
They don't have to be several thousands of blocks away. Don't they just have to be out of simulation distance?
no
Render distance?
much much more
What?
How much?
Why is that the case?
What difference does it make if a player is 1000 blocks away or 10000?
see https://docs.papermc.io/folia/reference/region-logic/ for details, but its around ~900-1500 blocks usually.
The chunk system requires more chunks than those the players actually see
So unless you have players that far spread out, and can ensure they stay that way (e.g. skyblock, very large map), Folia pretty much only has downsides. There are overheads to the region logic, though its hard to give actual numbers here. And you will have to make sure that all your plugins are specifically compatible with it.

