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 configured = context.lookup(Registries.CONFIGURED_FEATURE)
|
||||||
val econfigured = context.lookup(MRegistries.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 {
|
run {
|
||||||
val ore = configured.getOrThrow(ConfiguredFeatures.TRITANIUM_ORE)
|
val ore = configured.getOrThrow(ConfiguredFeatures.TRITANIUM_ORE)
|
||||||
|
|
||||||
@ -146,9 +151,9 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
|||||||
xLength = UniformFloat.of(9f, 12f),
|
xLength = UniformFloat.of(9f, 12f),
|
||||||
yLength = UniformFloat.of(9f, 12f),
|
yLength = UniformFloat.of(9f, 12f),
|
||||||
zLength = UniformFloat.of(9f, 12f),
|
zLength = UniformFloat.of(9f, 12f),
|
||||||
x = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
x = ringularity,
|
||||||
y = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
y = ringularity,
|
||||||
z = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
z = ringularity,
|
||||||
),
|
),
|
||||||
// "branches"
|
// "branches"
|
||||||
EnhancedChainPlacement(
|
EnhancedChainPlacement(
|
||||||
@ -170,9 +175,9 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
|||||||
xLength = ConstantFloat.of(4f),
|
xLength = ConstantFloat.of(4f),
|
||||||
yLength = ConstantFloat.of(4f),
|
yLength = ConstantFloat.of(4f),
|
||||||
zLength = ConstantFloat.of(4f),
|
zLength = ConstantFloat.of(4f),
|
||||||
x = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
x = ringularity,
|
||||||
y = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
y = ringularity,
|
||||||
z = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
z = ringularity,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -186,11 +191,6 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
|||||||
run {
|
run {
|
||||||
val ore = configured.getOrThrow(ConfiguredFeatures.DILITHIUM)
|
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(
|
context.register(
|
||||||
PlacedFeatures.DILITHIUM,
|
PlacedFeatures.DILITHIUM,
|
||||||
EnhancedPlacedFeature.configure(
|
EnhancedPlacedFeature.configure(
|
||||||
|
Loading…
Reference in New Issue
Block a user