diff --git a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/Iris.java b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/Iris.java
index 6fe846755..65b15b25b 100644
--- a/adapters/bukkit/plugin/src/main/java/art/arcane/iris/Iris.java
+++ b/adapters/bukkit/plugin/src/main/java/art/arcane/iris/Iris.java
@@ -48,6 +48,7 @@ import art.arcane.iris.core.runtime.BukkitEnginePlatformHooks;
import art.arcane.iris.core.runtime.WorldDeletionQueue;
import art.arcane.iris.core.runtime.WorldRuntimeControlService;
import art.arcane.iris.api.terrain.IrisTerrainService;
+import art.arcane.iris.core.link.CustomBlockSource;
import art.arcane.iris.core.link.IrisPapiInstaller;
import art.arcane.iris.core.link.IrisPapiListener;
import art.arcane.iris.core.link.IrisPapiState;
@@ -670,6 +671,7 @@ public class Iris extends VolmitPlugin implements Listener, ReloadAware {
IrisServices.register(serviceType, i);
}
IrisServices.register(BlockEditAccess.class, services.get(EditSVC.class));
+ IrisServices.register(CustomBlockSource.class, services.get(ExternalDataSVC.class));
IrisServices.register(PreservationRegistry.class, services.get(PreservationSVC.class));
compat = IrisCompat.configured(getDataFile("compat.json"));
IrisServices.register(IrisCompat.class, compat);
diff --git a/core/src/main/java/art/arcane/iris/core/link/CustomBlockLook.java b/core/src/main/java/art/arcane/iris/core/link/CustomBlockLook.java
new file mode 100644
index 000000000..a14686fe4
--- /dev/null
+++ b/core/src/main/java/art/arcane/iris/core/link/CustomBlockLook.java
@@ -0,0 +1,29 @@
+/*
+ * Iris is a World Generator for Minecraft Servers
+ * Copyright (c) 2026 Arcane Arts (Volmit Software)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package art.arcane.iris.core.link;
+
+/**
+ * How players see a plugin's block.
+ *
+ * @param id the block's name in its plugin
+ * @param shownAs the vanilla block state sent to players and saved to region files, such as
+ * {@code minecraft:tripwire[attached=true]}, whose model the plugin's resource pack replaces
+ */
+public record CustomBlockLook(Identifier id, String shownAs) {
+}
diff --git a/core/src/main/java/art/arcane/iris/core/link/CustomBlockSource.java b/core/src/main/java/art/arcane/iris/core/link/CustomBlockSource.java
new file mode 100644
index 000000000..2234e3885
--- /dev/null
+++ b/core/src/main/java/art/arcane/iris/core/link/CustomBlockSource.java
@@ -0,0 +1,40 @@
+/*
+ * Iris is a World Generator for Minecraft Servers
+ * Copyright (c) 2026 Arcane Arts (Volmit Software)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package art.arcane.iris.core.link;
+
+import java.nio.file.Path;
+import java.util.List;
+
+/**
+ * What the studio needs to know of the blocks plugins add, without reaching for the server's plugin API.
+ */
+public interface CustomBlockSource {
+ /**
+ * Plugins save their blocks to region files as the vanilla state players see, and keep which block it really is in
+ * files of their own. This is the way back from such a state.
+ *
+ * @return one look for every vanilla state some plugin block is saved as
+ */
+ List blocks();
+
+ /**
+ * @return the resource packs holding the models of the plugins' blocks, those that have one on disk
+ */
+ List resourcePacks();
+}
diff --git a/core/src/main/java/art/arcane/iris/core/link/ExternalDataProvider.java b/core/src/main/java/art/arcane/iris/core/link/ExternalDataProvider.java
index 3717cd3ad..83057b323 100644
--- a/core/src/main/java/art/arcane/iris/core/link/ExternalDataProvider.java
+++ b/core/src/main/java/art/arcane/iris/core/link/ExternalDataProvider.java
@@ -24,10 +24,12 @@ import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
+import java.nio.file.Path;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.MissingResourceException;
+import java.util.Optional;
@Getter
@RequiredArgsConstructor
@@ -133,6 +135,22 @@ public abstract class ExternalDataProvider {
return false;
}
+ /**
+ * @return One look for every vanilla block state the provider's blocks are saved to region files as
+ */
+ @NotNull
+ public List getCustomBlocks() {
+ return List.of();
+ }
+
+ /**
+ * @return The resource pack holding the models of the provider's blocks, or nothing when it has none on disk
+ */
+ @NotNull
+ public Optional getResourcePack() {
+ return Optional.empty();
+ }
+
/**
* Spawns a mob in the specified location using the given engine and entity identifier.
*
diff --git a/core/src/main/java/art/arcane/iris/core/link/data/CraftEngineDataProvider.java b/core/src/main/java/art/arcane/iris/core/link/data/CraftEngineDataProvider.java
index cba5247ee..12a1cec7d 100644
--- a/core/src/main/java/art/arcane/iris/core/link/data/CraftEngineDataProvider.java
+++ b/core/src/main/java/art/arcane/iris/core/link/data/CraftEngineDataProvider.java
@@ -2,6 +2,7 @@ package art.arcane.iris.core.link.data;
import art.arcane.iris.platform.bukkit.BukkitBlockResolution;
+import art.arcane.iris.core.link.CustomBlockLook;
import art.arcane.iris.core.link.ExternalDataProvider;
import art.arcane.iris.core.link.Identifier;
import art.arcane.iris.core.nms.INMS;
@@ -34,8 +35,11 @@ import org.bukkit.event.Listener;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
+import java.nio.file.Files;
+import java.nio.file.Path;
import java.util.Arrays;
import java.util.Collection;
+import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.MissingResourceException;
@@ -45,6 +49,7 @@ import java.util.stream.Stream;
public class CraftEngineDataProvider extends ExternalDataProvider implements Listener {
private static final String PERSISTENT_PROPERTY = "persistent";
+ private static final String GENERATED_RESOURCE_PACK = "generated/resource_pack.zip";
private static final BlockProperty[] FURNITURE_PROPERTIES = new BlockProperty[]{
BlockProperty.ofBoolean("randomYaw", false),
BlockProperty.ofDouble("yaw", 0, 0, 360f, false, true),
@@ -170,6 +175,27 @@ public class CraftEngineDataProvider extends ExternalDataProvider implements Lis
return state != null && state.settings().tags().contains(Key.of(tag.getNamespace(), tag.getKey()));
}
+ // A block's states can look alike, like leaves of every distance, and the first of them stands in for the rest.
+ @Override
+ public @NotNull List getCustomBlocks() {
+ Map looksByShownState = new LinkedHashMap<>();
+ for (BlockDefinition block : CraftEngineBlocks.loadedBlocks().values()) {
+ Identifier id = new Identifier(block.id().namespace(), block.id().value());
+ for (ImmutableBlockState state : block.variantProvider().states()) {
+ String shownAs = state.visualBlockState().getAsString();
+ looksByShownState.putIfAbsent(shownAs, new CustomBlockLook(id, shownAs));
+ }
+ }
+ return List.copyOf(looksByShownState.values());
+ }
+
+ // PackManager#resourcePackPath went away in CraftEngine's later versions, which set this path in their workflows.
+ @Override
+ public @NotNull Optional getResourcePack() {
+ Path pack = getPlugin().getDataFolder().toPath().resolve(GENERATED_RESOURCE_PACK);
+ return Files.isRegularFile(pack) ? Optional.of(pack) : Optional.empty();
+ }
+
private static ImmutableBlockState customStateOf(BlockData data) {
if (data instanceof IrisCustomData) {
return null;
diff --git a/core/src/main/java/art/arcane/iris/core/service/ExternalDataSVC.java b/core/src/main/java/art/arcane/iris/core/service/ExternalDataSVC.java
index 0aaa2f80e..991557eb4 100644
--- a/core/src/main/java/art/arcane/iris/core/service/ExternalDataSVC.java
+++ b/core/src/main/java/art/arcane/iris/core/service/ExternalDataSVC.java
@@ -20,6 +20,8 @@ package art.arcane.iris.core.service;
import art.arcane.iris.spi.IrisLogging;
import art.arcane.iris.platform.bukkit.BukkitPlatform;
+import art.arcane.iris.core.link.CustomBlockLook;
+import art.arcane.iris.core.link.CustomBlockSource;
import art.arcane.iris.core.link.ExternalDataProvider;
import art.arcane.iris.core.link.Identifier;
import art.arcane.iris.core.link.data.DataType;
@@ -41,6 +43,7 @@ import org.bukkit.event.server.PluginEnableEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.Plugin;
+import java.nio.file.Path;
import java.util.Collection;
import java.util.List;
import java.util.MissingResourceException;
@@ -49,7 +52,7 @@ import java.util.Optional;
import java.util.OptionalInt;
import java.util.stream.Collectors;
-public class ExternalDataSVC implements IrisService {
+public class ExternalDataSVC implements IrisService, CustomBlockSource {
private static final String PROVIDER_PACKAGE = "art.arcane.iris.core.link.data.";
private static final List BUILT_IN_PROVIDERS = List.of(
new ProviderDefinition("CraftEngine", PROVIDER_PACKAGE + "CraftEngineDataProvider"),
@@ -134,6 +137,21 @@ public class ExternalDataSVC implements IrisService {
}
}
+ @Override
+ public List blocks() {
+ return activeProviders.stream()
+ .flatMap(provider -> provider.getCustomBlocks().stream())
+ .toList();
+ }
+
+ @Override
+ public List resourcePacks() {
+ return activeProviders.stream()
+ .map(ExternalDataProvider::getResourcePack)
+ .flatMap(Optional::stream)
+ .toList();
+ }
+
public Optional> getBlockProperties(final Identifier key) {
Optional provider = activeProviders.stream().filter(p -> p.isValidProvider(key, DataType.BLOCK)).findFirst();
if (provider.isEmpty())
diff --git a/core/src/main/java/art/arcane/iris/core/studio/assets/MinecraftAssets.java b/core/src/main/java/art/arcane/iris/core/studio/assets/MinecraftAssets.java
index e9e614c8a..51154f3bd 100644
--- a/core/src/main/java/art/arcane/iris/core/studio/assets/MinecraftAssets.java
+++ b/core/src/main/java/art/arcane/iris/core/studio/assets/MinecraftAssets.java
@@ -18,12 +18,15 @@
package art.arcane.iris.core.studio.assets;
+import art.arcane.iris.core.link.CustomBlockSource;
import art.arcane.iris.spi.IrisPlatforms;
+import art.arcane.iris.spi.IrisServices;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
+import java.util.List;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.zip.ZipEntry;
@@ -36,6 +39,7 @@ import java.util.zip.ZipFile;
*/
public final class MinecraftAssets {
private static final String ASSET_FOLDER = "assets/";
+ private static final String MINECRAFT_ASSET_FOLDER = ASSET_FOLDER + "minecraft/";
private static final MinecraftAssets SHARED = new MinecraftAssets();
private CompletableFuture clientJar;
@@ -48,8 +52,9 @@ public final class MinecraftAssets {
}
/**
- * The asset file at {@code path} in the client jar, such as {@code assets/minecraft/textures/block/stone.png};
- * empty when the client has no such file or the path leaves its asset folder.
+ * The asset file at {@code path} in the client jar, such as {@code assets/minecraft/textures/block/stone.png}, or
+ * for another namespace in the resource packs of the server's plugins; empty when there is no such file or the path
+ * leaves the asset folder.
*
* @throws NotReadyException while the client jar is still being fetched, or when fetching it failed; the next call
* after a failure tries again
@@ -58,6 +63,9 @@ public final class MinecraftAssets {
if (!isAssetPath(path)) {
return Optional.empty();
}
+ if (!path.startsWith(MINECRAFT_ASSET_FOLDER)) {
+ return readFromPacks(pluginResourcePacks(), path);
+ }
ZipFile jar = openedJar();
ZipEntry entry = jar.getEntry(path);
if (entry == null || entry.isDirectory()) {
@@ -68,6 +76,25 @@ public final class MinecraftAssets {
}
}
+ private static List pluginResourcePacks() {
+ CustomBlockSource plugins = IrisServices.getOrNull(CustomBlockSource.class);
+ return plugins == null ? List.of() : plugins.resourcePacks();
+ }
+
+ static Optional readFromPacks(List packs, String path) throws IOException {
+ for (Path pack : packs) {
+ try (ZipFile zip = new ZipFile(pack.toFile())) {
+ ZipEntry entry = zip.getEntry(path);
+ if (entry != null && !entry.isDirectory()) {
+ try (InputStream content = zip.getInputStream(entry)) {
+ return Optional.of(content.readAllBytes());
+ }
+ }
+ }
+ }
+ return Optional.empty();
+ }
+
static boolean isAssetPath(String path) {
return path.startsWith(ASSET_FOLDER) && !path.contains("..") && !path.contains("\\") && !path.contains("//");
}
diff --git a/core/src/main/java/art/arcane/iris/core/studio/saved/CustomBlocks.java b/core/src/main/java/art/arcane/iris/core/studio/saved/CustomBlocks.java
new file mode 100644
index 000000000..b0787303f
--- /dev/null
+++ b/core/src/main/java/art/arcane/iris/core/studio/saved/CustomBlocks.java
@@ -0,0 +1,107 @@
+/*
+ * Iris is a World Generator for Minecraft Servers
+ * Copyright (c) 2026 Arcane Arts (Volmit Software)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package art.arcane.iris.core.studio.saved;
+
+import art.arcane.iris.core.link.CustomBlockLook;
+import art.arcane.iris.core.link.CustomBlockSource;
+import art.arcane.iris.spi.IrisServices;
+
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.TreeMap;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+/**
+ * Blocks added by plugins. They are saved as the vanilla block states they borrow, such as a tripwire for grass, so
+ * what a saved block really is has to be looked up from the state it is saved as.
+ */
+final class CustomBlocks {
+ static final CustomBlocks NONE = new CustomBlocks(List.of());
+ private static final char PROPERTIES_START = '[';
+ private static final String PROPERTY_SEPARATOR = ",";
+ private static final String VALUE_SEPARATOR = "=";
+
+ private final Map namesByShownState = new HashMap<>();
+ private final Map shownBlocksByName = new HashMap<>();
+ private final Set shownBlocks = new HashSet<>();
+
+ CustomBlocks(List looks) {
+ for (CustomBlockLook look : looks) {
+ String shownBlock = blockOf(look.shownAs());
+ String name = look.id().toString();
+ namesByShownState.putIfAbsent(keyOf(shownBlock, propertiesOf(look.shownAs())), name);
+ shownBlocksByName.putIfAbsent(name, shownBlock);
+ shownBlocks.add(shownBlock);
+ }
+ }
+
+ /** The plugin blocks the server has now; empty on a platform that has none. */
+ static CustomBlocks platform() {
+ CustomBlockSource source = IrisServices.getOrNull(CustomBlockSource.class);
+ return source == null ? NONE : new CustomBlocks(source.blocks());
+ }
+
+ /**
+ * The name of the plugin block saved as this vanilla state, or the state's own block name when none is.
+ *
+ * @param properties the state's properties, only asked for when a plugin block borrows {@code blockName}
+ */
+ String nameSavedAs(String blockName, Supplier