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
Add trail particle option
cassian.cc
9 months ago
4583e629
2e6395c5
+14
1 changed file
expand all
collapse all
unified
split
common
src
main
java
net
lerariemann
infinity
dimensions
RandomBiome.java
+14
common/src/main/java/net/lerariemann/infinity/dimensions/RandomBiome.java
reviewed
···
65
65
return res;
66
66
}
67
67
68
68
+
private NbtList zeroBlockPos() {
69
69
+
NbtList nbtElements = new NbtList();
70
70
+
nbtElements.add(NbtFloat.of(0));
71
71
+
nbtElements.add(NbtFloat.of(0));
72
72
+
nbtElements.add(NbtFloat.of(0));
73
73
+
return nbtElements;
74
74
+
}
75
75
+
68
76
NbtString randomSound(){
69
77
return NbtString.of(PROVIDER.randomName(random, ConfigType.SOUNDS));
70
78
}
···
186
194
destination.put("pos", pos);
187
195
res.put("destination", destination);
188
196
res.putInt("arrival_in_ticks", random.nextInt(20000));
197
197
+
return res;
198
198
+
}
199
199
+
case "minecraft:trail" -> {
200
200
+
res.put("color", randomColor());
201
201
+
res.put("target", zeroBlockPos());
202
202
+
res.putInt("duration", random.nextInt(500));
189
203
return res;
190
204
}
191
205
}