diff options
| author | 2024-01-20 02:25:44 +0200 | |
|---|---|---|
| committer | 2024-01-20 02:25:44 +0200 | |
| commit | 88e4e8852a5f1c33794abe430411b73c3ade507a (patch) | |
| tree | b8a46554b8963269fbbbe5df21122513a5b87228 /assets/minecraft/optifine/cem/boat.jem | |
| download | faithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.tar.gz faithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.tar.xz faithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.zip | |
Initial import
Diffstat (limited to 'assets/minecraft/optifine/cem/boat.jem')
| -rwxr-xr-x | assets/minecraft/optifine/cem/boat.jem | 252 |
1 files changed, 252 insertions, 0 deletions
diff --git a/assets/minecraft/optifine/cem/boat.jem b/assets/minecraft/optifine/cem/boat.jem new file mode 100755 index 00000000..4a6ae172 --- /dev/null +++ b/assets/minecraft/optifine/cem/boat.jem | |||
| @@ -0,0 +1,252 @@ | |||
| 1 | { | ||
| 2 | "credit": "Made with Blockbench", | ||
| 3 | "texture": "textures/entity/boat/oak.png", | ||
| 4 | "textureSize": [128, 64], | ||
| 5 | "models": [ | ||
| 6 | { | ||
| 7 | "part": "front", | ||
| 8 | "id": "front", | ||
| 9 | "invertAxis": "xy", | ||
| 10 | "translate": [0, 0, 0] | ||
| 11 | }, | ||
| 12 | { | ||
| 13 | "part": "back", | ||
| 14 | "id": "back", | ||
| 15 | "invertAxis": "xy", | ||
| 16 | "translate": [4, -2, -15], | ||
| 17 | "submodels": [ | ||
| 18 | { | ||
| 19 | "id": "boat", | ||
| 20 | "invertAxis": "xy", | ||
| 21 | "translate": [0, 3, 1], | ||
| 22 | "boxes": [ | ||
| 23 | {"coordinates": [-8, 0, 12, 16, 6, 2], "textureOffset": [92, 0]} | ||
| 24 | ], | ||
| 25 | "submodels": [ | ||
| 26 | { | ||
| 27 | "id": "bottom2", | ||
| 28 | "invertAxis": "xy", | ||
| 29 | "translate": [-2, -1, 1.5], | ||
| 30 | "rotate": [-90, -90, 0], | ||
| 31 | "boxes": [ | ||
| 32 | { | ||
| 33 | "coordinates": [-15.5, -6, -3, 28, 16, 4], | ||
| 34 | "uvNorth": [68, 48, 96, 64], | ||
| 35 | "uvEast": [64, 48, 68, 64], | ||
| 36 | "uvSouth": [100, 48, 128, 64], | ||
| 37 | "uvWest": [96, 48, 100, 64], | ||
| 38 | "uvUp": [96, 48, 68, 44], | ||
| 39 | "uvDown": [124, 44, 96, 48] | ||
| 40 | } | ||
| 41 | ] | ||
| 42 | }, | ||
| 43 | { | ||
| 44 | "id": "right2", | ||
| 45 | "invertAxis": "xy", | ||
| 46 | "translate": [0, -3, 1.5], | ||
| 47 | "rotate": [0, 90, 0], | ||
| 48 | "boxes": [ | ||
| 49 | {"coordinates": [-12.5, 3, 8, 28, 6, 2], "textureOffset": [0, 56]} | ||
| 50 | ] | ||
| 51 | }, | ||
| 52 | { | ||
| 53 | "id": "left2", | ||
| 54 | "invertAxis": "xy", | ||
| 55 | "translate": [-9, 3, 0.5], | ||
| 56 | "rotate": [0, -90, 0], | ||
| 57 | "boxes": [ | ||
| 58 | {"coordinates": [-14.5, -3, -1, 28, 6, 2], "textureOffset": [0, 56]} | ||
| 59 | ] | ||
| 60 | }, | ||
| 61 | { | ||
| 62 | "id": "front2", | ||
| 63 | "invertAxis": "xy", | ||
| 64 | "translate": [0, 3, -14.5], | ||
| 65 | "rotate": [0, -180, 0], | ||
| 66 | "boxes": [ | ||
| 67 | {"coordinates": [-8, -3, -2.5, 16, 6, 2], "textureOffset": [92, 0]} | ||
| 68 | ] | ||
| 69 | }, | ||
| 70 | { | ||
| 71 | "id": "left_paddle", | ||
| 72 | "invertAxis": "xy", | ||
| 73 | "translate": [-11, 8, -3], | ||
| 74 | "rotate": [-124, -50, 165], | ||
| 75 | "boxes": [ | ||
| 76 | {"coordinates": [-1, -2, -5, 2, 2, 18], "textureOffset": [62, 0]}, | ||
| 77 | {"coordinates": [0.001, -3, 8, 1, 6, 7], "textureOffset": [62, 0]} | ||
| 78 | ] | ||
| 79 | }, | ||
| 80 | { | ||
| 81 | "id": "right_paddle", | ||
| 82 | "invertAxis": "xy", | ||
| 83 | "translate": [11, 8, -3], | ||
| 84 | "rotate": [-124, 60, -165], | ||
| 85 | "boxes": [ | ||
| 86 | {"coordinates": [-1, -2, -5, 2, 2, 18], "textureOffset": [62, 0]} | ||
| 87 | ], | ||
| 88 | "submodels": [ | ||
| 89 | { | ||
| 90 | "id": "back_sub_8", | ||
| 91 | "invertAxis": "xy", | ||
| 92 | "mirrorTexture": "u", | ||
| 93 | "translate": [0, 0, 0], | ||
| 94 | "boxes": [ | ||
| 95 | {"coordinates": [-1.001, -3, 8, 1, 6, 7], "textureOffset": [62, 0]} | ||
| 96 | ] | ||
| 97 | } | ||
| 98 | ] | ||
| 99 | }, | ||
| 100 | { | ||
| 101 | "id": "in_paddles", | ||
| 102 | "invertAxis": "xy", | ||
| 103 | "translate": [0, 0, 0], | ||
| 104 | "submodels": [ | ||
| 105 | { | ||
| 106 | "id": "right_paddle2", | ||
| 107 | "invertAxis": "xy", | ||
| 108 | "translate": [8.25, 7.5, -11], | ||
| 109 | "rotate": [27.30132, 1.15421, -42.12613], | ||
| 110 | "boxes": [ | ||
| 111 | {"coordinates": [-1, -2, -5, 2, 2, 18], "textureOffset": [62, 0]} | ||
| 112 | ], | ||
| 113 | "submodels": [ | ||
| 114 | { | ||
| 115 | "id": "back_sub_2", | ||
| 116 | "invertAxis": "xy", | ||
| 117 | "mirrorTexture": "u", | ||
| 118 | "translate": [0, 0, 0], | ||
| 119 | "boxes": [ | ||
| 120 | {"coordinates": [-1.001, -3, 8, 1, 6, 7], "textureOffset": [62, 0]} | ||
| 121 | ] | ||
| 122 | } | ||
| 123 | ] | ||
| 124 | }, | ||
| 125 | { | ||
| 126 | "id": "left_paddle2", | ||
| 127 | "invertAxis": "xy", | ||
| 128 | "translate": [-7, 7.5, -9.75], | ||
| 129 | "rotate": [17.2512, -12.69876, 46.24166], | ||
| 130 | "boxes": [ | ||
| 131 | {"coordinates": [-1, -2, -5, 2, 2, 18], "textureOffset": [62, 0]}, | ||
| 132 | {"coordinates": [0.001, -3, 8, 1, 6, 7], "textureOffset": [62, 0]} | ||
| 133 | ] | ||
| 134 | } | ||
| 135 | ] | ||
| 136 | } | ||
| 137 | ] | ||
| 138 | } | ||
| 139 | ], | ||
| 140 | "animations": [ | ||
| 141 | { | ||
| 142 | "var.water_x": "clamp(if(is_in_water,var.water_x+0.05,var.water_x-0.05),0,1)", | ||
| 143 | "var.water_k": "pow(var.water_x,1/3)", | ||
| 144 | "var.forwards": "clamp(if(paddle_left.rx < -0.654 && paddle_left.rx > -0.655,1,paddle_right.rx < -0.654 && paddle_right.rx > -0.655 && limb_swing == var.limb_counter,1, var.forwards -0.03),0,1)", | ||
| 145 | "varb.forward": "var.forwards == 0 ", | ||
| 146 | "var.f_speed_x": "clamp(if(varb.forward,lerp(0.01,var.f_speed_x,1),lerp(0.01,var.f_speed_x,0)),0,1)", | ||
| 147 | "var.f_speed_k": "sqrt(var.f_speed_x)*var.f_speed_x+pow(var.f_speed_x,2)*(1-var.f_speed_x)", | ||
| 148 | "var.side_tilt": "clamp(if(between(var.old_rot_y-rot_y,-0.005,0.005),lerp(0.03,var.side_tilt,0) ,var.old_rot_y>rot_y,lerp(0.01,var.side_tilt,-1),var.old_rot_y<rot_y,lerp(0.01,var.side_tilt,1),0),-1,1)" | ||
| 149 | }, | ||
| 150 | { | ||
| 151 | "var.idle": "var.water_k * sin(pos_x/3 + pos_z/3 + time/10)", | ||
| 152 | "var.idle2": "var.water_k * cos(pos_x/3 + pos_z/3 + time/10)" | ||
| 153 | }, | ||
| 154 | { | ||
| 155 | "boat.rx": "var.water_k * (-var.f_speed_k/10) + var.idle2*cos(rot_y+pi/4)/20", | ||
| 156 | "boat.rz": "var.water_k * (-var.side_tilt/8) + var.idle2*sin(rot_y+pi/4)/20", | ||
| 157 | "boat.ty": "-3 + var.idle/3" | ||
| 158 | }, | ||
| 159 | { | ||
| 160 | "left_paddle.rx": "print(10,10,paddle_left.rx)", | ||
| 161 | "left_paddle.ry": "pi/2+paddle_left.ry", | ||
| 162 | "left_paddle.rz": "paddle_left.rz" | ||
| 163 | }, | ||
| 164 | { | ||
| 165 | "right_paddle.rx": "paddle_right.rx-0.34", | ||
| 166 | "right_paddle.ry": "pi/2+paddle_right.ry-0.1", | ||
| 167 | "right_paddle.rz": "paddle_right.rz" | ||
| 168 | }, | ||
| 169 | { | ||
| 170 | "var.old_rot_y": "rot_y", | ||
| 171 | "var.limb_counter": "limb_swing" | ||
| 172 | }, | ||
| 173 | { | ||
| 174 | "left_paddle.visible": "is_ridden", | ||
| 175 | "right_paddle.visible": "is_ridden", | ||
| 176 | "in_paddles.visible": "!is_ridden" | ||
| 177 | } | ||
| 178 | ] | ||
| 179 | }, | ||
| 180 | { | ||
| 181 | "part": "left", | ||
| 182 | "id": "left", | ||
| 183 | "invertAxis": "xy", | ||
| 184 | "translate": [0, 0, 0] | ||
| 185 | }, | ||
| 186 | { | ||
| 187 | "part": "right", | ||
| 188 | "id": "right", | ||
| 189 | "invertAxis": "xy", | ||
| 190 | "translate": [0, 0, 0] | ||
| 191 | }, | ||
| 192 | { | ||
| 193 | "part": "bottom", | ||
| 194 | "id": "bottom", | ||
| 195 | "invertAxis": "xy", | ||
| 196 | "translate": [0, 0, 0] | ||
| 197 | }, | ||
| 198 | { | ||
| 199 | "part": "bottom_no_water", | ||
| 200 | "id": "bottom_no_water", | ||
| 201 | "invertAxis": "xy", | ||
| 202 | "translate": [1, -9, 0], | ||
| 203 | "rotate": [0, -90, -90], | ||
| 204 | "submodels": [ | ||
| 205 | { | ||
| 206 | "id": "no_water", | ||
| 207 | "invertAxis": "xy", | ||
| 208 | "translate": [0, 3, 1], | ||
| 209 | "boxes": [ | ||
| 210 | {"coordinates": [-12, -1, -7, 24, 16, 6], "textureOffset": [68, 42]} | ||
| 211 | ] | ||
| 212 | } | ||
| 213 | ], | ||
| 214 | "animations": [ | ||
| 215 | { | ||
| 216 | "this.ry": 0, | ||
| 217 | "this.rz": 0 | ||
| 218 | }, | ||
| 219 | { | ||
| 220 | "var.water_x": "clamp(if(is_in_water,var.water_x+0.05,var.water_x-0.05),0,1)", | ||
| 221 | "var.water_k": "pow(var.water_x,1/3)", | ||
| 222 | "var.forwards": "clamp(if(paddle_left.rx < -0.654 && paddle_left.rx > -0.655,1,paddle_right.rx < -0.654 && paddle_right.rx > -0.655 && limb_swing == var.limb_counter,1, var.forwards -0.03),0,1)", | ||
| 223 | "varb.forward": "var.forwards == 0 ", | ||
| 224 | "var.f_speed_x": "clamp(if(varb.forward,lerp(0.01,var.f_speed_x,1),lerp(0.01,var.f_speed_x,0)),0,1)", | ||
| 225 | "var.f_speed_k": "sqrt(var.f_speed_x)*var.f_speed_x+pow(var.f_speed_x,2)*(1-var.f_speed_x)", | ||
| 226 | "var.side_tilt": "clamp(if(between(var.old_rot_y-rot_y,-0.005,0.005),lerp(0.03,var.side_tilt,0) ,var.old_rot_y>rot_y,lerp(0.01,var.side_tilt,-1),var.old_rot_y<rot_y,lerp(0.01,var.side_tilt,1),0),-1,1)" | ||
| 227 | }, | ||
| 228 | { | ||
| 229 | "var.idle": "var.water_k * sin(pos_x/3 + pos_z/3 + time/10)", | ||
| 230 | "var.idle2": "var.water_k * cos(pos_x/3 + pos_z/3 + time/10)" | ||
| 231 | }, | ||
| 232 | { | ||
| 233 | "no_water.ry": "var.water_k * (-var.f_speed_k/10) + var.idle2*cos(rot_y+pi/4)/20", | ||
| 234 | "no_water.rx": "-(var.water_k * (-var.side_tilt/8) + var.idle2*sin(rot_y+pi/4)/20)", | ||
| 235 | "no_water.ty": "-3 + var.idle/3" | ||
| 236 | } | ||
| 237 | ] | ||
| 238 | }, | ||
| 239 | { | ||
| 240 | "part": "paddle_left", | ||
| 241 | "id": "paddle_left", | ||
| 242 | "invertAxis": "xy", | ||
| 243 | "translate": [0, 0, 0] | ||
| 244 | }, | ||
| 245 | { | ||
| 246 | "part": "paddle_right", | ||
| 247 | "id": "paddle_right", | ||
| 248 | "invertAxis": "xy", | ||
| 249 | "translate": [0, 0, 0] | ||
| 250 | } | ||
| 251 | ] | ||
| 252 | } \ No newline at end of file | ||