|
@@ -3,6 +3,7 @@ package xyz.tbvns.rogue_block.Managers;
|
|
|
import com.mojang.datafixers.util.Either;
|
|
|
import net.fabricmc.fabric.api.util.TriState;
|
|
|
import net.minecraft.block.Blocks;
|
|
|
+import net.minecraft.entity.Entity;
|
|
|
import net.minecraft.network.packet.s2c.play.PositionFlag;
|
|
|
import net.minecraft.registry.RegistryEntryLookup;
|
|
|
import net.minecraft.registry.RegistryKeys;
|
|
@@ -68,6 +69,10 @@ public class WorldManager {
|
|
|
world.setMobSpawnOptions(false);
|
|
|
world.setBlockState(BlockPos.ORIGIN, Blocks.ACACIA_BUTTON.getDefaultState());
|
|
|
|
|
|
+ for (Entity entity : world.iterateEntities()) {
|
|
|
+ entity.teleport(world, 0, -999, 0, PositionFlag.VALUES, 0, 0, true);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public static void createNewRunWorld(MinecraftServer server) {
|