Skip to content

Commit af26eaf

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents cfde12d + c5c4cf3 commit af26eaf

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-2
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
11
# Hypertubes
22
A mod that adds hypertubes inspired by Satisfactory
33

4+
# IMPORTANT NOTES
5+
this mod is unreleased and not useable in survival yet due to game breaking bugs at high speeds
6+
7+
8+
## FEATURES
9+
- Hypertube: the fully built tube can transport nearly all entities by default or can be configured to only transport some entities
10+
- Hypertube Placer: Used to place down hypertubes
11+
- Hypertube support: the piece in between built sections of a tube
12+
- Support addons: right click with the item on a support to add these to the support
13+
- Hypertube Entrance: Used to enter the hypertube
14+
- Hypertube Booster: Boost the entity in the tube to higher velocities
15+
- Hypertube Detector: Outputs a redstone signal when an entity passes through
16+
17+
Visit the wiki for more information about configuration and details (WIP)
18+
19+
## Screenshots
20+
21+
<details>
22+
<summary>Click to view screenshots</summary>
23+
wip
24+
</details>
25+
26+
## License
27+
Please refer to the [LICENSE.md](https://github.com/satiscraftory/Hypertubes/blob/main/LICENSE.md) file for licensing details.
28+
29+
For any questions or issues, please reach out to us on our [GitHub repository](https://github.com/satiscraftory/Hypertubes) or our [Discord Server](https://discord.gg/dxANwW23Ub)
30+
31+
## Need a Minecraft server?
32+
[![pebblehost](https://github.com/warior456/Sculk-Depths/assets/66562258/ae831af6-309b-4f11-b896-5f4eb7567088)](https://billing.pebblehost.com/aff.php?aff=2968)
33+
Starting at just 1$/month for 1GB RAM [Check it out](https://billing.pebblehost.com/aff.php?aff=2968)

src/main/java/net/ugi/hypertubes/Config.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,25 @@ public class Config
1818
.comment("Maximum survival/adventure build length for hypertubes")
1919
.defineInRange("maxHypertubeLength", 128, 0, Integer.MAX_VALUE);
2020

21+
//creativeBypassMaxBuildLength? (default true)
22+
2123
private static final ModConfigSpec.IntValue HYPERTUBE_PLACE_REACH = BUILDER
2224
.comment("The max reach for placing hypertubes")
2325
.defineInRange("hypertubePlaceReach", 15, 0, Integer.MAX_VALUE);
2426

27+
//enabled tube types?
28+
29+
//max booster speed (tier 1)
30+
31+
//max Player boost speed
32+
33+
//booster Boosting multiplier
34+
35+
//allow survival dismounting (default: true)
36+
37+
38+
39+
2540
/* private static final ModConfigSpec.BooleanValue LOG_DIRT_BLOCK = BUILDER
2641
.comment("Whether to log the dirt block on common setup")
2742
.define("logDirtBlock", true);

src/main/java/net/ugi/hypertubes/entity/HypertubeEntity.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class HypertubeEntity extends Entity {
4747
private BlockPos currentPos;
4848
private float speed = 1;
4949
private int currentPathIndex = 0;
50-
50+
private static double viewScale = 1.0;
5151
private double t = 0;
5252
private boolean exit = false ;
5353

@@ -199,7 +199,7 @@ public void lerpTo(double x, double y, double z, float yRot, float xRot, int ste
199199
this.lerpSteps = steps;
200200
}
201201

202-
// ─── Bo​at’s diffused client interpolation ─────────────────────────────────
202+
// ─── Boat’s diffused client interpolation ─────────────────────────────────
203203
private void tickLerp() {
204204
if (this.isControlledByLocalInstance()) {
205205
// on the server (or host), zero out lerp and push immediate position
@@ -469,4 +469,17 @@ private void swapDirection(){
469469

470470

471471

472+
/**
473+
* Checks if the entity is in range to render.
474+
*/
475+
@Override
476+
public boolean shouldRenderAtSqrDistance(double distance) {
477+
double d0 = this.getPassengers().isEmpty() ? 2D: 100d;
478+
479+
480+
d0 *= 64.0 * viewScale;
481+
return distance < d0 * d0;
482+
}
483+
484+
472485
}

0 commit comments

Comments
 (0)