Skip to content

Commit 3e39d7e

Browse files
committed
- some fixes
1 parent 72afa8e commit 3e39d7e

35 files changed

+310
-100
lines changed

build.gradle

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,23 @@ plugins {
77
id "io.github.pacifistmc.forgix" version "1.2.6"
88

99
}
10-
11-
//apply plugin: "io.github.pacifistmc.forgix"
12-
1310
architectury {
1411
minecraft = rootProject.minecraft_version
1512
}
1613

1714
forgix {
1815
group = "smartin.miapi"
19-
mergedJarName = "Truly-Modular-${rootProject.mod_version}.jar"
16+
mergedJarName = "Truly-Modular-miapi-${rootProject.mod_version}-${rootProject.minecraft_version}.jar"
17+
}
2018

21-
/*
22-
if (findProject(":forge"))
23-
forge {
24-
jarLocation = "forge/build/libs/miapi-${rootProject.versionStr}.jar"
25-
}
19+
tasks.register('buildMerged') {
20+
dependsOn 'miapi:forge', 'miapi build', 'miapi:mergeJars'
2621

27-
findProject(":fabric")
28-
fabric {
29-
jarLocation = "fabric/build/libs/miapi-${rootProject.versionStr}.jar"
22+
doLast {
23+
println "Build completed"
3024
}
31-
32-
removeDuplicate "smartin.miapi"
33-
*/
3425
}
3526

36-
3727
subprojects {
3828
apply plugin: "dev.architectury.loom"
3929

common/src/main/java/smartin/miapi/item/modular/Transform.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ public Matrix4f toMatrix() {
136136
*/
137137
public Transform copy() {
138138
Transform copy = new Transform(
139-
this.rotation != null ? new Vector3f(this.rotation) : new Vector3f(),
140-
this.translation != null ? new Vector3f(this.translation) : new Vector3f(),
141-
this.scale != null ? new Vector3f(this.scale) : new Vector3f()
139+
this.rotation != null ? new Vector3f(this.rotation) : new Vector3f(0,0,0),
140+
this.translation != null ? new Vector3f(this.translation) : new Vector3f(0,0,0),
141+
this.scale != null ? new Vector3f(this.scale) : new Vector3f(1,1,1)
142142
);
143143

144144
copy.origin = this.origin;

common/src/main/java/smartin/miapi/registries/RegistryInventory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static void setup() {
173173

174174
//ATTRIBUTE
175175
registerAtt("generic.durability", false, () ->
176-
new ClampedEntityAttribute("miapi.attribute.name.durability", 300.0, 1.0, 16777216).setTracked(true),
176+
new ClampedEntityAttribute("miapi.attribute.name.durability", 1.0, 1.0, 16777216).setTracked(true),
177177
att -> ITEM_DURABILITY = att);
178178

179179
// reach

common/src/main/resources/data/miapi/materials/crystal/diamond.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"hardness": 6,
77
"density": 2.9,
88
"flexibility": 0,
9-
"durability": 800,
9+
"durability": 1560,
1010
"mining_speed": 8,
1111
"mining_level": 3,
1212
"color": "49EAD6",

common/src/main/resources/data/miapi/materials/metal/copper.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"hardness": 3.8,
99
"density": 3.6,
1010
"flexibility": 1,
11-
"durability": 800,
11+
"durability": 200,
1212
"color": "E47B55",
1313
"textures": [
1414
"metal"

common/src/main/resources/data/miapi/materials/metal/gold.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"hardness": 4,
99
"density": 4.6,
1010
"flexibility": 1,
11-
"durability": 800,
11+
"durability": 32,
1212
"color": "FFD700",
1313
"textures": [
1414
"contrast"

common/src/main/resources/data/miapi/materials/metal/iron.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"hardness": 5,
77
"density": 3.8,
88
"flexibility": 1,
9-
"durability": 800,
9+
"durability": 250,
1010
"color": "FCFCFC",
1111
"textures": [
1212
"metal"

common/src/main/resources/data/miapi/materials/metal/netherite.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"hardness": 7,
77
"density": 3.8,
88
"flexibility": 3,
9-
"durability": 800,
9+
"durability": 2031,
1010
"color": "695e5f",
1111
"textures": [
1212
"metal"

common/src/main/resources/data/miapi/materials/stone/stone.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"hardness": 4,
77
"density": 3,
88
"flexibility": 0,
9-
"durability": 800,
9+
"durability": 131,
1010
"color": "757575",
1111
"mining_speed": 4,
1212
"mining_level": 1,

common/src/main/resources/data/miapi/modules/sword/blade/blade_dagger.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@
4848
"uuid": "AAAAAAAA-4180-4865-B01B-BCCE9785ACA3",
4949
"seperateOnItem": true
5050
},
51-
{
52-
"attribute": "miapi:generic.shield_break",
53-
"value": "1.5",
54-
"operation": "+",
55-
"slot": "mainhand",
56-
"uuid": "AAAAAAAA-4180-4865-B01B-BCCE9785ACA3"
57-
},
5851
{
5952
"attribute": "generic.attack_speed",
6053
"value": "+0.5",
@@ -68,6 +61,23 @@
6861
"operation": "+",
6962
"slot": "mainhand",
7063
"uuid": "CB3F55D3-645C-4F38-A497-9C13A33DB5CF"
64+
},
65+
{
66+
"attribute": "miapi:generic.durability",
67+
"value": "[material.durability]* 0.25",
68+
"operation": "+",
69+
"slot": "mainhand",
70+
"uuid": "AAAAAAAA-4180-4865-B01B-BCCE9785ACA3"
71+
}
72+
],
73+
"applyPotionEffects": [
74+
{
75+
"event": "attack",
76+
"target": "target",
77+
"duration": 5,
78+
"amplifier": 1,
79+
"effect": "minecraft:poison",
80+
"predicate": "miapi:test"
7181
}
7282
],
7383
"displayName": "miapi.module.blade_dagger.name",

0 commit comments

Comments
 (0)