@miner-org/mineflayer-physics-reworked 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,55 @@
1
+ [
2
+ {
3
+ "name": "independentLiquidGravity",
4
+ "description": "Liquid gravity is a constant",
5
+ "versions": ["1.8", "1.9", "1.10", "1.11", "1.12"]
6
+ },
7
+ {
8
+ "name": "proportionalLiquidGravity",
9
+ "description": "Liquid gravity is a proportion of normal gravity",
10
+ "versions": [
11
+ "1.13",
12
+ "1.14",
13
+ "1.15",
14
+ "1.16",
15
+ "1.17",
16
+ "1.18",
17
+ "1.19",
18
+ "1.20",
19
+ "1.21"
20
+ ]
21
+ },
22
+ {
23
+ "name": "velocityBlocksOnCollision",
24
+ "description": "Velocity changes are caused by blocks are triggered by collision with the block",
25
+ "versions": ["1.8", "1.9", "1.10", "1.11", "1.12", "1.13", "1.14"]
26
+ },
27
+ {
28
+ "name": "velocityBlocksOnTop",
29
+ "description": "Velocity changes are caused by the block the player is standing on",
30
+ "versions": ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20"]
31
+ },
32
+ {
33
+ "name": "climbUsingJump",
34
+ "description": "Entity can climb ladders and vines by pressing jump",
35
+ "versions": ["1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20"]
36
+ },
37
+ {
38
+ "name": "climbableTrapdoor",
39
+ "description": "Trapdoors placed directly above ladders become climbable",
40
+ "versions": [
41
+ "1.9",
42
+ "1.10",
43
+ "1.11",
44
+ "1.12",
45
+ "1.13",
46
+ "1.14",
47
+ "1.15",
48
+ "1.16",
49
+ "1.17",
50
+ "1.18",
51
+ "1.19",
52
+ "1.20"
53
+ ]
54
+ }
55
+ ]
package/src/util.js ADDED
@@ -0,0 +1,7 @@
1
+ function clamp(min, x, max) {
2
+ return Math.max(min, Math.min(x, max));
3
+ }
4
+
5
+ module.exports = {
6
+ clamp,
7
+ };