Skip to content

Commit

Permalink
Refactor the entire codebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Provismet committed Jul 20, 2024
1 parent 50051e5 commit cb36e4d
Show file tree
Hide file tree
Showing 204 changed files with 2,138 additions and 1,850 deletions.
21 changes: 12 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
}

loom {
accessWidenerPath = file("src/main/resources/proviorigins.accesswidener")
runs {
datagenClient {
inherit client
runs {
datagen {
inherit server
name "Data Generation"
vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"
vmArg "-Dfabric-api.datagen.modid=${modid}"

runDir "build/datagen"
}
}
Expand All @@ -28,11 +28,8 @@ sourceSets {
}
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
version = project.mod_version + "+" + project.minecraft_version
group = project.maven_group

repositories {
Expand Down Expand Up @@ -98,6 +95,9 @@ dependencies {

modImplementation "com.github.apace100:origins-fabric:${project.origins_version}"
modCompileOnly "maven.modrinth:lambdynamiclights:${project.dynlights_version}"

modImplementation "com.github.Provismet:LilyLib:${project.lilylib_version}"
include "com.github.Provismet:LilyLib:${project.lilylib_version}"
}

processResources {
Expand All @@ -118,6 +118,9 @@ java {
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

jar {
Expand Down
27 changes: 14 additions & 13 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.15.2
# check these on https://fabricmc.net/develop
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.15.2

# Mod Properties
mod_version = 1.6.1
maven_group = com.provismet
archives_base_name = provi-origins
modid = proviorigins
mod_version = 1.6.1
maven_group = com.provismet
archives_base_name = provi-origins
modid = proviorigins

# Dependencies
fabric_version=0.91.2+1.20.2
origins_version=1.12.0
extrade_oa_version=1.1.0
pehkui_version=3.7.5
dynlights_version=mYl4RvKg
fabric_version=0.91.2+1.20.2
origins_version=1.12.0
extrade_oa_version=1.1.0
pehkui_version=3.7.5
dynlights_version=mYl4RvKg
lilylib_version=1.1.3-mc1.20
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "proviorigins:block/lily_of_the_void"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "proviorigins:block/potted_lily_of_the_void"
}
}
}
9 changes: 9 additions & 0 deletions src/main/generated/assets/proviorigins/lang/en_gb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"item.proviorigins.crystalliser_icon": "Crystalliser Origin Icon",
"power.proviorigins.alraune.summon_plant.badge.2": "Flower Sprites\n- Will take damage if not placed on plantable blocks such as dirt or grass.\n- Will die after 1200 ticks unless fed with a super fertiliser such as dragon breath.",
"power.proviorigins.crystalliser.name": "Crystalliser",
"power.proviorigins.drakling.chain_crafting.description": "You can craft chainmail armour.",
"power.proviorigins.drakling.weak_armour.description": "Your newfound strength allows you to wear stronger armour, but your bodily heat loosens the material and makes it weaker than normal.",
"power.proviorigins.jellysculk.catalyse.name": "Catalyser",
"tooltip.proviorigins.alraune.super_fertiliser": "§8A super effective fertiliser."
}
275 changes: 275 additions & 0 deletions src/main/generated/assets/proviorigins/lang/en_us.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cross",
"textures": {
"cross": "proviorigins:block/lily_of_the_void"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/flower_pot_cross",
"textures": {
"plant": "proviorigins:block/lily_of_the_void"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/alraune"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/crystalliser"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/drake"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/drakling"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/fae_moth"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/homunculus"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/jelly"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/kraken_of_decay"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:block/lily_of_the_void"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/lily_of_the_void"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "proviorigins:icons/splinter"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"replace": false,
"values": [
"proviorigins:lily_of_the_void_icon",
"proviorigins:kraken_of_decay_icon",
"proviorigins:drakling_icon",
"proviorigins:drake_icon",
"proviorigins:splinter_icon",
"proviorigins:fae_moth_icon",
"proviorigins:alraune_icon",
"proviorigins:homunculus_icon",
"proviorigins:crystalliser_icon"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"proviorigins:lily_of_the_void"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"proviorigins:kraken_soul_lantern"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"proviorigins:lily_of_the_void"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
},
"requirements": [
[
"has_the_recipe",
"has_lantern",
"has_solid_lantern",
"has_the_recipe"
"has_solid_lantern"
]
],
"rewards": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
},
"requirements": [
[
"has_the_recipe",
"has_soul_lantern",
"has_kraken_soul_lantern",
"has_the_recipe"
"has_kraken_soul_lantern"
]
],
"rewards": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
},
"requirements": [
[
"has_the_recipe",
"has_purple_dye",
"has_lily_of_the_void",
"has_the_recipe"
"has_lily_of_the_void"
]
],
"rewards": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "proviorigins:lily_of_the_void"
}
],
"rolls": 1.0
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:flower_pot"
}
],
"rolls": 1.0
},
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "proviorigins:lily_of_the_void"
}
],
"rolls": 1.0
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"replace": false,
"values": [
{
"id": "#minecraft:flowers",
"required": false
},
{
"id": "#minecraft:saplings",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"replace": false,
"values": [
"minecraft:soul_torch",
"minecraft:soul_wall_torch",
"minecraft:soul_lantern",
"minecraft:soul_fire"
]
}
Loading

0 comments on commit cb36e4d

Please sign in to comment.