Skip to content

Flemmli97/Flan

Repository files navigation

Flan




Discord

Server side land claiming mod for fabric.

Translations

Translations for Flan depends on the community. Submitting a translation to the mod is simple:

  1. Fork this repository
  2. Create a translation .json-file under common/src/main/resources/data/flan/lang.
    Use the english translation under common/src/generated/resources/data/flan/lang as reference.
  3. Create a PR to submit your translation

Devs

If you want to add integration to flan first add the following snippet to your build.gradle

repositories {
    maven {
        name = "Flemmli97"
        url "https://gitlab.com/api/v4/projects/21830712/packages/maven"
    }
}

dependencies {    
    //Fabric==========    
    modCompileOnly("io.github.flemmli97:flan:${minecraft_version}-${flan_version}-${mod_loader}:api") {
		transitive = false //Remove this if you want to have all those optional dependencies
	}
    modRuntime("io.github.flemmli97:flan:${minecraft_version}-${flan_version}-${mod_loader}") {
		transitive = false //Remove this if you want to have all those optional dependencies
	}
    
    //Forge==========    
    compileOnly fg.deobf("io.github.flemmli97:flan:${minecraft_version}-${flan_version}-${mod_loader}:api")
    runtimeOnly fg.deobf("io.github.flemmli97:flan:${minecraft_version}-${flan_version}-${mod_loader}")
}

To check if an action can be done simply call ClaimHandler#canInteract(ServerPlayer player, BlockPos pos, ResourceLocation permission)