Links
Tags
Creators
Details
1.0.0
Compatibility
Required content
Changes
MOD TESTED ONLY ON 1.21.7
I'd appreciate it if you report any bugs on my GitHub
Shadow Items Mod is a mod that adds (or more accurately, restores) shadow items to the game, which became unobtainable after 1.21.1.
Shadow items are items that can exist in two places at once (for example, in two different players' inventories). This isn't a duplication, as there's only one stack (changing one stack immediately triggers an update to the other shadow item).
You can "link" items by trying to move an item to the vortex labeled "Linked." This will visually create two items, but in reality, they'll be shadow items, so everything is fine.
There are several ways to remove a tag from an item (i.e., unlink a specific item): simply take half a stack from the slot, drop it from a dispenser, place the item in a hopper labeled "UnLinked," or drop the item yourself.
The mod has an internal registry that ensures item synchronization across all inventories. (It scans not only player inventories, but also any entity inventory, including entity blocks. BUT the mod does not scan entity items. If you somehow drop a shadow item, it will not sync with other items.) This registry records all slots with shadow items and, depending on the internal ID, correctly links the items (technically, it replaces references to Java objects).
Shadow items are extremely stable. They can withstand a server restart or a simple chunk upload. The only weakness of my mod is nested containers. If you take a shulker with a shadow item, the shadow item will be unlinked, but as soon as you place the shulker on the ground, the link will be restored.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:dIHkZyD6:KUJd8zjU"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:dIHkZyD6:KUJd8zjU"
}

