surprise beta 9 update!
No files matched your search
@@ -141,8 +141,8 @@ public final class AntarchySettings {
|
||||
private static double gravityGunBlastStrength = 1.4D;
|
||||
private static double gravityGunCooldownSeconds = 0.35D;
|
||||
private static double gravityGunMaxHoldDistance = 10.0D;
|
||||
private static double critterCageMaxCapturableWidth = 1.15D;
|
||||
private static double critterCageMaxCapturableHeight = 1.15D;
|
||||
private static double critterCageMaxCapturableWidth = 1.65D;
|
||||
private static double critterCageMaxCapturableHeight = 1.65D;
|
||||
private static boolean minersDreamEnabled = true;
|
||||
private static int minersDreamMinimumRange = 48;
|
||||
private static int minersDreamMaximumRange = 96;
|
||||
|
||||
@@ -67,10 +67,9 @@ public final class CreativeTabOrder {
|
||||
case "dream_torch", "dream_lantern", "dream_campfire", "dream_fire", "dream_fire_ceiling",
|
||||
"lumen_froglight", "roseate_froglight" -> 12;
|
||||
case "antimetal_scaffolding" -> 13;
|
||||
case "infested_rooted_dirt", "infested_coarse_dirt", "bed_bug_egg",
|
||||
"creeping_horror_egg", "lurking_terror_egg" -> 14;
|
||||
case "infested_rooted_dirt", "infested_coarse_dirt", "bed_bug_egg" -> 14;
|
||||
case "ultimate_pickaxe", "ultimate_axe", "ultimate_shovel", "ultimate_hoe",
|
||||
"duct_tape", "diamond_minecart", "gravity_sculk_sensor", "miners_dream" -> 15;
|
||||
"duct_tape", "diamond_minecart", "critter_cage", "gravity_sculk_sensor", "miners_dream" -> 15;
|
||||
case "bile_bucket", "ichor_bucket", "antiwater_bucket", "cloud_bucket", "lumen_bucket" -> 16;
|
||||
case "moggles", "brutalfly_elytra", "fallen_king_crown", "jumpy_boots" -> 17;
|
||||
case "battle_axe", "basilisk_dagger", "squidzooka", "rpo_launcher", "shrink_ray", "growth_ray",
|
||||
@@ -230,16 +229,15 @@ public final class CreativeTabOrder {
|
||||
case "infested_rooted_dirt" -> 0;
|
||||
case "infested_coarse_dirt" -> 1;
|
||||
case "bed_bug_egg" -> 2;
|
||||
case "creeping_horror_egg" -> 3;
|
||||
case "lurking_terror_egg" -> 4;
|
||||
case "ultimate_pickaxe" -> 0;
|
||||
case "ultimate_axe" -> 1;
|
||||
case "ultimate_shovel" -> 2;
|
||||
case "ultimate_hoe" -> 3;
|
||||
case "duct_tape" -> 4;
|
||||
case "diamond_minecart" -> 5;
|
||||
case "gravity_sculk_sensor" -> 6;
|
||||
case "miners_dream" -> 7;
|
||||
case "critter_cage" -> 6;
|
||||
case "gravity_sculk_sensor" -> 7;
|
||||
case "miners_dream" -> 8;
|
||||
case "bile_bucket" -> 0;
|
||||
case "ichor_bucket" -> 1;
|
||||
case "antiwater_bucket" -> 2;
|
||||
|
||||
@@ -15,8 +15,13 @@ import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.StateDefinition;
|
||||
import net.minecraft.world.level.BlockGetter;
|
||||
import net.minecraft.world.phys.shapes.CollisionContext;
|
||||
import net.minecraft.world.phys.shapes.VoxelShape;
|
||||
|
||||
public class CritterCageBlock extends BaseEntityBlock {
|
||||
private static final VoxelShape SHAPE = Block.box(1.0D, 1.0D, 1.0D, 15.0D, 15.0D, 15.0D);
|
||||
|
||||
private final MapCodec<CritterCageBlock> codec;
|
||||
|
||||
public CritterCageBlock(BlockBehaviour.Properties properties) {
|
||||
@@ -34,6 +39,11 @@ public class CritterCageBlock extends BaseEntityBlock {
|
||||
return RenderShape.MODEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected VoxelShape getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) {
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockEntity newBlockEntity(BlockPos pos, BlockState state) {
|
||||
return new CritterCageBlockEntity(pos, state);
|
||||
|
||||
@@ -269,7 +269,7 @@ public class PotentNyxiteBlock extends BaseEntityBlock {
|
||||
BlockPos.MutableBlockPos cursor = pos.relative(direction).mutable();
|
||||
while (true) {
|
||||
FluidState fluidState = level.getFluidState(cursor);
|
||||
if (!fluidState.isSource() || !isAntiwater(fluidState)) {
|
||||
if (!isAntiwater(fluidState)) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@ import net.minecraft.core.registries.BuiltInRegistries;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.Tag;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.network.protocol.Packet;
|
||||
import net.minecraft.network.protocol.game.ClientGamePacketListener;
|
||||
import net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
@@ -18,6 +21,7 @@ import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.item.component.CustomData;
|
||||
import net.minecraft.world.level.Level;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
@@ -53,6 +57,10 @@ public class CritterCageBlockEntity extends BlockEntity {
|
||||
this.dataVersion++;
|
||||
this.clientDisplayEntity = null;
|
||||
this.setChanged();
|
||||
if (this.level != null) {
|
||||
BlockState state = this.getBlockState();
|
||||
this.level.sendBlockUpdated(this.worldPosition, state, state, Block.UPDATE_CLIENTS);
|
||||
}
|
||||
}
|
||||
|
||||
public ItemStack toItemStack() {
|
||||
@@ -150,6 +158,16 @@ public class CritterCageBlockEntity extends BlockEntity {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompoundTag getUpdateTag(HolderLookup.Provider registries) {
|
||||
return this.saveCustomOnly(registries);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Packet<ClientGamePacketListener> getUpdatePacket() {
|
||||
return ClientboundBlockEntityDataPacket.create(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void loadAdditional(CompoundTag tag, HolderLookup.Provider registries) {
|
||||
super.loadAdditional(tag, registries);
|
||||
|
||||
@@ -380,7 +380,7 @@ public class PotentNyxiteBlockEntity extends BlockEntity {
|
||||
FluidState fluidState = level.getFluidState(cursor);
|
||||
BlockState blockState = level.getBlockState(cursor);
|
||||
|
||||
if (fluidState.isSource() && isHypnoticGasFluid(fluidState) && isGeyserPassableBlock(level, cursor)) {
|
||||
if (isHypnoticGasFluid(fluidState) && isGeyserPassableBlock(level, cursor)) {
|
||||
cursor.move(direction);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ public final class SeashellBlockEntity extends RandomizableContainerBlockEntity
|
||||
}
|
||||
|
||||
public boolean hasAnyContents() {
|
||||
this.generateLootIfNeeded(null);
|
||||
return this.items.stream().anyMatch(stack -> !stack.isEmpty());
|
||||
}
|
||||
|
||||
@@ -128,6 +129,9 @@ public final class SeashellBlockEntity extends RandomizableContainerBlockEntity
|
||||
this.redstonePowered = powered;
|
||||
boolean isOpen = this.isEffectivelyOpen();
|
||||
if (wasOpen != isOpen) {
|
||||
if (isOpen) {
|
||||
this.generateLootIfNeeded(null);
|
||||
}
|
||||
this.beginTransition(isOpen);
|
||||
}
|
||||
|
||||
@@ -141,6 +145,7 @@ public final class SeashellBlockEntity extends RandomizableContainerBlockEntity
|
||||
}
|
||||
|
||||
this.manuallyOpened = true;
|
||||
this.generateLootIfNeeded(null);
|
||||
this.beginTransition(true);
|
||||
this.setChangedAndSync();
|
||||
return true;
|
||||
@@ -249,7 +254,9 @@ public final class SeashellBlockEntity extends RandomizableContainerBlockEntity
|
||||
@Override
|
||||
protected void saveAdditional(CompoundTag tag, HolderLookup.Provider registries) {
|
||||
super.saveAdditional(tag, registries);
|
||||
net.minecraft.world.ContainerHelper.saveAllItems(tag, this.items, registries);
|
||||
if (!this.trySaveLootTable(tag)) {
|
||||
net.minecraft.world.ContainerHelper.saveAllItems(tag, this.items, registries);
|
||||
}
|
||||
tag.putBoolean("VisualOpen", this.visualOpen);
|
||||
tag.putBoolean("VisualInitialized", this.initializedVisualState);
|
||||
tag.putBoolean("ManuallyOpened", this.manuallyOpened);
|
||||
@@ -270,7 +277,8 @@ public final class SeashellBlockEntity extends RandomizableContainerBlockEntity
|
||||
@Override
|
||||
protected void loadAdditional(CompoundTag tag, HolderLookup.Provider registries) {
|
||||
super.loadAdditional(tag, registries);
|
||||
if (tag.contains("Items")) {
|
||||
this.items = NonNullList.withSize(this.getContainerSize(), ItemStack.EMPTY);
|
||||
if (!this.tryLoadLootTable(tag) && tag.contains("Items")) {
|
||||
net.minecraft.world.ContainerHelper.loadAllItems(tag, this.items, registries);
|
||||
}
|
||||
this.visualOpen = tag.getBoolean("VisualOpen");
|
||||
@@ -288,6 +296,12 @@ public final class SeashellBlockEntity extends RandomizableContainerBlockEntity
|
||||
}
|
||||
}
|
||||
|
||||
private void generateLootIfNeeded(@Nullable Player player) {
|
||||
if (this.level instanceof ServerLevel) {
|
||||
this.unpackLootTable(player);
|
||||
}
|
||||
}
|
||||
|
||||
private int getFirstEmptySlot() {
|
||||
for (int i = 0; i < this.items.size(); i++) {
|
||||
if (this.items.get(i).isEmpty()) {
|
||||
|
||||
@@ -29,7 +29,7 @@ public class CritterCageRenderer implements BlockEntityRenderer<CritterCageBlock
|
||||
}
|
||||
|
||||
displayEntity.tickCount = (int) (level.getGameTime() & Integer.MAX_VALUE);
|
||||
float scale = 0.72F / Math.max(Math.max(displayEntity.getBbWidth(), displayEntity.getBbHeight()), 0.5F);
|
||||
float scale = 0.36F / Math.max(Math.max(displayEntity.getBbWidth(), displayEntity.getBbHeight()), 0.5F);
|
||||
float rotation = ((level.getGameTime() + partialTick) * 4.0F) % 360.0F;
|
||||
|
||||
poseStack.pushPose();
|
||||
|
||||
@@ -116,6 +116,8 @@ public class BedBugEntity extends Animal implements GeoEntity {
|
||||
}
|
||||
|
||||
return level.getDifficulty() != Difficulty.PEACEFUL
|
||||
&& level.getFluidState(pos).isEmpty()
|
||||
&& level.getFluidState(pos.above()).isEmpty()
|
||||
&& Animal.checkAnimalSpawnRules(entityType, level, spawnReason, pos, random);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ public class DorrieEntity extends Animal implements GeoEntity {
|
||||
private static final EntityDataAccessor<Integer> QUIRK_TICKS =
|
||||
SynchedEntityData.defineId(DorrieEntity.class, EntityDataSerializers.INT);
|
||||
|
||||
private static final int MAX_CHARGE_TICKS = 90;
|
||||
private static final int MAX_CHARGE_TICKS = 22;
|
||||
private static final float WATER_RIDE_SPEED = 0.42F;
|
||||
private static final float LAND_BEACH_SPEED = 0.07F;
|
||||
private static final double ASCEND_SPEED = 0.06D;
|
||||
@@ -365,6 +365,9 @@ public class DorrieEntity extends Animal implements GeoEntity {
|
||||
if (wasInAir && !inAirNow && isLeaping) {
|
||||
isLeaping = false;
|
||||
landAnimTicks = 12;
|
||||
if (this.isInWater()) {
|
||||
this.playSound(SoundEvents.DOLPHIN_SPLASH, 1.0F, 0.8F + this.random.nextFloat() * 0.4F);
|
||||
}
|
||||
}
|
||||
wasInAir = inAirNow;
|
||||
}
|
||||
@@ -398,8 +401,10 @@ public class DorrieEntity extends Animal implements GeoEntity {
|
||||
Vec3 riddenInput = this.getRiddenInput(rider, travelVector);
|
||||
this.setSpeed(this.getRiddenSpeed(rider));
|
||||
|
||||
if (this.isLeaping) {
|
||||
super.travel(travelVector);
|
||||
if (!this.isInWater() && !this.isInLava() && !this.onGround()) {
|
||||
Vec3 mov = this.getDeltaMovement();
|
||||
this.setDeltaMovement(mov.x * 0.91D, mov.y - 0.08D, mov.z * 0.91D);
|
||||
this.move(net.minecraft.world.entity.MoverType.SELF, this.getDeltaMovement());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -428,18 +433,35 @@ public class DorrieEntity extends Animal implements GeoEntity {
|
||||
super.travel(travelVector);
|
||||
}
|
||||
|
||||
public void applyJumpImpulseClient() {
|
||||
float power = this.getJumpCharge() / 100f;
|
||||
if (power > 0.05f) {
|
||||
Vec3 look = this.getLookAngle();
|
||||
Vec3 flatLook = new Vec3(look.x, 0.0D, look.z).normalize();
|
||||
Vec3 current = this.getDeltaMovement();
|
||||
double forwardAdd = 0.15D + power * 0.45D;
|
||||
double vertical = 0.55D + power * 0.80D;
|
||||
this.setDeltaMovement(
|
||||
current.x + flatLook.x * forwardAdd,
|
||||
vertical,
|
||||
current.z + flatLook.z * forwardAdd
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public void releaseJump() {
|
||||
if (!this.level().isClientSide && isCharging) {
|
||||
float power = chargeTicks / (float) MAX_CHARGE_TICKS;
|
||||
if (power > 0.05F) {
|
||||
Vec3 look = this.getLookAngle();
|
||||
Vec3 flatLook = new Vec3(look.x, 0.0D, look.z).normalize();
|
||||
Vec3 current = this.getDeltaMovement();
|
||||
double forwardAdd = 0.18D + power * 0.42D;
|
||||
double vertical = 0.85D + power * 1.35D;
|
||||
double forwardAdd = 0.15D + power * 0.45D;
|
||||
double vertical = 0.55D + power * 0.80D;
|
||||
this.setDeltaMovement(
|
||||
current.x + look.x * forwardAdd,
|
||||
current.y + vertical,
|
||||
current.z + look.z * forwardAdd
|
||||
current.x + flatLook.x * forwardAdd,
|
||||
vertical,
|
||||
current.z + flatLook.z * forwardAdd
|
||||
);
|
||||
this.hasImpulse = true;
|
||||
isLeaping = true;
|
||||
|
||||
@@ -297,6 +297,19 @@ public class NightmareEntity extends Monster implements GeoEntity {
|
||||
public void lavaHurt() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInvulnerableTo(DamageSource source) {
|
||||
return source.is(net.minecraft.world.damagesource.DamageTypes.DROWN) || super.isInvulnerableTo(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeAffected(MobEffectInstance effectInstance) {
|
||||
if (effectInstance.getEffect() == MobEffects.WITHER) {
|
||||
return false;
|
||||
}
|
||||
return super.canBeAffected(effectInstance);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkFallDamage(double y, boolean onGround, net.minecraft.world.level.block.state.BlockState state, BlockPos pos) {
|
||||
}
|
||||
|
||||
@@ -321,6 +321,7 @@ public class BigBerthaItem extends SwordItem implements GeoItem {
|
||||
target.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SLOWDOWN, AntarchySettings.bigBerthaKrakenSlowTicks(), 1));
|
||||
level.sendParticles(ParticleTypes.SPLASH, target.getX(), target.getY(0.7D), target.getZ(), 16, 0.35D, 0.3D, 0.35D, 0.08D);
|
||||
level.sendParticles(ParticleTypes.ELECTRIC_SPARK, target.getX(), target.getY(0.7D), target.getZ(), 10, 0.25D, 0.25D, 0.25D, 0.02D);
|
||||
com.craisinlord.antarchy.content.entity.kraken.TentacleEntity.spawnAt(level, target.position(), attacker);
|
||||
}
|
||||
|
||||
private void cycleMode(Level level, Player player, ItemStack stack) {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.craisinlord.antarchy.content.worldgen.elythia;
|
||||
|
||||
import com.craisinlord.antarchy.content.AntarchyObjects;
|
||||
import com.craisinlord.antarchy.content.AntarchyTags;
|
||||
import com.craisinlord.antarchy.content.block.GiantLilyPadBlock;
|
||||
import com.mojang.serialization.Codec;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.tags.FluidTags;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.world.level.WorldGenLevel;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
@@ -31,7 +31,7 @@ public final class GiantLilyPadPatchFeature extends Feature<NoneFeatureConfigura
|
||||
int z = origin.getZ() + random.nextInt(17) - 8;
|
||||
int surfaceY = level.getHeight(Heightmap.Types.MOTION_BLOCKING_NO_LEAVES, x, z) - 1;
|
||||
BlockPos fluidPos = new BlockPos(x, surfaceY, z);
|
||||
if (!level.getFluidState(fluidPos).is(FluidTags.WATER) || !level.getFluidState(fluidPos).isSource()) {
|
||||
if (!level.getFluidState(fluidPos).is(AntarchyTags.Fluids.GIANT_LILY_PAD_SUPPORTING_FLUIDS) || !level.getFluidState(fluidPos).isSource()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,10 +11,12 @@ import java.util.List;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.Direction;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.server.level.WorldGenRegion;
|
||||
import net.minecraft.tags.BlockTags;
|
||||
import net.minecraft.util.Mth;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.world.level.WorldGenLevel;
|
||||
import net.minecraft.world.level.LevelWriter;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
import net.minecraft.world.level.block.CaveVines;
|
||||
import net.minecraft.world.level.block.LeavesBlock;
|
||||
@@ -1478,6 +1480,16 @@ public class OuranwoodTreeFeature extends Feature<OuranwoodTreeConfiguration> {
|
||||
return state.isFaceSturdy(level, pos, Direction.UP);
|
||||
}
|
||||
|
||||
protected void setBlock(WorldGenLevel level, BlockPos pos, BlockState state) {
|
||||
if (canWriteAt(level, pos)) {
|
||||
setBlock((LevelWriter) level, pos, state);
|
||||
}
|
||||
}
|
||||
|
||||
protected static boolean canWriteAt(WorldGenLevel level, BlockPos pos) {
|
||||
return !(level instanceof WorldGenRegion region) || region.ensureCanWrite(pos);
|
||||
}
|
||||
|
||||
protected static boolean canReplace(WorldGenLevel level, BlockPos pos) {
|
||||
BlockState state = level.getBlockState(pos);
|
||||
return state.isAir() || state.canBeReplaced() || state.getBlock() instanceof LeavesBlock;
|
||||
|
||||
@@ -56,6 +56,7 @@ public final class SeashellFeature extends Feature<NoneFeatureConfiguration> {
|
||||
level.setBlock(shellPos, state, 2);
|
||||
if (level.getBlockEntity(shellPos) instanceof SeashellBlockEntity seashell) {
|
||||
seashell.setLootTable(LOOT_TABLE, random.nextLong());
|
||||
seashell.setChanged();
|
||||
}
|
||||
placedAny = true;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,11 @@ package com.craisinlord.antarchy.content.worldgen.ocean;
|
||||
|
||||
import com.craisinlord.antarchy.content.AntarchyObjects;
|
||||
import com.mojang.serialization.Codec;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.Direction;
|
||||
import net.minecraft.tags.FluidTags;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.world.level.WorldGenLevel;
|
||||
@@ -34,41 +38,81 @@ public final class StarCoralPatchFeature extends Feature<NoneFeatureConfiguratio
|
||||
}
|
||||
|
||||
int radius = 3 + random.nextInt(3);
|
||||
int targetPlacements = 8 + random.nextInt(9);
|
||||
int attempts = targetPlacements * 4;
|
||||
int targetStructures = 3 + random.nextInt(4);
|
||||
int attempts = targetStructures * 4;
|
||||
int placed = 0;
|
||||
|
||||
for (int i = 0; i < attempts && placed < targetPlacements; i++) {
|
||||
for (int i = 0; i < attempts && placed < targetStructures; i++) {
|
||||
int x = origin.getX() + random.nextInt(radius * 2 + 1) - radius;
|
||||
int z = origin.getZ() + random.nextInt(radius * 2 + 1) - radius;
|
||||
int y = level.getHeight(Heightmap.Types.OCEAN_FLOOR_WG, x, z);
|
||||
BlockPos supportPos = new BlockPos(x, y - 1, z);
|
||||
BlockPos placePos = supportPos.above();
|
||||
BlockPos basePos = supportPos.above();
|
||||
|
||||
if (!level.getBlockState(supportPos).isSolid()) {
|
||||
continue;
|
||||
}
|
||||
if (!level.getFluidState(placePos).is(FluidTags.WATER)) {
|
||||
if (!level.getFluidState(basePos).is(FluidTags.WATER)) {
|
||||
continue;
|
||||
}
|
||||
if (!level.getBlockState(placePos).canBeReplaced()) {
|
||||
if (!level.getBlockState(basePos).canBeReplaced()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int roll = random.nextInt(10);
|
||||
BlockState toPlace;
|
||||
if (roll < 5) {
|
||||
toPlace = starCoralBlock.defaultBlockState();
|
||||
} else if (roll < 8) {
|
||||
toPlace = starCoral.defaultBlockState();
|
||||
} else {
|
||||
toPlace = starCoralFan.defaultBlockState();
|
||||
}
|
||||
|
||||
level.setBlock(placePos, toPlace, 2);
|
||||
growCoralStructure(level, random, basePos, starCoralBlock, starCoral, starCoralFan);
|
||||
placed++;
|
||||
}
|
||||
|
||||
return placed > 0;
|
||||
}
|
||||
|
||||
private void growCoralStructure(WorldGenLevel level, RandomSource random, BlockPos basePos, Block solidBlock, Block plantBlock, Block fanBlock) {
|
||||
BlockPos pos = basePos;
|
||||
int trunkHeight = 1 + random.nextInt(3);
|
||||
for (int i = 0; i < trunkHeight; i++) {
|
||||
if (!tryPlaceSolid(level, pos, solidBlock)) {
|
||||
return;
|
||||
}
|
||||
pos = pos.above();
|
||||
}
|
||||
|
||||
List<Direction> directions = new ArrayList<>(List.of(Direction.NORTH, Direction.SOUTH, Direction.EAST, Direction.WEST));
|
||||
Collections.shuffle(directions, new java.util.Random(random.nextLong()));
|
||||
|
||||
int branchCount = Math.min(directions.size(), 2 + random.nextInt(3));
|
||||
for (int b = 0; b < branchCount; b++) {
|
||||
Direction direction = directions.get(b);
|
||||
BlockPos branchPos = pos;
|
||||
int branchLength = 2 + random.nextInt(4);
|
||||
boolean grew = false;
|
||||
for (int step = 0; step < branchLength; step++) {
|
||||
branchPos = branchPos.relative(direction);
|
||||
if (step > 0 && random.nextInt(3) == 0) {
|
||||
branchPos = branchPos.above();
|
||||
}
|
||||
if (!tryPlaceSolid(level, branchPos, solidBlock)) {
|
||||
break;
|
||||
}
|
||||
grew = true;
|
||||
}
|
||||
|
||||
if (grew) {
|
||||
BlockState tip = random.nextBoolean() ? plantBlock.defaultBlockState() : fanBlock.defaultBlockState();
|
||||
tryPlaceState(level, branchPos.above(), tip);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean tryPlaceSolid(WorldGenLevel level, BlockPos pos, Block block) {
|
||||
return tryPlaceState(level, pos, block.defaultBlockState());
|
||||
}
|
||||
|
||||
private boolean tryPlaceState(WorldGenLevel level, BlockPos pos, BlockState state) {
|
||||
if (!level.getFluidState(pos).is(FluidTags.WATER) || !level.getBlockState(pos).canBeReplaced()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
level.setBlock(pos, state, 2);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -185,7 +185,9 @@ public final class BedBugNestFeature extends Feature<NoneFeatureConfiguration> {
|
||||
BlockState headState = level.getBlockState(mutable.above());
|
||||
BlockState floorState = level.getBlockState(mutable.below());
|
||||
if (feetState.canBeReplaced()
|
||||
&& feetState.getFluidState().isEmpty()
|
||||
&& headState.canBeReplaced()
|
||||
&& headState.getFluidState().isEmpty()
|
||||
&& floorState.blocksMotion()
|
||||
&& floorState.isFaceSturdy(level, mutable.below(), Direction.UP)
|
||||
&& floorState.getFluidState().isEmpty()) {
|
||||
@@ -205,6 +207,6 @@ public final class BedBugNestFeature extends Feature<NoneFeatureConfiguration> {
|
||||
}
|
||||
|
||||
private static boolean isOpen(BlockState state) {
|
||||
return state.isAir() || state.canBeReplaced() || !state.blocksMotion();
|
||||
return state.getFluidState().isEmpty() && (state.isAir() || state.canBeReplaced() || !state.blocksMotion());
|
||||
}
|
||||
}
|
||||
@@ -72,7 +72,9 @@ public final class BedBugSurfaceClusterFeature extends Feature<NoneFeatureConfig
|
||||
&& floorState.blocksMotion()
|
||||
&& floorState.isFaceSturdy(level, mutable, Direction.UP)
|
||||
&& airState.canBeReplaced()
|
||||
&& aboveAirState.canBeReplaced()) {
|
||||
&& airState.getFluidState().isEmpty()
|
||||
&& aboveAirState.canBeReplaced()
|
||||
&& aboveAirState.getFluidState().isEmpty()) {
|
||||
return mutable.immutable();
|
||||
}
|
||||
}
|
||||
@@ -87,7 +89,8 @@ public final class BedBugSurfaceClusterFeature extends Feature<NoneFeatureConfig
|
||||
|
||||
for (int i = 0; i < spotCount; i++) {
|
||||
BlockPos eggPos = originEggPos.offset(random.nextInt(3) - 1, 0, random.nextInt(3) - 1);
|
||||
if (!level.getBlockState(eggPos).canBeReplaced()) {
|
||||
BlockState eggPosState = level.getBlockState(eggPos);
|
||||
if (!eggPosState.canBeReplaced() || !eggPosState.getFluidState().isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -176,7 +179,9 @@ public final class BedBugSurfaceClusterFeature extends Feature<NoneFeatureConfig
|
||||
BlockState headState = level.getBlockState(headPos);
|
||||
BlockState floorState = level.getBlockState(floorPos);
|
||||
if (!feetState.canBeReplaced()
|
||||
|| !feetState.getFluidState().isEmpty()
|
||||
|| !headState.canBeReplaced()
|
||||
|| !headState.getFluidState().isEmpty()
|
||||
|| !floorState.blocksMotion()
|
||||
|| !floorState.isFaceSturdy(level, floorPos, Direction.UP)
|
||||
|| !floorState.getFluidState().isEmpty()) {
|
||||
|
||||
@@ -24,7 +24,20 @@ public final class AntarchyMixinPlugin implements IMixinConfigPlugin {
|
||||
@Override
|
||||
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
|
||||
String resourcePath = targetClassName.replace('.', '/') + ".class";
|
||||
return this.getClass().getClassLoader().getResource(resourcePath) != null;
|
||||
if (this.getClass().getClassLoader().getResource(resourcePath) == null) {
|
||||
return false;
|
||||
}
|
||||
if (mixinClassName.endsWith(".VillagerTradesMixin") && isNeoForge()) {
|
||||
// NeoForge fires VillagerTradesEvent/WandererTradesEvent after registries are fully
|
||||
// populated, mods loaded early via Sinytra can force to class-load before Antarchy's own
|
||||
// registration. Registering these trades through the NeoForge events instead stops this
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean isNeoForge() {
|
||||
return this.getClass().getClassLoader().getResource("net/neoforged/neoforge/common/NeoForge.class") != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -31,6 +31,7 @@ public class KrakensGraspChargePoseMixin {
|
||||
PoseStack poseStack, MultiBufferSource buffer, int light, CallbackInfo ci) {
|
||||
if (isChargingKrakensGraspWithArm(entity, arm)) {
|
||||
poseStack.mulPose(Axis.XP.rotationDegrees(162.0F));
|
||||
poseStack.translate(0.0D, -1.0D, 0.0D);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ public abstract class MountedVehicleCameraMixin {
|
||||
return;
|
||||
}
|
||||
|
||||
if (vehicle instanceof DorrieEntity) {
|
||||
args.set(0, (Float) args.get(0) * 0.25F);
|
||||
args.set(1, (Float) args.get(1) + 0.1F);
|
||||
args.set(2, (Float) args.get(2) + 0.55F);
|
||||
}
|
||||
// if (vehicle instanceof DorrieEntity) {
|
||||
// args.set(0, (Float) args.get(0) * 0.25F);
|
||||
// args.set(1, (Float) args.get(1) + 0.1F);
|
||||
// args.set(2, (Float) args.get(2) + 0.55F);
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "antarchy:block/potted_lotus"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "antarchy:block/potted_ouranwood_acorn"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "antarchy:block/potted_peach_sapling"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "antarchy:block/potted_spider_lily"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,8 +7,8 @@
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [1, 0, 1],
|
||||
"to": [15, 16, 15],
|
||||
"from": [1, 1, 1],
|
||||
"to": [15, 15, 15],
|
||||
"faces": {
|
||||
"down": { "texture": "#cage", "cullface": "down" },
|
||||
"up": { "texture": "#cage", "cullface": "up" },
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/flower_pot_cross",
|
||||
"textures": {
|
||||
"plant": "antarchy:block/lotus"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/flower_pot_cross",
|
||||
"textures": {
|
||||
"plant": "antarchy:block/ouranwood/ouranwood_sapling_2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/flower_pot_cross",
|
||||
"textures": {
|
||||
"plant": "antarchy:block/peach/peach_sapling"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"ambientocclusion": false,
|
||||
"textures": {
|
||||
"particle": "minecraft:block/flower_pot",
|
||||
"flowerpot": "minecraft:block/flower_pot",
|
||||
"dirt": "minecraft:block/dirt",
|
||||
"stem": "antarchy:block/spider_lily_stem",
|
||||
"flower": "antarchy:block/spider_lily_top"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [5, 0, 5],
|
||||
"to": [6, 6, 11],
|
||||
"faces": {
|
||||
"down": { "uv": [5, 5, 6, 11], "texture": "#flowerpot", "cullface": "down" },
|
||||
"up": { "uv": [5, 5, 6, 11], "texture": "#flowerpot" },
|
||||
"north": { "uv": [10, 10, 11, 16], "texture": "#flowerpot" },
|
||||
"south": { "uv": [5, 10, 6, 16], "texture": "#flowerpot" },
|
||||
"west": { "uv": [5, 10, 11, 16], "texture": "#flowerpot" },
|
||||
"east": { "uv": [5, 10, 11, 16], "texture": "#flowerpot" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [10, 0, 5],
|
||||
"to": [11, 6, 11],
|
||||
"faces": {
|
||||
"down": { "uv": [10, 5, 11, 11], "texture": "#flowerpot", "cullface": "down" },
|
||||
"up": { "uv": [10, 5, 11, 11], "texture": "#flowerpot" },
|
||||
"north": { "uv": [5, 10, 6, 16], "texture": "#flowerpot" },
|
||||
"south": { "uv": [10, 10, 11, 16], "texture": "#flowerpot" },
|
||||
"west": { "uv": [5, 10, 11, 16], "texture": "#flowerpot" },
|
||||
"east": { "uv": [5, 10, 11, 16], "texture": "#flowerpot" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [6, 0, 5],
|
||||
"to": [10, 6, 6],
|
||||
"faces": {
|
||||
"down": { "uv": [6, 10, 10, 11], "texture": "#flowerpot", "cullface": "down" },
|
||||
"up": { "uv": [6, 5, 10, 6], "texture": "#flowerpot" },
|
||||
"north": { "uv": [6, 10, 10, 16], "texture": "#flowerpot" },
|
||||
"south": { "uv": [6, 10, 10, 16], "texture": "#flowerpot" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [6, 0, 10],
|
||||
"to": [10, 6, 11],
|
||||
"faces": {
|
||||
"down": { "uv": [6, 5, 10, 6], "texture": "#flowerpot", "cullface": "down" },
|
||||
"up": { "uv": [6, 10, 10, 11], "texture": "#flowerpot" },
|
||||
"north": { "uv": [6, 10, 10, 16], "texture": "#flowerpot" },
|
||||
"south": { "uv": [6, 10, 10, 16], "texture": "#flowerpot" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [6, 0, 6],
|
||||
"to": [10, 4, 10],
|
||||
"faces": {
|
||||
"down": { "uv": [6, 12, 10, 16], "texture": "#flowerpot", "cullface": "down" },
|
||||
"up": { "uv": [6, 6, 10, 10], "texture": "#dirt" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2.6, 4, 8],
|
||||
"to": [13.4, 16, 8],
|
||||
"rotation": { "origin": [8, 8, 8], "axis": "y", "angle": 45, "rescale": true },
|
||||
"shade": false,
|
||||
"faces": {
|
||||
"north": { "uv": [0, 0, 16, 16], "texture": "#stem", "tintindex": 0 },
|
||||
"south": { "uv": [0, 0, 16, 16], "texture": "#stem", "tintindex": 0 }
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [8, 4, 2.6],
|
||||
"to": [8, 16, 13.4],
|
||||
"rotation": { "origin": [8, 8, 8], "axis": "y", "angle": 45, "rescale": true },
|
||||
"shade": false,
|
||||
"faces": {
|
||||
"west": { "uv": [0, 0, 16, 16], "texture": "#stem", "tintindex": 0 },
|
||||
"east": { "uv": [0, 0, 16, 16], "texture": "#stem", "tintindex": 0 }
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2.6, 4, 8],
|
||||
"to": [13.4, 16, 8],
|
||||
"rotation": { "origin": [8, 8, 8], "axis": "y", "angle": 45, "rescale": true },
|
||||
"shade": false,
|
||||
"faces": {
|
||||
"north": { "uv": [0, 0, 16, 16], "texture": "#flower" },
|
||||
"south": { "uv": [0, 0, 16, 16], "texture": "#flower" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [8, 4, 2.6],
|
||||
"to": [8, 16, 13.4],
|
||||
"rotation": { "origin": [8, 8, 8], "axis": "y", "angle": 45, "rescale": true },
|
||||
"shade": false,
|
||||
"faces": {
|
||||
"west": { "uv": [0, 0, 16, 16], "texture": "#flower" },
|
||||
"east": { "uv": [0, 0, 16, 16], "texture": "#flower" }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 525 B |
|
Before Width: | Height: | Size: 432 B After Width: | Height: | Size: 423 B |
|
Before Width: | Height: | Size: 465 B After Width: | Height: | Size: 464 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 385 B |
|
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 469 B |
|
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 424 B |
|
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 457 B |
|
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 310 B |
|
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 374 B |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:flower_pot"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "antarchy:lotus"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"random_sequence": "antarchy:blocks/potted_lotus"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:flower_pot"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "antarchy:ouranwood_acorn"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"random_sequence": "antarchy:blocks/potted_ouranwood_acorn"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:flower_pot"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "antarchy:peach_sapling"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"random_sequence": "antarchy:blocks/potted_peach_sapling"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:flower_pot"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "antarchy:spider_lily"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"random_sequence": "antarchy:blocks/potted_spider_lily"
|
||||
}
|
||||
@@ -4,19 +4,125 @@
|
||||
{
|
||||
"rolls": {
|
||||
"type": "minecraft:uniform",
|
||||
"min": 2,
|
||||
"max": 5
|
||||
"min": 1,
|
||||
"max": 3
|
||||
},
|
||||
"entries": [
|
||||
{ "type": "minecraft:item", "name": "minecraft:nautilus_shell", "weight": 8 },
|
||||
{ "type": "minecraft:item", "name": "minecraft:prismarine_shard", "weight": 10 },
|
||||
{ "type": "minecraft:item", "name": "minecraft:prismarine_crystals", "weight": 8 },
|
||||
{ "type": "minecraft:item", "name": "minecraft:kelp", "weight": 12 },
|
||||
{ "type": "minecraft:item", "name": "minecraft:seagrass", "weight": 10 },
|
||||
{ "type": "minecraft:item", "name": "minecraft:tropical_fish", "weight": 4 },
|
||||
{ "type": "minecraft:item", "name": "minecraft:bone_meal", "weight": 8 },
|
||||
{ "type": "minecraft:item", "name": "antarchy:star_coral", "weight": 3 },
|
||||
{ "type": "minecraft:item", "name": "antarchy:giant_lily_pad", "weight": 1 }
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:lapis_lazuli",
|
||||
"weight": 14,
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min": 2,
|
||||
"max": 6
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:redstone",
|
||||
"weight": 14,
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min": 2,
|
||||
"max": 6
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:quartz",
|
||||
"weight": 14,
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min": 2,
|
||||
"max": 5
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:raw_iron",
|
||||
"weight": 7,
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min": 1,
|
||||
"max": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:raw_gold",
|
||||
"weight": 7,
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min": 1,
|
||||
"max": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "antarchy:uranium_nugget",
|
||||
"weight": 2,
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min": 1,
|
||||
"max": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "antarchy:titanium_nugget",
|
||||
"weight": 2,
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min": 1,
|
||||
"max": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:heart_of_the_sea",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:diamond",
|
||||
"weight": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"pattern": [
|
||||
"ISI",
|
||||
"SLS",
|
||||
@@ -17,7 +18,7 @@
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "antarchy:critter_cage",
|
||||
"id": "antarchy:critter_cage",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:warm_ocean"
|
||||
]
|
||||
}
|
||||
@@ -1,14 +1,6 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"#minecraft:is_ocean",
|
||||
{
|
||||
"id": "#neoforge:is_ocean",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"id": "#c:ocean",
|
||||
"required": false
|
||||
}
|
||||
"antarchy:elythia_ocean"
|
||||
]
|
||||
}
|
||||
@@ -72,8 +72,8 @@
|
||||
{
|
||||
"type": "antarchy:caterpillar",
|
||||
"weight": 30,
|
||||
"minCount": 6,
|
||||
"maxCount": 12
|
||||
"minCount": 1,
|
||||
"maxCount": 3
|
||||
},
|
||||
{
|
||||
"type": "antarchy:golden_apple_cow",
|
||||
@@ -92,8 +92,8 @@
|
||||
{
|
||||
"type": "antarchy:butterfly",
|
||||
"weight": 180,
|
||||
"minCount": 4,
|
||||
"maxCount": 12
|
||||
"minCount": 2,
|
||||
"maxCount": 5
|
||||
}
|
||||
],
|
||||
"axolotls": [],
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
"antarchy:elythia_brown_ant_nests",
|
||||
"antarchy:elythia_rainbow_ant_nests",
|
||||
"minecraft:patch_sugar_cane",
|
||||
"antarchy:giant_lily_pad_patch_common"
|
||||
"antarchy:giant_lily_pad_patch_meadow"
|
||||
],
|
||||
[]
|
||||
],
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
[
|
||||
"minecraft:sea_pickle",
|
||||
"minecraft:warm_ocean_vegetation",
|
||||
"antarchy:star_coral_patch",
|
||||
"minecraft:kelp_warm",
|
||||
"antarchy:giant_lily_pad_patch_common"
|
||||
],
|
||||
|
||||
@@ -27,7 +27,8 @@
|
||||
[
|
||||
"antarchy:lumen_pools",
|
||||
"antarchy:lumen_streams",
|
||||
"antarchy:lumen_lily_pads"
|
||||
"antarchy:lumen_lily_pads",
|
||||
"antarchy:giant_lily_pad_patch_common"
|
||||
],
|
||||
[],
|
||||
[],
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"type": "minecraft:random_patch",
|
||||
"config": {
|
||||
"tries": 6,
|
||||
"xz_spread": 3,
|
||||
"y_spread": 1,
|
||||
"feature": "antarchy:cornea_stalk_single"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"type": "minecraft:random_patch",
|
||||
"config": {
|
||||
"tries": 6,
|
||||
"xz_spread": 3,
|
||||
"y_spread": 1,
|
||||
"feature": "antarchy:patch_ceiling_cornea_stalk_single"
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"feature": "antarchy:cornea_stalk_patch",
|
||||
"feature": "antarchy:cornea_stalk_cluster",
|
||||
"placement": [
|
||||
{
|
||||
"type": "minecraft:count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min_inclusive": 7,
|
||||
"max_inclusive": 15
|
||||
"min_inclusive": 3,
|
||||
"max_inclusive": 6
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -26,32 +26,6 @@
|
||||
},
|
||||
{
|
||||
"type": "minecraft:biome"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:random_offset",
|
||||
"xz_spread": 2,
|
||||
"y_spread": 1
|
||||
},
|
||||
{
|
||||
"type": "minecraft:block_predicate_filter",
|
||||
"predicate": {
|
||||
"type": "minecraft:all_of",
|
||||
"predicates": [
|
||||
{
|
||||
"type": "minecraft:matching_blocks",
|
||||
"blocks": "minecraft:air"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:matching_block_tag",
|
||||
"tag": "antarchy:cornea_stalk_plantable",
|
||||
"offset": [
|
||||
0,
|
||||
-1,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"feature": "antarchy:cornea_stalk_patch",
|
||||
"placement": [
|
||||
{
|
||||
"type": "minecraft:block_predicate_filter",
|
||||
"predicate": {
|
||||
"type": "minecraft:all_of",
|
||||
"predicates": [
|
||||
{
|
||||
"type": "minecraft:matching_blocks",
|
||||
"blocks": "minecraft:air"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:matching_block_tag",
|
||||
"tag": "antarchy:cornea_stalk_plantable",
|
||||
"offset": [
|
||||
0,
|
||||
-1,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"feature": "antarchy:giant_lily_pad_patch",
|
||||
"placement": [
|
||||
{ "type": "minecraft:rarity_filter", "chance": 8 },
|
||||
{ "type": "minecraft:in_square" },
|
||||
{ "type": "minecraft:heightmap", "heightmap": "MOTION_BLOCKING_NO_LEAVES" },
|
||||
{ "type": "minecraft:biome" }
|
||||
]
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"feature": "antarchy:patch_ceiling_cornea_stalk",
|
||||
"feature": "antarchy:patch_ceiling_cornea_stalk_cluster",
|
||||
"placement": [
|
||||
{
|
||||
"type": "minecraft:count",
|
||||
"count": {
|
||||
"type": "minecraft:uniform",
|
||||
"min_inclusive": 7,
|
||||
"max_inclusive": 15
|
||||
"min_inclusive": 3,
|
||||
"max_inclusive": 6
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -26,32 +26,6 @@
|
||||
},
|
||||
{
|
||||
"type": "minecraft:biome"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:random_offset",
|
||||
"xz_spread": 2,
|
||||
"y_spread": 1
|
||||
},
|
||||
{
|
||||
"type": "minecraft:block_predicate_filter",
|
||||
"predicate": {
|
||||
"type": "minecraft:all_of",
|
||||
"predicates": [
|
||||
{
|
||||
"type": "minecraft:matching_blocks",
|
||||
"blocks": "minecraft:air"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:matching_block_tag",
|
||||
"tag": "antarchy:cornea_stalk_plantable",
|
||||
"offset": [
|
||||
0,
|
||||
1,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"feature": "antarchy:patch_ceiling_cornea_stalk",
|
||||
"placement": [
|
||||
{
|
||||
"type": "minecraft:block_predicate_filter",
|
||||
"predicate": {
|
||||
"type": "minecraft:all_of",
|
||||
"predicates": [
|
||||
{
|
||||
"type": "minecraft:matching_blocks",
|
||||
"blocks": "minecraft:air"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:matching_block_tag",
|
||||
"tag": "antarchy:cornea_stalk_plantable",
|
||||
"offset": [
|
||||
0,
|
||||
1,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"feature": "antarchy:seashell_patch",
|
||||
"placement": [
|
||||
{
|
||||
"type": "minecraft:rarity_filter",
|
||||
"chance": 100
|
||||
},
|
||||
{
|
||||
"type": "minecraft:in_square"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:heightmap",
|
||||
"heightmap": "OCEAN_FLOOR_WG"
|
||||
},
|
||||
{
|
||||
"type": "minecraft:biome"
|
||||
}
|
||||
]
|
||||
}
|
||||