tangled
alpha
login
or
join now
codexarchonic.nekoweb.org
/
ProjectInfinity
0
fork
atom
Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.
0
fork
atom
overview
issues
6
pulls
pipelines
More tinting fixes
cassian.cc
9 months ago
500178f2
7eb106c6
+26
-5
4 changed files
expand all
collapse all
unified
split
common
src
main
java
net
lerariemann
infinity
item
PortalDataHolder.java
resources
assets
infinity
items
chromatic_carpet.json
chromatic_wool.json
f4.json
+3
common/src/main/java/net/lerariemann/infinity/item/PortalDataHolder.java
···
4
4
import net.lerariemann.infinity.registry.core.ModComponentTypes;
5
5
import net.lerariemann.infinity.util.InfinityMethods;
6
6
import net.minecraft.component.ComponentChanges;
7
7
+
import net.minecraft.component.DataComponentTypes;
7
8
import net.minecraft.entity.ItemEntity;
8
9
import net.minecraft.item.Item;
9
10
import net.minecraft.item.ItemStack;
···
36
37
default ComponentChanges getPortalComponents(InfinityPortalBlockEntity ipbe) {
37
38
return ComponentChanges.builder()
38
39
.add(ModComponentTypes.COLOR.get(), ipbe.getPortalColor())
40
40
+
.add(DataComponentTypes.CUSTOM_MODEL_DATA, InfinityMethods.getColoredModel(ipbe.getPortalColor()))
39
41
.build();
40
42
}
41
43
···
62
64
return ComponentChanges.builder()
63
65
.add(ModComponentTypes.DESTINATION.get(), ipbe.getDimension())
64
66
.add(ModComponentTypes.COLOR.get(), ipbe.getPortalColor())
67
67
+
.add(DataComponentTypes.CUSTOM_MODEL_DATA, InfinityMethods.getColoredModel(ipbe.getPortalColor()))
65
68
.build();
66
69
}
67
70
}
+3
-2
common/src/main/resources/assets/infinity/items/chromatic_carpet.json
···
4
4
"model": "infinity:block/chromatic/carpet",
5
5
"tints": [
6
6
{
7
7
-
"type": "minecraft:constant",
8
8
-
"value": 9393112
7
7
+
"type": "minecraft:custom_model_data",
8
8
+
"index": 0,
9
9
+
"default": 9393112
9
10
}
10
11
]
11
12
}
+3
-2
common/src/main/resources/assets/infinity/items/chromatic_wool.json
···
4
4
"model": "infinity:block/chromatic/wool",
5
5
"tints": [
6
6
{
7
7
-
"type": "minecraft:constant",
8
8
-
"value": 9393112
7
7
+
"type": "minecraft:custom_model_data",
8
8
+
"index": 0,
9
9
+
"default": 9393112
9
10
}
10
11
]
11
12
}
+17
-1
common/src/main/resources/assets/infinity/items/f4.json
···
1
1
-
{"model":{"type":"minecraft:model","model":"infinity:item/f4"}}
1
1
+
{
2
2
+
"model": {
3
3
+
"type": "minecraft:model",
4
4
+
"model": "infinity:item/f4/colored",
5
5
+
"tints": [
6
6
+
{
7
7
+
"type": "minecraft:constant",
8
8
+
"value": -1
9
9
+
},
10
10
+
{
11
11
+
"type": "minecraft:custom_model_data",
12
12
+
"index": 0,
13
13
+
"default": 5767344
14
14
+
}
15
15
+
]
16
16
+
}
17
17
+
}