All versions
1.0.4
Release
Visiting Villagers 1.0.437 minutes ago 4
Compatibility
Minecraft: Java Edition
26.2
Platform
NeoForge
Supported environments
Client and server
Changes
GENERAL
- Unified release for Fabric, NeoForge, and Forge, with shared logic and the same features across all three loaders.
TRADES
- Replaced Java trade tables with 23 editable JSON files: 15 adult/default variants and 8 wanderer variants, totaling 349 offers.
- Renamed the trade folder from visiting_villagers to visitingvillagers.
- Default JSON files are copied to config/visitingvillagers/trades/ on startup; existing files are never overwritten.
- Config files take precedence over jar files; an error in a file logs a warning and falls back to the bundled JSON for that variant only.
- Trades are loaded on the server using the active world's registries, ItemStack.CODEC, RegistryOps, and Data Component support.
- /visitors reloadtrades (permission level 2) recreates missing defaults, reloads the JSON files, and refreshes offers for loaded visitors that are not currently trading.
- Offers support variant, buys, sells, select, cost, cost_b, result, type, max_uses, xp, and price_multiplier.
- Added cost_b for trades with two cost items; it supports the same formats as cost, but no bundled JSON uses it.
- Items can use id with components, family, or one_of; family supports color/colors or variant/variants, and one_of supports full IDs, including items from other mods.
- family and one_of select one concrete item per offer; they do not act as tags that accept multiple items simultaneously.
- select per pool: omitted/-1 uses the entity default, 0 disables the pool, and positive values limit the number of randomly selected offers without duplicates.
- Offer defaults: max_uses=4, xp=2, and price_multiplier=0.05.
- Added the random_enchanted_book, random_suspicious_stew, random_firework_star, and random_rocket types.
- Standardized XP to the vanilla scale; rewardTradeXp() grants a single orb with offer.getXp().
- Wanderers no longer offer buys; sells selects 7 offers, or 12 for wandering_master, with base XP 5 and special offers granting 10 or 15.
- Rebalanced the catalog from 507 to 349 offers (-31.2%).
- Buys/sells entries after rebalancing: glassworker 4/5, pyrotechnic 5/7, lumberjack 5/5 (select 4/2), relic_scavenger 5/8, and default 5/4.
CONFIGURATION
- Unified configuration in config/visitingvillagers.json, using JSON/Gson, with 10 options and range validation; invalid values reset to their defaults.
- General: spawnCheckIntervalSeconds=10, minVillagersForSpawn=6, and minGolemsForSpawn=1.
- Adults: visitorSpawnPercentage=100, maxSpawnsPerCycle=3, and defaultVisitorTradeChance=40.
- Babies: minAdultsForBaby=2 and babySpawnPercentage=60.
- Wanderers: maxWanderingVisitors=2 and wanderingSpawnDelaySeconds=120.
- Replaced the single screen with a root screen and four slider submenus: General, Adults, Babies, and Wanderers.
- Added ConfigSlider; changes are applied immediately and saved when the screen is closed.
- /visitors reload reloads the configuration without restarting and is available to everyone, including the server console.
- On Forge/NeoForge, the screen opens through the Config button in the mod list; on Fabric, through the optional ModMenu.
INTERFACE
- The creative tab now uses the internal tab_icon item as its icon, with its own texture, model, and translation; the item does not appear in the tab and has no gameplay function.
COMPATIBILITY
- Kept optional VillagerNames + Collective compatibility across all three loaders; everything works normally without these mods.
PORTS
- For 1.20.x and 26.x, use this list as the functional scope and verify APIs, mappings, and item formats in the target version's sources jar.
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:HsBaNslF:seBuKAgA"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:HsBaNslF:seBuKAgA"
}

