
Sprinkler
Sprinkler — A simple NeoForge 1.21.1 mod adding a sprinkler block. When filled with water, it automatically irrigates surrounding farmland and accelerates crop growth. Its nozzle rotates when containing water and stays static when empty. Author: NineFall
1.0.0
Compatibility
Changes
Fixes
- Fixed bucket duplication exploit when right-clicking with empty hand, removed
useWithoutItem
Improvements
- Removed
@EventBusSubscriber(bus=MOD)to eliminate warnings; switched to manual event registration - Added lazy caching for model lookup to avoid repeated invocations every tick
- Fluid state changes sync to clients instantly, removing lag on nozzle rotation start/stop
- Unified
hasWater()method, eliminated redundantsetChanged()calls - Single cast for
ServerLevel; replaced fully qualified class names with imports - Removed leftover data handling for
selling_bin
Tweaks
- Nozzle rotation origin changed from Y=6 to Y=3, rotating around the block's center
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:qrrTz82Z:r0D31z1x"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:qrrTz82Z:r0D31z1x"
}
