added kitsune and pixie

This commit is contained in:
2026-07-07 16:37:07 +02:00
parent 05fec3adcb
commit f2ebb37bde
19 changed files with 320 additions and 56 deletions

View File

@@ -1,17 +1,13 @@
plugins { plugins {
id 'fabric-loom' version '1.10.1' id 'net.fabricmc.fabric-loom-remap' version "${loom_version}"
id 'maven-publish' id 'maven-publish'
} }
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version version = project.mod_version
group = project.maven_group group = project.maven_group
repositories { repositories {
mavenLocal() mavenLocal()
maven { maven {
name "cloth config" name "cloth config"
url "https://maven.shedaniel.me" url "https://maven.shedaniel.me"
@@ -44,11 +40,21 @@ repositories {
name = "TeamResourceful" name = "TeamResourceful"
url = "https://maven.teamresourceful.com/repository/maven-releases" url = "https://maven.teamresourceful.com/repository/maven-releases"
} }
} }
// loom {
// splitEnvironmentSourceSets()
// mods {
// "modid" {
// sourceSet sourceSets.main
// sourceSet sourceSets.client
// }
// }
// }
dependencies { dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}" minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.layered { mappings loom.layered {
// officialMojangMappings() // officialMojangMappings()
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
@@ -71,54 +77,54 @@ dependencies {
modLocalRuntime "dev.emi:emi-fabric:${emi_version}" modLocalRuntime "dev.emi:emi-fabric:${emi_version}"
modImplementation "dev.cammiescorner.icarus:Icarus-Fabric:${project.icarus_version}" modImplementation "dev.cammiescorner.icarus:Icarus-Fabric:${project.icarus_version}"
} }
processResources { processResources {
inputs.property "version", project.version def version = project.version
inputs.property "version", version
filteringCharset = "UTF-8" filesMatching("fabric.mod.json") {
expand "version": version
filesMatching("fabric.mod.json") { }
expand "version": project.version
}
} }
// ensure that the encoding is set to UTF-8, no matter what the system default is tasks.withType(JavaCompile).configureEach {
// this fixes some edge cases with special characters not displaying correctly it.options.release = 17
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
} }
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task java {
// if it is present. // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// If you remove this task, sources will not be generated. // if it is present.
// task sourcesJar(type: Jar, dependsOn: classes) { // If you remove this line, sources will not be generated.
// classifier = "sources" withSourcesJar()
// from sourceSets.main.allSource
// } sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar { jar {
from "LICENSE" def projectName = project.name
inputs.property "projectName", projectName
from("LICENSE") {
rename { "${it}_$projectName"}
}
} }
// configure the maven publication // configure the maven publication
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { create("mavenJava", MavenPublication) {
// add all the jars that should be included when publishing to maven from components.java
artifact(remapJar) { }
builtBy remapJar }
}
// artifact(sourcesJar) {
// builtBy remapSourcesJar
// }
}
}
// select the repositories you want to publish to // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories { repositories {
// uncomment to publish to the local maven // Add repositories to publish to here.
// mavenLocal() // Notice: This block does NOT have the same function as the block in the top level.
} // The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
} }

124
build.gradle.old Normal file
View File

@@ -0,0 +1,124 @@
plugins {
id 'fabric-loom' version '1.17-SNAPSHOT'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
repositories {
mavenLocal()
maven {
name "cloth config"
url "https://maven.shedaniel.me"
}
maven {
name "mod menu"
url "https://maven.terraformersmc.com"
}
maven {
name "playerabilitylib"
url "https://maven.ladysnake.org/releases"
}
maven {
name "reach entity attributes"
url "https://maven.jamieswhiteshirt.com/libs-release"
}
maven {
name "jitpack"
url "https://jitpack.io"
}
maven {
name = "Up-Mods"
url = "https://maven.uuid.gg/releases"
}
maven {
name = "JourneyMap"
url = "https://jm.gserv.me/repository/maven-public"
}
maven {
name = "TeamResourceful"
url = "https://maven.teamresourceful.com/repository/maven-releases"
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.layered {
// officialMojangMappings()
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
// parchment("org.parchmentmc.data:parchment-${parchment_minecraft}:${parchment_mappings}@zip")
}
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
modImplementation "com.github.apace100:origins-fabric:${project.origins_version}"
modImplementation "com.github.apace100:apoli:${project.apoli_version}"
modImplementation "com.github.apace100:calio:${project.calio_version}"
modApi("com.github.Virtuoel:Pehkui:${pehkui_version}", {
exclude group: "net.fabricmc.fabric-api"
})
modCompileOnly "dev.emi:emi-fabric:${emi_version}:api"
modLocalRuntime "dev.emi:emi-fabric:${emi_version}"
modImplementation "dev.cammiescorner.icarus:Icarus-Fabric:${project.icarus_version}"
}
processResources {
inputs.property "version", project.version
filteringCharset = "UTF-8"
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
// task sourcesJar(type: Jar, dependsOn: classes) {
// classifier = "sources"
// from sourceSets.main.allSource
// }
jar {
from "LICENSE"
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
// artifact(sourcesJar) {
// builtBy remapSourcesJar
// }
}
}
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
}
}

View File

@@ -4,7 +4,8 @@ org.gradle.jvmargs=-Xmx2G
# Fabric Properties # Fabric Properties
minecraft_version=1.20.1 minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10 yarn_mappings=1.20.1+build.10
loader_version=0.16.10 loader_version=0.19.3
loom_version=1.17-SNAPSHOT
# Mod Properties # Mod Properties
mod_version=1.20.1-0.0.1 mod_version=1.20.1-0.0.1
@@ -17,7 +18,7 @@ modmenu_version=7.2.2
pehkui_version=3.7.8 pehkui_version=3.7.8
origins_version=v1.10.0 origins_version=v1.10.0
apoli_version=2.9.0 apoli_version=2.9.0
icarus_version=2.11.0 icarus_version=2.14.0
emi_version=1.1.22+1.20.1 emi_version=1.1.22+1.20.1
calio_version=v1.11.0 calio_version=v1.11.0

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@@ -19,5 +19,25 @@
"power.faithful.dwarf-powers/dwarven_resistance.name": "Dwarven Resistance", "power.faithful.dwarf-powers/dwarven_resistance.name": "Dwarven Resistance",
"power.faithful.dwarf-powers/dwarven_resistance.description": "Dwarves have thicker skin that acts as armour.", "power.faithful.dwarf-powers/dwarven_resistance.description": "Dwarves have thicker skin that acts as armour.",
"power.faithful.dwarf-powers/dwarven_mining.name": "Exceptional Miner", "power.faithful.dwarf-powers/dwarven_mining.name": "Exceptional Miner",
"power.faithful.dwarf-powers/dwarven_mining.description": "Dwarves are known to be the greatest miners in the world, they are able to get valuable ores from bland stones." "power.faithful.dwarf-powers/dwarven_mining.description": "Dwarves are known to be the greatest miners in the world, they are able to get valuable ores from bland stones.",
//-----pixie-----//
"origin.faithful.pixie.name": "Pixie",
"origin.faithful.pixie.description": "Tiny, mischievous creatures that live in forests.",
"power.faithful.pixie-powers/wings.name": "Flight",
"power.faithful.pixie-powers/wings.description": "Pixies have wings that give them powered flight.",
"power.faithful.pixie-powers/tiny.name": "Tiny",
"power.faithful.pixie-powers/tiny.description": "Pixies are half a block tall.",
"power.faithful.pixie-powers/luck.name": "Pixie Luck",
"power.faithful.pixie-powers/luck.description": "Pixies have a little bit of luck on their side.",
//-----kitsune-----//
"origin.faithful.kitsune.name": "Pixie",
"origin.faithful.kitsune.description": "Tiny, mischievous creatures that live in forests.",
"power.faithful.kitsune-powers/light.name": "Light",
"power.faithful.kitsune-powers/light.description": "Kitsune do not sink in powder snow, and do not alert skulk",
"power.faithful.kitsune-powers/small.name": "Small",
"power.faithful.kitsune-powers/small.description": "Kitsune are small creatures, due to their foxlike origins.",
"power.faithful.kitsune-powers/swift.name": "Swift",
"power.faithful.kitsune-powers/swift.description": "Kitsune are a bit faster than others would consider normal."
} }

View File

@@ -16,7 +16,7 @@
"conditions": [ "conditions": [
{ {
"condition": "minecraft:random_chance", "condition": "minecraft:random_chance",
"chance": 0.1 "chance": 0.05
} }
] ]
}, },
@@ -28,7 +28,7 @@
"conditions": [ "conditions": [
{ {
"condition": "minecraft:random_chance", "condition": "minecraft:random_chance",
"chance": 0.1 "chance": 0.05
} }
] ]
} }

View File

@@ -6,5 +6,5 @@
], ],
"icon": "minecraft:dirt", "icon": "minecraft:dirt",
"order": 1001, "order": 1001,
"impact": 3 "impact": 1
} }

View File

@@ -7,5 +7,5 @@
], ],
"icon": "minecraft:dirt", "icon": "minecraft:dirt",
"order": 1000, "order": 1000,
"impact": 3 "impact": 1
} }

View File

@@ -0,0 +1,10 @@
{
"powers": [
"faithful:kitsune-powers/swift",
"faithful:kitsune-powers/small",
"faithful:kitsune-powers/light"
],
"icon": "minecraft:dirt",
"order": 1003,
"impact": 1
}

View File

@@ -0,0 +1,11 @@
{
"powers": [
"faithful:pixie-powers/wings",
"faithful:pixie-powers/tiny",
"faithful:pixie-powers/luck",
"faithful:pixie-powers/light"
],
"icon": "minecraft:dirt",
"order": 1002,
"impact": 1
}

View File

@@ -0,0 +1,13 @@
{
"type": "origins:multiple",
"no_skulk": {
"type": "origins:prevent_game_event",
"event": "minecraft:step",
"events": [
"minecraft:hit_ground"
]
},
"snow": {
"type": "faithful:can_walk_on_powder_snow"
}
}

View File

@@ -0,0 +1,24 @@
{
"type": "origins:action_on_callback",
"entity_action_gained": {
"type": "origins:and",
"actions": [
{
"type": "origins:execute_command",
"command": "scale set pehkui:height .80 @s",
"permission_level": 4
},
{
"type": "origins:execute_command",
"command": "scale set pehkui:width .80 @s",
"permission_level": 4
},
{
"type": "origins:execute_command",
"command": "scale persist set true",
"permission_level": 4
}
]
},
"when_orb": true
}

View File

@@ -0,0 +1,9 @@
{
"type": "origins:attribute",
"modifier": {
"name": "swift",
"attribute": "minecraft:generic.movement_speed",
"value": 0.05,
"operation": "multiply_base"
}
}

View File

@@ -0,0 +1,4 @@
{
"type": "faithful:can_walk_on_powder_snow",
"hidden": true
}

View File

@@ -0,0 +1,13 @@
{
"type": "origins:attribute",
"modifiers":
[
{
"name": "lucky",
"attribute": "generic.luck",
"value": 2.0,
"operation": "addition"
}
]
}

View File

@@ -0,0 +1,24 @@
{
"type": "origins:action_on_callback",
"entity_action_gained": {
"type": "origins:and",
"actions": [
{
"type": "origins:execute_command",
"command": "scale set pehkui:height .25 @s",
"permission_level": 4
},
{
"type": "origins:execute_command",
"command": "scale set pehkui:width .25 @s",
"permission_level": 4
},
{
"type": "origins:execute_command",
"command": "scale persist set true",
"permission_level": 4
}
]
},
"when_orb": true
}

View File

@@ -0,0 +1,7 @@
{
"type": "faithful:wings",
"wings_type": "icarus:zanzas_wings",
"armor_slows": false,
"exhaustion_amount": 0.1,
"wings_speed": 0.02
}

View File

@@ -1,4 +0,0 @@
{
"type": "faithful:wings",
"wings_type": "icarus:white_feathered_wings"
}

View File

@@ -3,6 +3,8 @@
"origins": [ "origins": [
"faithful:elf", "faithful:elf",
"faithful:dwarf", "faithful:dwarf",
"faithful:pixie",
"faithful:kitsune",
{ {
"condition": { "condition": {
"type": "origins:equipped_item", "type": "origins:equipped_item",