Compare commits
3 Commits
ccbb15f7c4
...
1.4.1
Author | SHA1 | Date | |
---|---|---|---|
d675832ecb | |||
a6f8645c68 | |||
2be7c16e8b |
43
README.md
43
README.md
@ -27,10 +27,15 @@ As a challenge I'm trying to make it as user-friendly as possible.
|
|||||||
- Shared EC Access control (via config)
|
- Shared EC Access control (via config)
|
||||||
- Open/close EC block while opening/closing SEC
|
- Open/close EC block while opening/closing SEC
|
||||||
- Play open & close sounds
|
- Play open & close sounds
|
||||||
- Vein miner
|
- Vein miner
|
||||||
|
- Configurable animation (tick delay)
|
||||||
|
- Leaves veinmineable using shears
|
||||||
Code inspired by Inferis!
|
Code inspired by Inferis!
|
||||||

|

|
||||||
- Chat Calculator
|
- Chat Calculator
|
||||||
|
- Check if operator is present before calculating
|
||||||
|
- Replenish
|
||||||
|
|
||||||
|
|
||||||
### Commands
|
### Commands
|
||||||
- /spectator | Essentially server-side free-cam, you get put in spectator and are able to fly around, once you use the command again you get put back to where you were.
|
- /spectator | Essentially server-side free-cam, you get put in spectator and are able to fly around, once you use the command again you get put back to where you were.
|
||||||
@ -43,38 +48,26 @@ Code inspired by Inferis!
|
|||||||

|

|
||||||
- Remove game fog (lava, water, etc.)
|
- Remove game fog (lava, water, etc.)
|
||||||
- All types individually toggleable
|
- All types individually toggleable
|
||||||
- Mod Menu integration
|
|
||||||
- Automatic config adaption (currently booleans only)
|
|
||||||
- Remove darkness effect
|
- Remove darkness effect
|
||||||
- Toggleable
|
- Toggleable
|
||||||
- Keybinding for /spectator
|
- Keybinding for /spectator
|
||||||
|
- Render block entities from a longer range
|
||||||
# Currently working on
|
- Toggleable via GUI
|
||||||
|
- Configurable value
|
||||||
## Server Side
|
- In GUI
|
||||||
- [x] Chat Calculator
|
- Mod Menu integration
|
||||||
- [x] Check if operator is present before calculating
|
DISCLAIMER: this is NOT perfect and still needs to be reworked, I'm just too lazy right now...
|
||||||
- Vein Miner
|
|
||||||
- [x] Configurable animation (tick delay)
|
|
||||||
- [x] Leaves veinmineable using shears
|
|
||||||
- [x] Replenish
|
|
||||||
|
|
||||||
|
|
||||||
## Client Side
|
|
||||||
|
|
||||||
- [x] Render block entities from a longer range
|
|
||||||
- [x] Toggleable via GUI
|
|
||||||
- [x] Configurable value
|
|
||||||
- [x] In GUI
|
|
||||||
- [x] Rework Mod Menu integration to be more flexible
|
|
||||||
DISCLAIMER: this is NOT perfect and still needs to be reworked, I'm just too lazy right now...
|
|
||||||
- The following types are accepted:
|
- The following types are accepted:
|
||||||
- String
|
- String
|
||||||
- Boolean
|
- Boolean
|
||||||
- Float
|
- Float
|
||||||
- Integer
|
- Integer
|
||||||
- [x] Zoom
|
- Zoom
|
||||||
- [x] Configurable
|
- Configurable
|
||||||
|
- Smooth zoom
|
||||||
|
- Initial zoom value
|
||||||
|
- Zoom step value
|
||||||
|
- Scroll to zoom further
|
||||||
|
|
||||||
# To-do
|
# To-do
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import net.fabricmc.api.ClientModInitializer;
|
|||||||
import wtf.hak.survivalfabric.config.client.ClientConfigManager;
|
import wtf.hak.survivalfabric.config.client.ClientConfigManager;
|
||||||
import wtf.hak.survivalfabric.features.AngleViewer;
|
import wtf.hak.survivalfabric.features.AngleViewer;
|
||||||
import wtf.hak.survivalfabric.features.RemoveDarknessEffect;
|
import wtf.hak.survivalfabric.features.RemoveDarknessEffect;
|
||||||
import wtf.hak.survivalfabric.features.SFKeyBindings;
|
import wtf.hak.survivalfabric.features.CameraShortcut;
|
||||||
import wtf.hak.survivalfabric.features.Zoom;
|
import wtf.hak.survivalfabric.features.Zoom;
|
||||||
|
|
||||||
public class SurvivalFabricClient implements ClientModInitializer {
|
public class SurvivalFabricClient implements ClientModInitializer {
|
||||||
@ -18,7 +18,7 @@ public class SurvivalFabricClient implements ClientModInitializer {
|
|||||||
// Features
|
// Features
|
||||||
AngleViewer.register();
|
AngleViewer.register();
|
||||||
RemoveDarknessEffect.register();
|
RemoveDarknessEffect.register();
|
||||||
SFKeyBindings.register();
|
CameraShortcut.register();
|
||||||
Zoom.register();
|
Zoom.register();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,5 +15,6 @@ public class ClientConfig {
|
|||||||
public int blockEntityRange = 512;
|
public int blockEntityRange = 512;
|
||||||
public boolean smoothCamera = true;
|
public boolean smoothCamera = true;
|
||||||
public float initialZoom = 20f;
|
public float initialZoom = 20f;
|
||||||
|
public boolean scrollToZoom = true;
|
||||||
public float zoomStep = 2.5f;
|
public float zoomStep = 2.5f;
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ import net.minecraft.client.option.KeyBinding;
|
|||||||
import net.minecraft.client.util.InputUtil;
|
import net.minecraft.client.util.InputUtil;
|
||||||
import org.lwjgl.glfw.GLFW;
|
import org.lwjgl.glfw.GLFW;
|
||||||
|
|
||||||
public class SFKeyBindings {
|
public class CameraShortcut {
|
||||||
|
|
||||||
private static final KeyBinding CAMERA_BIND = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.survivalfabric.camera", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_PERIOD, "category.survivalfabric.survivalfabric"));
|
private static final KeyBinding CAMERA_BIND = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.survivalfabric.camera", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_PERIOD, "category.survivalfabric.survivalfabric"));
|
||||||
|
|
@ -8,6 +8,8 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import wtf.hak.survivalfabric.features.Zoom;
|
import wtf.hak.survivalfabric.features.Zoom;
|
||||||
|
|
||||||
|
import static wtf.hak.survivalfabric.config.client.ClientConfigManager.getConfig;
|
||||||
|
|
||||||
@Mixin(Mouse.class)
|
@Mixin(Mouse.class)
|
||||||
public class MouseMixin {
|
public class MouseMixin {
|
||||||
|
|
||||||
@ -16,7 +18,7 @@ public class MouseMixin {
|
|||||||
*/
|
*/
|
||||||
@Inject(method = "onMouseScroll", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "onMouseScroll", at = @At("HEAD"), cancellable = true)
|
||||||
private void onMouseScroll(long window, double horizontal, double vertical, CallbackInfo ci) {
|
private void onMouseScroll(long window, double horizontal, double vertical, CallbackInfo ci) {
|
||||||
if (Zoom.isZooming()) {
|
if (Zoom.isZooming() && getConfig().scrollToZoom) {
|
||||||
if (MinecraftClient.getInstance().player != null) {
|
if (MinecraftClient.getInstance().player != null) {
|
||||||
if (vertical > 0)
|
if (vertical > 0)
|
||||||
Zoom.modifyStep(-1);
|
Zoom.modifyStep(-1);
|
||||||
|
Reference in New Issue
Block a user