Skip to content

A way to configure lava flow speed using plugins. #1180

Closed Answered by BillyGalbreath
imIwKy asked this question in __Completed__
Discussion options

You must be logged in to vote

You can modify Purpur's config values extremely easily by using Paper's paperweight/userdev. Then it is as simple as doing:

// get the NMS level
ServerLevel level = ((CraftWorld) player.getWorld()).getHandle();
// set the lava speed in nether dimension types
level.purpurConfig.lavaSpeedNether = 5; // default's to 10
// set the lava speed in non-nether dimension types
level.purpurConfig.lavaSpeedNotNether = 10; // defaults to 30

We don't need an entire API for simple niche things like this, imho.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@imIwKy
Comment options

@YouHaveTrouble
Comment options

@imIwKy
Comment options

@imIwKy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by imIwKy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants