Fix tritanium ellipsoid being biased
This commit is contained in:
parent
f451ea4df4
commit
174a86b33c
@ -107,6 +107,11 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
||||
val configured = context.lookup(Registries.CONFIGURED_FEATURE)
|
||||
val econfigured = context.lookup(MRegistries.CONFIGURED_FEATURE)
|
||||
|
||||
val ringularity = OneOfFloatProvider.of(
|
||||
ClampedNormalFloat.of(0.4f, 0.2f, -2f, 2f),
|
||||
ClampedNormalFloat.of(-0.4f, 0.2f, -2f, 2f),
|
||||
)
|
||||
|
||||
run {
|
||||
val ore = configured.getOrThrow(ConfiguredFeatures.TRITANIUM_ORE)
|
||||
|
||||
@ -146,9 +151,9 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
||||
xLength = UniformFloat.of(9f, 12f),
|
||||
yLength = UniformFloat.of(9f, 12f),
|
||||
zLength = UniformFloat.of(9f, 12f),
|
||||
x = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
||||
y = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
||||
z = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
||||
x = ringularity,
|
||||
y = ringularity,
|
||||
z = ringularity,
|
||||
),
|
||||
// "branches"
|
||||
EnhancedChainPlacement(
|
||||
@ -170,9 +175,9 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
||||
xLength = ConstantFloat.of(4f),
|
||||
yLength = ConstantFloat.of(4f),
|
||||
zLength = ConstantFloat.of(4f),
|
||||
x = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
||||
y = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
||||
z = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
||||
x = ringularity,
|
||||
y = ringularity,
|
||||
z = ringularity,
|
||||
)
|
||||
)
|
||||
),
|
||||
@ -186,11 +191,6 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
||||
run {
|
||||
val ore = configured.getOrThrow(ConfiguredFeatures.DILITHIUM)
|
||||
|
||||
val ringularity = OneOfFloatProvider.of(
|
||||
ClampedNormalFloat.of(0.4f, 0.2f, -2f, 2f),
|
||||
ClampedNormalFloat.of(-0.4f, 0.2f, -2f, 2f),
|
||||
)
|
||||
|
||||
context.register(
|
||||
PlacedFeatures.DILITHIUM,
|
||||
EnhancedPlacedFeature.configure(
|
||||
|
Loading…
Reference in New Issue
Block a user