Skip to content

Commit

Permalink
🐛 Spring feature uses fluid state instead of block state
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 10, 2024
1 parent 51a3446 commit 5b3c4f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/data/worldgen/feature/mod.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use super::IntProvider
use super::FloatProvider
use super::CaveSurface
use ::java::server::util::block_state::BlockState
use ::java::server::util::fluid_state::FluidState
use ::java::server::util::direction::Direction

type ConfiguredFeatureRef = (
Expand Down Expand Up @@ -482,7 +483,7 @@ dispatch minecraft:feature_config[small_dripstone] to struct SmallDripstoneConfi
}

dispatch minecraft:feature_config[spring_feature] to struct SpringConfig {
state: BlockState,
state: FluidState,
rock_count: int,
hole_count: int,
requires_block_below: boolean,
Expand Down
8 changes: 8 additions & 0 deletions java/server/util/fluid_state.mcdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
struct FluidState {
Name: #[id="fluid"] string,
Properties?: mcdoc:fluid_states[[Name]],
}

dispatch mcdoc:fluid_states[%unknown,%none] to struct {
[string]: string,
}

0 comments on commit 5b3c4f6

Please sign in to comment.