Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
Jill | 2cb79838d3 | |
Jill | 8a879c515e | |
Jill | 5661ef28b5 | |
Jill | 15c78acc15 | |
Jill | d7f36fb427 | |
Jill | 77954dd531 | |
Jill | 8cfe6beeb3 |
|
@ -2,13 +2,13 @@
|
|||
org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.18.2
|
||||
yarn_mappings=1.18.2+build.4
|
||||
minecraft_version=1.19.2
|
||||
yarn_mappings=1.19.2+build.28
|
||||
loader_version=0.14.10
|
||||
# Mod Properties
|
||||
mod_version=1.3+1.18
|
||||
mod_version=1.3+1.19
|
||||
maven_group=zone.oat.supersecretrevival
|
||||
archives_base_name=super-secret-revival
|
||||
# Dependencies
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.59.1+1.18.2
|
||||
fabric_version=0.64.0+1.19.2
|
||||
|
|
|
@ -6,7 +6,6 @@ import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
|
|||
import net.minecraft.client.option.KeyBinding;
|
||||
import net.minecraft.client.util.InputUtil;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import org.lwjgl.glfw.GLFW;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -15,7 +14,7 @@ public class Mod implements ClientModInitializer {
|
|||
public static final Logger LOGGER = LoggerFactory.getLogger("super-secret-revival");
|
||||
|
||||
// also used for identifying the button (Don't Worry about it)
|
||||
public static final Text BUTTON_TEXT = new TranslatableText("options.supersecretrevival.super_secret_settings");
|
||||
public static final Text BUTTON_TEXT = Text.translatable("options.supersecretrevival.super_secret_settings");
|
||||
|
||||
private static KeyBinding disableShaderKeybind = KeyBindingHelper.registerKeyBinding(new KeyBinding(
|
||||
"key.supersecretrevival.disable", // The translation key of the keybinding's name
|
||||
|
|
|
@ -6,15 +6,15 @@ import net.minecraft.client.world.ClientWorld;
|
|||
import net.minecraft.sound.SoundCategory;
|
||||
import net.minecraft.sound.SoundEvent;
|
||||
import net.minecraft.sound.SoundEvents;
|
||||
import net.minecraft.util.math.random.Random;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Random;
|
||||
|
||||
public class RandomSoundPlayer {
|
||||
|
||||
private static final Random RANDOM = new Random();
|
||||
private static final Random RANDOM = Random.create();
|
||||
|
||||
// prevent these sounds from playing
|
||||
//
|
||||
|
@ -25,6 +25,7 @@ public class RandomSoundPlayer {
|
|||
private static SoundEvent[] soundBlocklist = {
|
||||
SoundEvents.MUSIC_CREATIVE,
|
||||
SoundEvents.MUSIC_CREDITS,
|
||||
SoundEvents.MUSIC_DISC_5,
|
||||
SoundEvents.MUSIC_DISC_11,
|
||||
SoundEvents.MUSIC_DISC_13,
|
||||
SoundEvents.MUSIC_DISC_BLOCKS,
|
||||
|
@ -45,10 +46,14 @@ public class RandomSoundPlayer {
|
|||
SoundEvents.MUSIC_MENU,
|
||||
SoundEvents.MUSIC_NETHER_BASALT_DELTAS,
|
||||
SoundEvents.MUSIC_NETHER_CRIMSON_FOREST,
|
||||
SoundEvents.MUSIC_OVERWORLD_DEEP_DARK,
|
||||
SoundEvents.MUSIC_OVERWORLD_DRIPSTONE_CAVES,
|
||||
SoundEvents.MUSIC_OVERWORLD_GROVE,
|
||||
SoundEvents.MUSIC_OVERWORLD_JAGGED_PEAKS,
|
||||
SoundEvents.MUSIC_OVERWORLD_LUSH_CAVES,
|
||||
SoundEvents.MUSIC_OVERWORLD_SWAMP,
|
||||
SoundEvents.MUSIC_OVERWORLD_JUNGLE_AND_FOREST,
|
||||
SoundEvents.MUSIC_OVERWORLD_OLD_GROWTH_TAIGA,
|
||||
SoundEvents.MUSIC_OVERWORLD_MEADOW,
|
||||
SoundEvents.MUSIC_NETHER_NETHER_WASTES,
|
||||
SoundEvents.MUSIC_OVERWORLD_FROZEN_PEAKS,
|
||||
|
|
|
@ -5,8 +5,7 @@ import net.minecraft.util.Identifier;
|
|||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.gen.Accessor;
|
||||
import org.spongepowered.asm.mixin.gen.Invoker;
|
||||
|
||||
import java.util.Random;
|
||||
import net.minecraft.util.math.random.Random;
|
||||
|
||||
@Mixin(GameRenderer.class)
|
||||
public interface GameRendererAccessorMixin {
|
||||
|
|
|
@ -4,7 +4,6 @@ import net.minecraft.client.gui.screen.Screen;
|
|||
import net.minecraft.client.gui.screen.option.OptionsScreen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
|
|
|
@ -30,6 +30,6 @@
|
|||
"depends": {
|
||||
"fabricloader": ">=0.14.10",
|
||||
"fabric": "*",
|
||||
"minecraft": "~1.18"
|
||||
"minecraft": ["1.19", "1.19.1", "1.19.2"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue