This commit is contained in:
2024-10-04 20:00:56 +02:00
commit 69f9b5e431
57 changed files with 8385 additions and 0 deletions

9
.gitattributes vendored Normal file
View File

@@ -0,0 +1,9 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf
# These are Windows script files and should use crlf
*.bat text eol=crlf

37
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: build
on: [pull_request, push]
jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
21, # Current Java LTS
]
runs-on: ubuntu-22.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
- name: make gradle wrapper executable
run: chmod +x fabric/gradlew
- name: build
run: fabric/gradlew build
- name: capture build artifacts
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: fabric/build/libs/

10
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/fabric/.idea/modules/enoughmemory-1.21.1.client.iml" filepath="$PROJECT_DIR$/fabric/.idea/modules/enoughmemory-1.21.1.client.iml" />
<module fileurl="file://$PROJECT_DIR$/fabric/.idea/modules/enoughmemory-1.21.1.main.iml" filepath="$PROJECT_DIR$/fabric/.idea/modules/enoughmemory-1.21.1.main.iml" />
<module fileurl="file://$PROJECT_DIR$/fabric/.idea/modules/enoughmemory-1.21.1.test.iml" filepath="$PROJECT_DIR$/fabric/.idea/modules/enoughmemory-1.21.1.test.iml" />
</modules>
</component>
</project>

0
LICENSE Normal file
View File

BIN
README.md Normal file

Binary file not shown.

40
fabric/.gitignore vendored Normal file
View File

@@ -0,0 +1,40 @@
# gradle
.gradle/
build/
out/
classes/
# eclipse
*.launch
# idea
fabric/.idea/
*.iml
*.ipr
*.iws
# vscode
.settings/
.vscode/
bin/
.classpath
.project
# macos
*.DS_Store
# fabric
fabric/run/
# java
hs_err_*.log
replay_*.log
*.hprof
*.jfr

3
fabric/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

6
fabric/.idea/compiler.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="21" />
</component>
</project>

17
fabric/.idea/gradle.xml generated Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#JAVA_HOME" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>

55
fabric/.idea/jarRepositories.xml generated Normal file
View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="LoomLocalRemappedMods" />
<option name="name" value="LoomLocalRemappedMods" />
<option name="url" value="file:/$PROJECT_DIR$/.gradle/loom-cache/remapped_mods/" />
</remote-repository>
<remote-repository>
<option name="id" value="LoomGlobalMinecraft" />
<option name="name" value="LoomGlobalMinecraft" />
<option name="url" value="file:/$USER_HOME$/.gradle/caches/fabric-loom/minecraftMaven/" />
</remote-repository>
<remote-repository>
<option name="id" value="LoomLocalMinecraft" />
<option name="name" value="LoomLocalMinecraft" />
<option name="url" value="file:/$PROJECT_DIR$/.gradle/loom-cache/minecraftMaven/" />
</remote-repository>
<remote-repository>
<option name="id" value="Fabric" />
<option name="name" value="Fabric" />
<option name="url" value="https://maven.fabricmc.net/" />
</remote-repository>
<remote-repository>
<option name="id" value="Mojang" />
<option name="name" value="Mojang" />
<option name="url" value="https://libraries.minecraft.net/" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenRepo" />
<option name="name" value="MavenRepo" />
<option name="url" value="https://repo.maven.apache.org/maven2/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven" />
<option name="name" value="maven" />
<option name="url" value="https://maven.shedaniel.me/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven2" />
<option name="name" value="maven2" />
<option name="url" value="https://maven.terraformersmc.com/releases/" />
</remote-repository>
</component>
</project>

5
fabric/.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" project-jdk-name="21" project-jdk-type="JavaSDK" />
</project>

13
fabric/.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/enoughmemory-1.21.1.client.iml" filepath="$PROJECT_DIR$/.idea/modules/enoughmemory-1.21.1.client.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/enoughmemory-1.21.1.main.iml" filepath="$PROJECT_DIR$/.idea/modules/enoughmemory-1.21.1.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/enoughmemory-1.21.1.test.iml" filepath="$PROJECT_DIR$/.idea/modules/enoughmemory-1.21.1.test.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/fabric.client.iml" filepath="$PROJECT_DIR$/.idea/modules/fabric.client.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/fabric.main.iml" filepath="$PROJECT_DIR$/.idea/modules/fabric.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/fabric.test.iml" filepath="$PROJECT_DIR$/.idea/modules/fabric.test.iml" />
</modules>
</component>
</project>

View File

@@ -0,0 +1,14 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Minecraft Client" type="Application" factoryName="Application">
<option name="ALTERNATIVE_JRE_PATH" value="21" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" />
<option name="MAIN_CLASS_NAME" value="net.fabricmc.devlaunchinjector.Main" />
<module name="fabric.client" />
<shortenClasspath name="ARGS_FILE" />
<option name="VM_PARAMETERS" value="-Xms1g -Xmx1g -Dfabric.dli.config=D:\EnoughMemory\fabric\.gradle\loom-cache\launch.cfg -Dfabric.dli.env=client -Dfabric.dli.main=net.fabricmc.loader.impl.launch.knot.KnotClient" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/run/" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>

View File

@@ -0,0 +1,16 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" factoryName="Application" name="Minecraft Server" type="Application">
<option name="MAIN_CLASS_NAME" value="net.fabricmc.devlaunchinjector.Main"/>
<module name="enoughmemory-1.21.1.main"/>
<option name="PROGRAM_PARAMETERS" value="nogui"/>
<option name="VM_PARAMETERS" value="-Dfabric.dli.config=D:\enoughmemory-1.21.1\.gradle\loom-cache\launch.cfg -Dfabric.dli.env=server -Dfabric.dli.main=net.fabricmc.loader.impl.launch.knot.KnotServer"/>
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/run/"/>
<method v="2">
<option enabled="true" name="Make"/>
</method>
<envs>
</envs>
<shortenClasspath name="ARGS_FILE"/>
<classpathModifications><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpcore\4.4.16\51cf043c87253c9f58b539c9f7e44c8894223850\httpcore-4.4.16.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\com.mojang\patchy\2.2.10\da05971b07cbb379d002cf7eaec6a2048211fefc\patchy-2.2.10.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-glfw\3.3.3\efa1eb78c5ccd840e9f329717109b5e892d72f8e\lwjgl-glfw-3.3.3.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\com.mojang\text2speech\1.17.9\3cad216e3a7f0c19b4b394388bc9ffc446f13b14\text2speech-1.17.9.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpclient\4.5.13\e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada\httpclient-4.5.13.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\commons-logging\commons-logging\1.2\4bfc12adfe4842bf07b657f0369c4cb522955686\commons-logging-1.2.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\com.ibm.icu\icu4j\73.2\61ad4ef7f9131fcf6d25c34b817f90d6da06c9e9\icu4j-73.2.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-jemalloc\3.3.3\b543467b7ff3c6920539a88ee602d34098628be5\lwjgl-jemalloc-3.3.3.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl\3.3.3\29589b5f87ed335a6c7e7ee6a5775f81f97ecb84\lwjgl-3.3.3.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\commons-codec\commons-codec\1.16.0\4e3eb3d79888d76b54e28b350915b5dc3919c9de\commons-codec-1.16.0.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-tinyfd\3.3.3\82d755ca94b102e9ca77283b9e2dc46d1b15fbe5\lwjgl-tinyfd-3.3.3.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.jcraft\jorbis\0.0.17\8872d22b293e8f5d7d56ff92be966e6dc28ebdc6\jorbis-0.0.17.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-openal\3.3.3\daada81ceb5fc0c291fbfdd4433cb8d9423577f2\lwjgl-openal-3.3.3.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-opengl\3.3.3\2f6b0147078396a58979125a4c947664e98293a\lwjgl-opengl-3.3.3.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-freetype\3.3.3\a0db6c84a8becc8ca05f9dbfa985edc348a824c7\lwjgl-freetype-3.3.3.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-stb\3.3.3\25dd6161988d7e65f71d5065c99902402ee32746\lwjgl-stb-3.3.3.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\com.mojang\blocklist\1.0.10\5c685c5ffa94c4cd39496c7184c1d122e515ecef\blocklist-1.0.10.jar"/><entry exclude="true" path="C:\Users\yanni\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-compress\1.26.0\659feffdd12280201c8aacb8f7be94f9a883c824\commons-compress-1.26.0.jar"/></classpathModifications></configuration>
</component>

124
fabric/.idea/uiDesigner.xml generated Normal file
View File

@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

85
fabric/build.gradle Normal file
View File

@@ -0,0 +1,85 @@
plugins {
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
}
repositories {
mavenCentral()
maven { url "https://maven.shedaniel.me/" }
maven { url "https://maven.terraformersmc.com/releases/" }
}
loom {
splitEnvironmentSourceSets()
mods {
"enoughmemory" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
implementation 'com.moandjiezana.toml:toml4j:0.7.2'
modApi "me.shedaniel.cloth:cloth-config-fabric:15.0.140"
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
}
// configure the maven publication
publishing {
publications {
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
}
}

17
fabric/gradle.properties Normal file
View File

@@ -0,0 +1,17 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.5
# Mod Properties
mod_version=1.0.0
maven_group=com.vaporvee.enoughmemory
archives_base_name=enoughmemory
# Dependencies
fabric_version=0.105.0+1.21.1

BIN
fabric/gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

252
fabric/gradlew vendored Normal file
View File

@@ -0,0 +1,252 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"

94
fabric/gradlew.bat vendored Normal file
View File

@@ -0,0 +1,94 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

View File

@@ -0,0 +1,3 @@
minMemory = 4.0
errorTitle = "Error: Not enough Java memory!"
errorDescription = "Please allocate at least {minMemory} GB of Java memory to your Minecraft Instance!"

View File

@@ -0,0 +1,9 @@
#Indigo properties file
#Fri Oct 04 19:57:09 CEST 2024
always-tesselate-blocks=auto
ambient-occlusion-mode=hybrid
debug-compare-lighting=auto
fix-exterior-vertex-lighting=auto
fix-luminous-block-ambient-occlusion=auto
fix-mean-light-calculation=auto
fix-smooth-lighting-offset=auto

View File

@@ -0,0 +1,31 @@
{
"sorting": "ascending",
"count_libraries": true,
"compact_list": false,
"count_children": true,
"mods_button_style": "classic",
"game_menu_button_style": "replace",
"count_hidden_mods": true,
"mod_count_location": "title_screen",
"hide_mod_links": false,
"show_libraries": false,
"hide_mod_license": false,
"hide_badges": false,
"hide_mod_credits": false,
"easter_eggs": true,
"random_java_colors": false,
"translate_names": true,
"translate_descriptions": true,
"update_checker": true,
"button_update_badge": true,
"update_channel": "release",
"quick_configure": true,
"modify_title_screen": true,
"modify_game_menu": true,
"hide_config_buttons": false,
"config_mode": false,
"disable_drag_and_drop": false,
"hidden_mods": [],
"hidden_configs": [],
"disable_update_checker": []
}

View File

@@ -0,0 +1,239 @@
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 2024-10-04 04:04:37
Description: Initializing game
java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'enoughmemory' at 'com.vaporvee.enoughmemory.EnoughMemoryClient'!
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:403)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:401)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:477)
at net.minecraft.client.main.Main.main(Main.java:239)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.awt.HeadlessException
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164)
at java.desktop/java.awt.Window.<init>(Window.java:553)
at java.desktop/java.awt.Frame.<init>(Frame.java:428)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:224)
at com.vaporvee.enoughmemory.EnoughMemoryClient.onInitializeClient(EnoughMemoryClient.java:10)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:399)
... 7 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:403)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:401)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:477)
-- Initialization --
Details:
Modules:
ADVAPI32.dll:Advanced Windows 32 Base API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
COMCTL32.dll:User Experience Controls Library:6.10 (WinBuild.160101.0800):Microsoft Corporation
CRYPT32.dll:Crypto API32:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
CRYPTBASE.dll:Base cryptographic API DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
CRYPTSP.dll:Cryptographic Service Provider API:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
DBGHELP.DLL:Windows Image Helper:10.0.22621.3593 (WinBuild.160101.0800):Microsoft Corporation
DNSAPI.dll:DNS Client API DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
GDI32.dll:GDI Client DLL:10.0.22621.4036 (WinBuild.160101.0800):Microsoft Corporation
IMM32.DLL:Multi-User Windows IMM32 API Client DLL:10.0.22621.3374 (WinBuild.160101.0800):Microsoft Corporation
IPHLPAPI.DLL:IP Helper API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
KERNEL32.DLL:Windows NT BASE API Client DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
KERNELBASE.dll:Windows NT BASE API Client DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
MpOav.dll:IOfficeAntiVirus Module:4.18.24080.9 (f49fb7de0d838aeebbdbd940314a35a90705840e):Microsoft Corporation
NSI.dll:NSI User-mode interface DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
NTASN1.dll:Microsoft ASN.1 API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
OLEAUT32.dll:OLEAUT32.DLL:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
Ole32.dll:Microsoft OLE for Windows:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
POWRPROF.dll:Power Profile Helper DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
PSAPI.DLL:Process Status Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
Pdh.dll:Windows Performance Data Helper DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
RPCRT4.dll:Remote Procedure Call Runtime:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
SHCORE.dll:SHCORE:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
SHELL32.dll:Windows Shell Common Dll:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
UMPDC.dll:User Mode Power Dependency Coordinator:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
USER32.dll:Multi-User Windows USER API Client DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
USERENV.dll:Userenv:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
VCRUNTIME140.dll:Microsoft® C Runtime Library:14.36.32532.0:Microsoft Corporation
VERSION.dll:Version Checking and File Installation Libraries:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
WINHTTP.dll:Windows HTTP Services:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
WINMM.dll:MCI API DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
WS2_32.dll:Windows Socket 2.0 32-Bit DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
amsi.dll:Anti-Malware Scan Interface:10.0.22621.3527 (WinBuild.160101.0800):Microsoft Corporation
apphelp.dll:Application Compatibility Client Library:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
awt.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
bcrypt.dll:Windows Cryptographic Primitives Library:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
bcryptPrimitives.dll:Windows Cryptographic Primitives Library:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
clbcatq.dll:COM+ Configuration Catalog:2001.12.10941.16384 (WinBuild.160101.0800):Microsoft Corporation
combase.dll:Microsoft COM for Windows:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
dbgcore.DLL:Windows Core Debugging Helpers:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
extnet.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
fwpuclnt.dll:FWP/IPsec User-Mode API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
gdi32full.dll:GDI Client DLL:10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
java.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
java.exe:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
jemalloc.dll
jimage.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
jli.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
jna2171288609576403717.dll:JNA native library:7.0.0:Java(TM) Native Access (JNA)
jsvml.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
jvm.dll:OpenJDK 64-Bit server VM:21.0.4.0:Eclipse Adoptium
kernel.appcore.dll:AppModel API Host:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
lwjgl.dll
management.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
management_ext.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
msvcp140.dll:Microsoft® C Runtime Library:14.36.32532.0:Microsoft Corporation
msvcp_win.dll:Microsoft® C Runtime Library:10.0.22621.3374 (WinBuild.160101.0800):Microsoft Corporation
msvcrt.dll:Windows NT CRT DLL:7.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
mswsock.dll:Microsoft Windows Sockets 2.0 Service Provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
napinsp.dll:E-mail Naming Shim Provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
ncrypt.dll:Windows NCrypt Router:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
net.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
nio.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
nlansp_c.dll:NLA Namespace Service Provider DLL:10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
ntdll.dll:NT Layer DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
perfos.dll:Windows System Performance Objects DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
pfclient.dll:SysMain Client:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
pnrpnsp.dll:PNRP Name Space Provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
profapi.dll:User Profile Basic API:10.0.22621.4111 (WinBuild.160101.0800):Microsoft Corporation
rasadhlp.dll:Remote Access AutoDial Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
rsaenh.dll:Microsoft Enhanced Cryptographic Provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
sechost.dll:Host for SCM/SDDL/LSA Lookup APIs:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
shlwapi.dll:Shell Light-weight Utility Library:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
sunmscapi.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
ucrtbase.dll:Microsoft® C Runtime Library:10.0.22621.3593 (WinBuild.160101.0800):Microsoft Corporation
vcruntime140_1.dll:Microsoft® C Runtime Library:14.36.32532.0:Microsoft Corporation
verify.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
win32u.dll:Win32u:10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
windows.storage.dll:Microsoft WinRT Storage API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
winrnr.dll:LDAP RnR Provider DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
wintypes.dll:Windows Base Types DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
wshbth.dll:Windows Sockets Helper DLL:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
zip.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:239)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
-- System Details --
Details:
Minecraft Version: 1.21.1
Minecraft Version ID: 1.21.1
Operating System: Windows 11 (amd64) version 10.0
Java Version: 21.0.4, Eclipse Adoptium
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium
Memory: 126642176 bytes (120 MiB) / 385875968 bytes (368 MiB) up to 4269801472 bytes (4072 MiB)
CPUs: 16
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 7 3700X 8-Core Processor
Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
Microarchitecture: Zen 2
Frequency (GHz): 3.60
Number of physical packages: 1
Number of physical CPUs: 8
Number of logical CPUs: 16
Graphics card #0 name: NVIDIA GeForce GTX 1650
Graphics card #0 vendor: NVIDIA
Graphics card #0 VRAM (MiB): 4096.00
Graphics card #0 deviceId: VideoController1
Graphics card #0 versionInfo: 32.0.15.6094
Memory slot #0 capacity (MiB): 8192.00
Memory slot #0 clockSpeed (GHz): 3.00
Memory slot #0 type: DDR4
Memory slot #1 capacity (MiB): 8192.00
Memory slot #1 clockSpeed (GHz): 3.00
Memory slot #1 type: DDR4
Virtual memory max (MiB): 34719.13
Virtual memory used (MiB): 20813.04
Swap memory total (MiB): 18432.00
Swap memory used (MiB): 236.82
Space in storage for jna.tmpdir (MiB): <path not set>
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): <path not set>
Space in storage for io.netty.native.workdir (MiB): <path not set>
Space in storage for java.io.tmpdir (MiB): available: 785149.81, total: 1906890.00
Space in storage for workdir (MiB): available: 33717.72, total: 51136.00
JVM Flags: 0 total;
Fabric Mods:
enoughmemory: Enough Memory 1.0.0
fabric-api: Fabric API 0.105.0+1.21.1
fabric-api-base: Fabric API Base 0.4.42+6573ed8c19
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.68+b559734419
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.29+5bd9f1bc19
fabric-block-api-v1: Fabric Block API (v1) 1.0.22+0af3f5a719
fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.10+6573ed8c19
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.52+0af3f5a719
fabric-client-tags-api-v1: Fabric Client Tags 1.1.15+6573ed8c19
fabric-command-api-v1: Fabric Command API (v1) 1.2.49+f71b366f19
fabric-command-api-v2: Fabric Command API (v2) 2.2.28+6ced4dd919
fabric-commands-v0: Fabric Commands (v0) 0.2.66+df3654b319
fabric-content-registries-v0: Fabric Content Registries (v0) 8.0.16+b559734419
fabric-convention-tags-v1: Fabric Convention Tags 2.0.23+7f945d5b19
fabric-convention-tags-v2: Fabric Convention Tags (v2) 2.8.0+9d22c5fd19
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.29+0af3f5a719
fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.1.28+1daea21519
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 20.2.20+16c4ae2519
fabric-dimensions-v1: Fabric Dimensions API (v1) 4.0.0+6fc22b9919
fabric-entity-events-v1: Fabric Entity Events (v1) 1.7.0+2122d82819
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.13+ba9dae0619
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.53+6ced4dd919
fabric-gametest-api-v1: Fabric Game Test API (v1) 2.0.4+6fc22b9919
fabric-item-api-v1: Fabric Item API (v1) 11.1.0+d5debaed19
fabric-item-group-api-v1: Fabric Item Group API (v1) 4.1.5+3fc0e55219
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.47+0af3f5a719
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.45+df3654b319
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.3.12+6c1df36019
fabric-loot-api-v2: Fabric Loot API (v2) 3.0.14+3f89f5a519
fabric-loot-api-v3: Fabric Loot API (v3) 1.0.2+3f89f5a519
fabric-message-api-v1: Fabric Message API (v1) 6.0.13+6573ed8c19
fabric-model-loading-api-v1: Fabric Model Loading API (v1) 2.0.0+fe474d6b19
fabric-networking-api-v1: Fabric Networking API (v1) 4.3.0+c7469b2119
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 15.2.0+40875a9319
fabric-particles-v1: Fabric Particles (v1) 4.0.2+6573ed8c19
fabric-recipe-api-v1: Fabric Recipe API (v1) 5.0.13+6508971219
fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.1.3+60c3209b19
fabric-renderer-api-v1: Fabric Renderer API (v1) 3.4.0+c705a49c19
fabric-renderer-indigo: Fabric Renderer - Indigo 1.7.0+c705a49c19
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.68+df3654b319
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.48+73761d2e19
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.6+1daea21519
fabric-rendering-v0: Fabric Rendering (v0) 1.1.71+df3654b319
fabric-rendering-v1: Fabric Rendering (v1) 5.0.5+df16efd019
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 4.3.0+8dc279b119
fabric-resource-loader-v0: Fabric Resource Loader (v0) 1.3.0+5659912919
fabric-screen-api-v1: Fabric Screen API (v1) 2.0.25+8b68f1c719
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.87+b559734419
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.23+6573ed8c19
fabric-transfer-api-v1: Fabric Transfer API (v1) 5.3.0+d831205f19
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.1.0+1daea21519
fabricloader: Fabric Loader 0.16.5
java: OpenJDK 64-Bit Server VM 21
minecraft: Minecraft 1.21.1
mixinextras: MixinExtras 0.4.1
Launched Version: Fabric
Backend library: LWJGL version 3.3.3-snapshot
Backend API: Unknown
Window size: <not initialized>
GFLW Platform: <error>
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages: <disabled>
Is Modded: Definitely; Client brand changed to 'fabric'
Universe: 404
Type: Client (map_client.txt)
Locale: en_US
System encoding: Cp1252
File encoding: UTF-8
CPU: <unknown>

View File

@@ -0,0 +1,282 @@
---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.
Time: 2024-10-04 04:25:30
Description: Initializing game
java.awt.HeadlessException
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164)
at java.desktop/java.awt.Window.<init>(Window.java:553)
at java.desktop/java.awt.Frame.<init>(Frame.java:428)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:224)
at com.vaporvee.enoughmemory.AfterInit.afterInit(AfterInit.java:14)
at net.fabricmc.fabric.api.client.screen.v1.ScreenEvents.lambda$static$2(ScreenEvents.java:101)
at net.minecraft.client.gui.screen.Screen.afterInit(Screen.java:1331)
at net.minecraft.client.gui.screen.Screen.handler$zle000$fabric-screen-api-v1$afterInitScreen(Screen.java:1284)
at net.minecraft.client.gui.screen.Screen.init(Screen.java:318)
at net.minecraft.client.MinecraftClient.setScreen(MinecraftClient.java:1143)
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:687)
at net.minecraft.client.main.Main.main(Main.java:239)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164)
at java.desktop/java.awt.Window.<init>(Window.java:553)
at java.desktop/java.awt.Frame.<init>(Frame.java:428)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:224)
at com.vaporvee.enoughmemory.AfterInit.afterInit(AfterInit.java:14)
at net.fabricmc.fabric.api.client.screen.v1.ScreenEvents.lambda$static$2(ScreenEvents.java:101)
at net.minecraft.client.gui.screen.Screen.afterInit(Screen.java:1331)
at net.minecraft.client.gui.screen.Screen.handler$zle000$fabric-screen-api-v1$afterInitScreen(Screen.java:1284)
at net.minecraft.client.gui.screen.Screen.init(Screen.java:318)
at net.minecraft.client.MinecraftClient.setScreen(MinecraftClient.java:1143)
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:687)
-- Initialization --
Details:
Modules:
ADVAPI32.dll:Advanced Windows 32 Base API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
COMCTL32.dll:User Experience Controls Library:6.10 (WinBuild.160101.0800):Microsoft Corporation
CRYPT32.dll:Crypto API32:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
CRYPTBASE.dll:Base cryptographic API DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
CRYPTSP.dll:Cryptographic Service Provider API:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
CoreMessaging.dll:Microsoft CoreMessaging Dll:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
CoreUIComponents.dll:Microsoft Core UI Components Dll:10.0.22621.3672:Microsoft Corporation
DBGHELP.DLL:Windows Image Helper:10.0.22621.3593 (WinBuild.160101.0800):Microsoft Corporation
DEVOBJ.dll:Device Information Set DLL:10.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
DNSAPI.dll:DNS Client API DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
GDI32.dll:GDI Client DLL:10.0.22621.4036 (WinBuild.160101.0800):Microsoft Corporation
GLU32.dll:OpenGL Utility Library DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
IMM32.DLL:Multi-User Windows IMM32 API Client DLL:10.0.22621.3374 (WinBuild.160101.0800):Microsoft Corporation
IPHLPAPI.DLL:IP Helper API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
KERNEL32.DLL:Windows NT BASE API Client DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
KERNELBASE.dll:Windows NT BASE API Client DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
MMDevApi.dll:MMDevice API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
MSCTF.dll:MSCTF Server DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
MpOav.dll:IOfficeAntiVirus Module:4.18.24080.9 (f49fb7de0d838aeebbdbd940314a35a90705840e):Microsoft Corporation
NSI.dll:NSI User-mode interface DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
NTASN1.dll:Microsoft ASN.1 API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
OLEAUT32.dll:OLEAUT32.DLL:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
Ole32.dll:Microsoft OLE for Windows:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
OpenAL.dll:Main implementation library:1.23.1:
POWRPROF.dll:Power Profile Helper DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
PSAPI.DLL:Process Status Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
Pdh.dll:Windows Performance Data Helper DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
RPCRT4.dll:Remote Procedure Call Runtime:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
SETUPAPI.dll:Windows Setup API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
SHCORE.dll:SHCORE:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
SHELL32.dll:Windows Shell Common Dll:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
UMPDC.dll:User Mode Power Dependency Coordinator:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
USER32.dll:Multi-User Windows USER API Client DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
USERENV.dll:Userenv:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
VCRUNTIME140.dll:Microsoft® C Runtime Library:14.36.32532.0:Microsoft Corporation
VERSION.dll:Version Checking and File Installation Libraries:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
WINHTTP.dll:Windows HTTP Services:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
WINMM.dll:MCI API DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
WINSTA.dll:Winstation Library:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
WINTRUST.dll:Microsoft Trust Verification APIs:10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
WS2_32.dll:Windows Socket 2.0 32-Bit DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
WTSAPI32.dll:Windows Remote Desktop Session Host Server SDK APIs:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
amsi.dll:Anti-Malware Scan Interface:10.0.22621.3527 (WinBuild.160101.0800):Microsoft Corporation
apphelp.dll:Application Compatibility Client Library:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
awt.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
bcrypt.dll:Windows Cryptographic Primitives Library:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
bcryptPrimitives.dll:Windows Cryptographic Primitives Library:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
cfgmgr32.dll:Configuration Manager DLL:10.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
clbcatq.dll:COM+ Configuration Catalog:2001.12.10941.16384 (WinBuild.160101.0800):Microsoft Corporation
combase.dll:Microsoft COM for Windows:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
cryptnet.dll:Crypto Network Related API:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
dbgcore.DLL:Windows Core Debugging Helpers:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
dinput8.dll:Microsoft DirectInput:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
drvstore.dll:Driver Store API:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
dwmapi.dll:Microsoft Desktop Window Manager API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
dxcore.dll:DXCore:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
extnet.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
fastprox.dll:WMI Custom Marshaller:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
fwpuclnt.dll:FWP/IPsec User-Mode API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
gdi32full.dll:GDI Client DLL:10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
glfw.dll:GLFW 3.4.0 DLL:3.4.0:GLFW
icm32.dll:Microsoft Color Management Module (CMM):10.0.22621.3880 (WinBuild.160101.0800):Microsoft Corporation
imagehlp.dll:Windows NT Image Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
inputhost.dll:InputHost:10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
java.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
java.exe:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
jemalloc.dll
jimage.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
jli.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
jna8023426324017915601.dll:JNA native library:7.0.0:Java(TM) Native Access (JNA)
jsvml.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
jvm.dll:OpenJDK 64-Bit server VM:21.0.4.0:Eclipse Adoptium
kernel.appcore.dll:AppModel API Host:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
lwjgl.dll
lwjgl_opengl.dll
lwjgl_stb.dll
management.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
management_ext.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
msasn1.dll:ASN.1 Runtime APIs:10.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
mscms.dll:Microsoft Color Matching System DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
msvcp140.dll:Microsoft® C Runtime Library:14.36.32532.0:Microsoft Corporation
msvcp_win.dll:Microsoft® C Runtime Library:10.0.22621.3374 (WinBuild.160101.0800):Microsoft Corporation
msvcrt.dll:Windows NT CRT DLL:7.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
mswsock.dll:Microsoft Windows Sockets 2.0 Service Provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
napinsp.dll:E-mail Naming Shim Provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
ncrypt.dll:Windows NCrypt Router:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
net.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
nio.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
nlansp_c.dll:NLA Namespace Service Provider DLL:10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
ntdll.dll:NT Layer DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
ntmarta.dll:Windows NT MARTA provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
nvgpucomp64.dll:NVIDIA GPU Compiler Driver, Version 560.94 :32.0.15.6094:NVIDIA Corporation
nvoglv64.dll:NVIDIA Compatible OpenGL ICD:32.0.15.6094:NVIDIA Corporation
nvspcap64.dll:NVIDIA Game Proxy:3.28.0.417:NVIDIA Corporation
opengl32.dll:OpenGL Client DLL:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
perfos.dll:Windows System Performance Objects DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
pfclient.dll:SysMain Client:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
pnrpnsp.dll:PNRP Name Space Provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
profapi.dll:User Profile Basic API:10.0.22621.4111 (WinBuild.160101.0800):Microsoft Corporation
rasadhlp.dll:Remote Access AutoDial Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
rsaenh.dll:Microsoft Enhanced Cryptographic Provider:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
sapi.dll:Speech API:5.3.29728.00 (WinBuild.160101.0800):Microsoft Corporation
sechost.dll:Host for SCM/SDDL/LSA Lookup APIs:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
shlwapi.dll:Shell Light-weight Utility Library:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
sunmscapi.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
textinputframework.dll:"TextInputFramework.DYNLINK":10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
ucrtbase.dll:Microsoft® C Runtime Library:10.0.22621.3593 (WinBuild.160101.0800):Microsoft Corporation
uxtheme.dll:Microsoft UxTheme Library:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
vcruntime140_1.dll:Microsoft® C Runtime Library:14.36.32532.0:Microsoft Corporation
verify.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
wbemcomn.dll:WMI:10.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
wbemprox.dll:WMI:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
wbemsvc.dll:WMI:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
win32u.dll:Win32u:10.0.22621.4249 (WinBuild.160101.0800):Microsoft Corporation
windows.storage.dll:Microsoft WinRT Storage API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
winrnr.dll:LDAP RnR Provider DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
wintypes.dll:Windows Base Types DLL:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
wldp.dll:Windows Lockdown Policy:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
wshbth.dll:Windows Sockets Helper DLL:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
xinput1_4.dll:Microsoft Common Controller API:10.0.22621.4315 (WinBuild.160101.0800):Microsoft Corporation
zip.dll:OpenJDK Platform binary:21.0.4.0:Eclipse Adoptium
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:239)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
-- System Details --
Details:
Minecraft Version: 1.21.1
Minecraft Version ID: 1.21.1
Operating System: Windows 11 (amd64) version 10.0
Java Version: 21.0.4, Eclipse Adoptium
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium
Memory: 162891240 bytes (155 MiB) / 446693376 bytes (426 MiB) up to 4269801472 bytes (4072 MiB)
CPUs: 16
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 7 3700X 8-Core Processor
Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
Microarchitecture: Zen 2
Frequency (GHz): 3.60
Number of physical packages: 1
Number of physical CPUs: 8
Number of logical CPUs: 16
Graphics card #0 name: NVIDIA GeForce GTX 1650
Graphics card #0 vendor: NVIDIA
Graphics card #0 VRAM (MiB): 4096.00
Graphics card #0 deviceId: VideoController1
Graphics card #0 versionInfo: 32.0.15.6094
Memory slot #0 capacity (MiB): 8192.00
Memory slot #0 clockSpeed (GHz): 3.00
Memory slot #0 type: DDR4
Memory slot #1 capacity (MiB): 8192.00
Memory slot #1 clockSpeed (GHz): 3.00
Memory slot #1 type: DDR4
Virtual memory max (MiB): 34719.13
Virtual memory used (MiB): 22354.51
Swap memory total (MiB): 18432.00
Swap memory used (MiB): 253.27
Space in storage for jna.tmpdir (MiB): <path not set>
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): <path not set>
Space in storage for io.netty.native.workdir (MiB): <path not set>
Space in storage for java.io.tmpdir (MiB): available: 785073.13, total: 1906890.00
Space in storage for workdir (MiB): available: 33718.09, total: 51136.00
JVM Flags: 0 total;
Fabric Mods:
enoughmemory: Enough Memory 1.0.0
fabric-api: Fabric API 0.105.0+1.21.1
fabric-api-base: Fabric API Base 0.4.42+6573ed8c19
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.68+b559734419
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.29+5bd9f1bc19
fabric-block-api-v1: Fabric Block API (v1) 1.0.22+0af3f5a719
fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.10+6573ed8c19
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.52+0af3f5a719
fabric-client-tags-api-v1: Fabric Client Tags 1.1.15+6573ed8c19
fabric-command-api-v1: Fabric Command API (v1) 1.2.49+f71b366f19
fabric-command-api-v2: Fabric Command API (v2) 2.2.28+6ced4dd919
fabric-commands-v0: Fabric Commands (v0) 0.2.66+df3654b319
fabric-content-registries-v0: Fabric Content Registries (v0) 8.0.16+b559734419
fabric-convention-tags-v1: Fabric Convention Tags 2.0.23+7f945d5b19
fabric-convention-tags-v2: Fabric Convention Tags (v2) 2.8.0+9d22c5fd19
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.29+0af3f5a719
fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.1.28+1daea21519
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 20.2.20+16c4ae2519
fabric-dimensions-v1: Fabric Dimensions API (v1) 4.0.0+6fc22b9919
fabric-entity-events-v1: Fabric Entity Events (v1) 1.7.0+2122d82819
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.13+ba9dae0619
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.53+6ced4dd919
fabric-gametest-api-v1: Fabric Game Test API (v1) 2.0.4+6fc22b9919
fabric-item-api-v1: Fabric Item API (v1) 11.1.0+d5debaed19
fabric-item-group-api-v1: Fabric Item Group API (v1) 4.1.5+3fc0e55219
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.47+0af3f5a719
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.45+df3654b319
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.3.12+6c1df36019
fabric-loot-api-v2: Fabric Loot API (v2) 3.0.14+3f89f5a519
fabric-loot-api-v3: Fabric Loot API (v3) 1.0.2+3f89f5a519
fabric-message-api-v1: Fabric Message API (v1) 6.0.13+6573ed8c19
fabric-model-loading-api-v1: Fabric Model Loading API (v1) 2.0.0+fe474d6b19
fabric-networking-api-v1: Fabric Networking API (v1) 4.3.0+c7469b2119
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 15.2.0+40875a9319
fabric-particles-v1: Fabric Particles (v1) 4.0.2+6573ed8c19
fabric-recipe-api-v1: Fabric Recipe API (v1) 5.0.13+6508971219
fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.1.3+60c3209b19
fabric-renderer-api-v1: Fabric Renderer API (v1) 3.4.0+c705a49c19
fabric-renderer-indigo: Fabric Renderer - Indigo 1.7.0+c705a49c19
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.68+df3654b319
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.48+73761d2e19
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.6+1daea21519
fabric-rendering-v0: Fabric Rendering (v0) 1.1.71+df3654b319
fabric-rendering-v1: Fabric Rendering (v1) 5.0.5+df16efd019
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 4.3.0+8dc279b119
fabric-resource-loader-v0: Fabric Resource Loader (v0) 1.3.0+5659912919
fabric-screen-api-v1: Fabric Screen API (v1) 2.0.25+8b68f1c719
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.87+b559734419
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.23+6573ed8c19
fabric-transfer-api-v1: Fabric Transfer API (v1) 5.3.0+d831205f19
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.1.0+1daea21519
fabricloader: Fabric Loader 0.16.5
java: OpenJDK 64-Bit Server VM 21
minecraft: Minecraft 1.21.1
mixinextras: MixinExtras 0.4.1
Launched Version: Fabric
Backend library: LWJGL version 3.3.3-snapshot
Backend API: NVIDIA GeForce GTX 1650/PCIe/SSE2 GL version 3.2.0 NVIDIA 560.94, NVIDIA Corporation
Window size: <not initialized>
GFLW Platform: win32
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages:
Is Modded: Definitely; Client brand changed to 'fabric'
Universe: 404
Type: Client (map_client.txt)
Locale: en_US
System encoding: Cp1252
File encoding: UTF-8
CPU: 16x AMD Ryzen 7 3700X 8-Core Processor

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

1923
fabric/run/logs/debug.log Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,98 @@
[19:56:56] [main/WARN] (FabricLoader/Knot) Class path entries reference missing files: D:\EnoughMemory\fabric\build\resources\client - the game may not load properly!
[19:56:56] [main/INFO] (FabricLoader/GameProvider) Loading Minecraft 1.21.1 with Fabric Loader 0.16.5
[19:56:56] [main/INFO] (FabricLoader) Loading 59 mods:
- cloth-basic-math 0.6.1
- cloth-config 15.0.140
- enoughmemory 1.0.0
- fabric-api 0.105.0+1.21.1
- fabric-api-base 0.4.42+6573ed8cd1
- fabric-api-lookup-api-v1 1.6.68+b559734419
- fabric-biome-api-v1 13.0.29+5bd9f1bc19
- fabric-block-api-v1 1.0.22+0af3f5a719
- fabric-block-view-api-v2 1.0.10+6573ed8c19
- fabric-blockrenderlayer-v1 1.1.52+0af3f5a719
- fabric-client-tags-api-v1 1.1.15+6573ed8c19
- fabric-command-api-v1 1.2.49+f71b366f19
- fabric-command-api-v2 2.2.28+6ced4dd919
- fabric-commands-v0 0.2.66+df3654b319
- fabric-content-registries-v0 8.0.16+b559734419
- fabric-convention-tags-v1 2.0.23+7f945d5b19
- fabric-convention-tags-v2 2.8.0+9d22c5fd19
- fabric-crash-report-info-v1 0.2.29+0af3f5a719
- fabric-data-attachment-api-v1 1.1.28+1daea21519
- fabric-data-generation-api-v1 20.2.20+16c4ae2519
- fabric-dimensions-v1 4.0.0+6fc22b9919
- fabric-entity-events-v1 1.7.0+2122d82819
- fabric-events-interaction-v0 0.7.13+ba9dae0619
- fabric-game-rule-api-v1 1.0.53+6ced4dd919
- fabric-gametest-api-v1 2.0.4+6fc22b9919
- fabric-item-api-v1 11.1.0+d5debaed19
- fabric-item-group-api-v1 4.1.5+3fc0e55219
- fabric-key-binding-api-v1 1.0.47+0af3f5a719
- fabric-keybindings-v0 0.2.45+df3654b319
- fabric-lifecycle-events-v1 2.3.12+6c1df36019
- fabric-loot-api-v2 3.0.14+3f89f5a519
- fabric-loot-api-v3 1.0.2+3f89f5a519
- fabric-message-api-v1 6.0.13+6573ed8c19
- fabric-model-loading-api-v1 2.0.0+fe474d6b19
- fabric-networking-api-v1 4.3.0+c7469b2119
- fabric-object-builder-api-v1 15.2.0+40875a9319
- fabric-particles-v1 4.0.2+6573ed8c19
- fabric-recipe-api-v1 5.0.13+6508971219
- fabric-registry-sync-v0 5.1.3+60c3209b19
- fabric-renderer-api-v1 3.4.0+c705a49c19
- fabric-renderer-indigo 1.7.0+c705a49c19
- fabric-renderer-registries-v1 3.2.68+df3654b319
- fabric-rendering-data-attachment-v1 0.3.48+73761d2e19
- fabric-rendering-fluids-v1 3.1.6+1daea21519
- fabric-rendering-v0 1.1.71+df3654b319
- fabric-rendering-v1 5.0.5+df16efd019
- fabric-resource-conditions-api-v1 4.3.0+8dc279b119
- fabric-resource-loader-v0 1.3.0+5659912919
- fabric-screen-api-v1 2.0.25+8b68f1c719
- fabric-screen-handler-api-v1 1.3.87+b559734419
- fabric-sound-api-v1 1.0.23+6573ed8c19
- fabric-transfer-api-v1 5.3.0+d831205f19
- fabric-transitive-access-wideners-v1 6.1.0+1daea21519
- fabricloader 0.16.5
- java 21
- minecraft 1.21.1
- mixinextras 0.4.1
- modmenu 11.0.2
\-- placeholder-api 2.4.0-pre.2+1.21
[19:56:59] [main/INFO] (FabricLoader/Mixin) SpongePowered MIXIN Subsystem Version=0.8.7 Source=file:/C:/Users/yanni/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.15.3+mixin.0.8.7/51ee0a44ab05f6fddd66b09e66b3a16904f9c55d/sponge-mixin-0.15.3+mixin.0.8.7.jar Service=Knot/Fabric Env=CLIENT
[19:56:59] [main/INFO] (FabricLoader/Mixin) Loaded Fabric development mappings for mixin remapper!
[19:56:59] [main/INFO] (FabricLoader/Mixin) Compatibility level set to JAVA_17
[19:56:59] [main/INFO] (FabricLoader/Mixin) Compatibility level set to JAVA_21
[19:57:01] [main/INFO] (FabricLoader/MixinExtras|Service) Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.4.1).
[19:57:02] [Datafixer Bootstrap/INFO] (Minecraft) 226 Datafixer optimizations took 431 milliseconds
[19:57:08] [Render thread/INFO] (Minecraft) Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[19:57:08] [Render thread/INFO] (Minecraft) Setting user: Player701
[19:57:09] [Render thread/INFO] (EnoughMemory) Loading EnoughMemory mod.
[19:57:09] [Render thread/INFO] (Indigo) [Indigo] Registering Indigo renderer!
[19:57:09] [Render thread/INFO] (Mod Menu/Update Checker) Checking mod updates...
[19:57:09] [Render thread/INFO] (EnoughMemory) Allocated Memory: 1.0 GB
[19:57:09] [Render thread/INFO] (Minecraft) Backend library: LWJGL version 3.3.3-snapshot
[19:57:11] [Render thread/INFO] (Minecraft) Reloading ResourceManager: vanilla, fabric, cloth-config, enoughmemory, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-view-api-v2, fabric-blockrenderlayer-v1, fabric-client-tags-api-v1, fabric-command-api-v1, fabric-command-api-v2, fabric-commands-v0, fabric-content-registries-v0, fabric-convention-tags-v1, fabric-convention-tags-v2, fabric-crash-report-info-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-dimensions-v1, fabric-entity-events-v1, fabric-events-interaction-v0, fabric-game-rule-api-v1, fabric-gametest-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-loot-api-v3, fabric-message-api-v1, fabric-model-loading-api-v1, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-recipe-api-v1, fabric-registry-sync-v0, fabric-renderer-api-v1, fabric-renderer-indigo, fabric-renderer-registries-v1, fabric-rendering-data-attachment-v1, fabric-rendering-fluids-v1, fabric-rendering-v0, fabric-rendering-v1, fabric-resource-conditions-api-v1, fabric-resource-loader-v0, fabric-screen-api-v1, fabric-screen-handler-api-v1, fabric-sound-api-v1, fabric-transfer-api-v1, fabric-transitive-access-wideners-v1, fabricloader, modmenu
[19:57:11] [Worker-Main-13/INFO] (Minecraft) Found unifont_jp_patch-15.1.05.hex, loading
[19:57:11] [Worker-Main-10/INFO] (Minecraft) Found unifont_all_no_pua-15.1.05.hex, loading
[19:57:12] [Render thread/WARN] (Minecraft) Missing sound for event: minecraft:item.goat_horn.play
[19:57:12] [Render thread/WARN] (Minecraft) Missing sound for event: minecraft:entity.goat.screaming.horn_break
[19:57:12] [Render thread/INFO] (Minecraft) OpenAL initialized on device OpenAL Soft on Lautsprecher (Razer Kraken V3)
[19:57:12] [Render thread/INFO] (Minecraft) Sound engine started
[19:57:12] [Render thread/INFO] (Minecraft) Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
[19:57:12] [Render thread/INFO] (Minecraft) Created: 256x256x4 minecraft:textures/atlas/signs.png-atlas
[19:57:12] [Render thread/INFO] (Minecraft) Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[19:57:12] [Render thread/INFO] (Minecraft) Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[19:57:12] [Render thread/INFO] (Minecraft) Created: 1024x1024x4 minecraft:textures/atlas/armor_trims.png-atlas
[19:57:12] [Render thread/INFO] (Minecraft) Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[19:57:12] [Render thread/INFO] (Minecraft) Created: 128x64x4 minecraft:textures/atlas/decorated_pot.png-atlas
[19:57:12] [Render thread/INFO] (Minecraft) Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[19:57:12] [Render thread/INFO] (Minecraft) Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[19:57:13] [Render thread/INFO] (Minecraft) Created: 512x256x0 minecraft:textures/atlas/particles.png-atlas
[19:57:13] [Render thread/INFO] (Minecraft) Created: 512x256x0 minecraft:textures/atlas/paintings.png-atlas
[19:57:13] [Render thread/INFO] (Minecraft) Created: 256x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[19:57:13] [Render thread/INFO] (Minecraft) Created: 64x64x0 minecraft:textures/atlas/map_decorations.png-atlas
[19:57:13] [Render thread/INFO] (Minecraft) Created: 1024x512x0 minecraft:textures/atlas/gui.png-atlas
[19:57:13] [Render thread/WARN] (Minecraft) Shader rendertype_entity_translucent_emissive could not find sampler named Sampler2 in the specified shader program.
[19:57:33] [Render thread/INFO] (Minecraft) Stopping!

Binary file not shown.

140
fabric/run/options.txt Normal file
View File

@@ -0,0 +1,140 @@
version:3955
ao:true
biomeBlendRadius:2
enableVsync:true
entityDistanceScaling:1.0
entityShadows:true
forceUnicodeFont:false
japaneseGlyphVariants:false
fov:0.0
fovEffectScale:1.0
darknessEffectScale:1.0
glintSpeed:0.5
glintStrength:0.75
prioritizeChunkUpdates:0
fullscreen:false
gamma:0.5
graphicsMode:1
guiScale:0
maxFps:120
mipmapLevels:4
narrator:0
particles:0
reducedDebugInfo:false
renderClouds:"true"
renderDistance:12
simulationDistance:12
screenEffectScale:1.0
soundDevice:""
autoJump:false
operatorItemsTab:false
autoSuggestions:true
chatColors:true
chatLinks:true
chatLinksPrompt:true
discrete_mouse_scroll:false
invertYMouse:false
realmsNotifications:true
showSubtitles:false
directionalAudio:false
touchscreen:false
bobView:true
toggleCrouch:false
toggleSprint:false
darkMojangStudiosBackground:false
hideLightningFlashes:false
hideSplashTexts:false
mouseSensitivity:0.5
damageTiltStrength:1.0
highContrast:false
narratorHotkey:true
resourcePacks:["fabric"]
incompatibleResourcePacks:[]
lastServer:
lang:en_us
chatVisibility:0
chatOpacity:1.0
chatLineSpacing:0.0
textBackgroundOpacity:0.5
backgroundForChatOnly:true
hideServerAddress:false
advancedItemTooltips:false
pauseOnLostFocus:true
overrideWidth:0
overrideHeight:0
chatHeightFocused:1.0
chatDelay:0.0
chatHeightUnfocused:0.4375
chatScale:1.0
chatWidth:1.0
notificationDisplayTime:1.0
useNativeTransport:true
mainHand:"right"
attackIndicator:1
tutorialStep:movement
mouseWheelSensitivity:1.0
rawMouseInput:true
glDebugVerbosity:1
skipMultiplayerWarning:false
hideMatchedNames:true
joinedFirstServer:false
hideBundleTutorial:false
syncChunkWrites:true
showAutosaveIndicator:true
allowServerListing:true
onlyShowSecureChat:false
panoramaScrollSpeed:1.0
telemetryOptInExtra:false
onboardAccessibility:false
menuBackgroundBlurriness:5
key_key.attack:key.mouse.left
key_key.use:key.mouse.right
key_key.forward:key.keyboard.w
key_key.left:key.keyboard.a
key_key.back:key.keyboard.s
key_key.right:key.keyboard.d
key_key.jump:key.keyboard.space
key_key.sneak:key.keyboard.left.shift
key_key.sprint:key.keyboard.left.control
key_key.drop:key.keyboard.q
key_key.inventory:key.keyboard.e
key_key.chat:key.keyboard.t
key_key.playerlist:key.keyboard.tab
key_key.pickItem:key.mouse.middle
key_key.command:key.keyboard.slash
key_key.socialInteractions:key.keyboard.p
key_key.screenshot:key.keyboard.f2
key_key.togglePerspective:key.keyboard.f5
key_key.smoothCamera:key.keyboard.unknown
key_key.fullscreen:key.keyboard.f11
key_key.spectatorOutlines:key.keyboard.unknown
key_key.swapOffhand:key.keyboard.f
key_key.saveToolbarActivator:key.keyboard.c
key_key.loadToolbarActivator:key.keyboard.x
key_key.advancements:key.keyboard.l
key_key.hotbar.1:key.keyboard.1
key_key.hotbar.2:key.keyboard.2
key_key.hotbar.3:key.keyboard.3
key_key.hotbar.4:key.keyboard.4
key_key.hotbar.5:key.keyboard.5
key_key.hotbar.6:key.keyboard.6
key_key.hotbar.7:key.keyboard.7
key_key.hotbar.8:key.keyboard.8
key_key.hotbar.9:key.keyboard.9
soundCategory_master:1.0
soundCategory_music:0.0
soundCategory_record:1.0
soundCategory_weather:1.0
soundCategory_block:1.0
soundCategory_hostile:1.0
soundCategory_neutral:1.0
soundCategory_player:1.0
soundCategory_ambient:1.0
soundCategory_voice:1.0
modelPart_cape:true
modelPart_jacket:true
modelPart_left_sleeve:true
modelPart_right_sleeve:true
modelPart_left_pants_leg:true
modelPart_right_pants_leg:true
modelPart_hat:true

10
fabric/settings.gradle Normal file
View File

@@ -0,0 +1,10 @@
pluginManagement {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
mavenCentral()
gradlePluginPortal()
}
}

View File

@@ -0,0 +1,11 @@
package com.vaporvee.enoughmemory;
import me.shedaniel.autoconfig.ConfigData;
import me.shedaniel.autoconfig.annotation.Config;
@Config(name = EnoughMemory.MOD_ID)
public class EMConfig implements ConfigData {
float minMemory = 4.0f;
String errorTitle = "Error: Not enough Java memory!";
String errorDescription = "Please allocate at least {minMemory} GB of Java memory to your Minecraft Instance!";
}

View File

@@ -0,0 +1,99 @@
package com.vaporvee.enoughmemory;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.TitleScreen;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.text.OrderedText;
import net.minecraft.text.Text;
import javax.swing.*;
import java.awt.*;
import java.util.List;
public class EMWindow {
static boolean windowOpen = false;
private static JFrame window;
public static void createWindow(MinecraftClient minecraftClient, Screen screen) {
if(screen instanceof TitleScreen){
minecraftClient.setScreen(new BlockedScreen());
if(window != null){
window.dispose();
}
return;
}
try {
if (!windowOpen) {
windowOpen = true;
SwingUtilities.invokeLater(() -> {
window = new JFrame(EnoughMemoryClient.getWarningMessage()[0]);
window.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
window.setSize(400, 200);
window.setLocationRelativeTo(null);
JLabel message = new JLabel("<html><p style=\"width:200px\">"+EnoughMemoryClient.getWarningMessage()[1]+"</p></html>", JLabel.CENTER);
JButton exitButton = new JButton("OK");
exitButton.addActionListener(e -> {
window.dispose();
minecraftClient.scheduleStop();
});
window.setLayout(new BorderLayout());
window.add(message, BorderLayout.CENTER);
window.add(exitButton, BorderLayout.SOUTH);
window.setVisible(true);
});
}
} catch (RuntimeException e) {
EnoughMemory.logger.error(String.valueOf(e));
}
}
@Environment(EnvType.CLIENT)
public static class BlockedScreen extends Screen {
protected BlockedScreen() {
super(Text.literal("BlockedScreen"));
}
@Override
public void init(){
ButtonWidget closeButton = ButtonWidget.builder(Text.literal("Quit Game"), button -> {
MinecraftClient.getInstance().scheduleStop();
})
.dimensions(width / 2 - 100, height - 35 , 200, 20)
.build();
addDrawableChild(closeButton);
}
@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
super.render(context, mouseX, mouseY, delta);
String title = EnoughMemoryClient.getWarningMessage()[0];
String body = EnoughMemoryClient.getWarningMessage()[1];
int lineHeight = textRenderer.fontHeight + 5;
int maxTextWidth = width - 40;
List<OrderedText> wrappedLines = textRenderer.wrapLines(Text.literal(body), maxTextWidth);
int totalTextHeight = (wrappedLines.size() * lineHeight) + lineHeight + 10;
int startY = (height / 2) - (totalTextHeight / 2);
context.drawCenteredTextWithShadow(textRenderer, Text.literal(title), width / 2, startY, 0xf94449);
int bodyStartY = startY + lineHeight + 10;
// Automatic line breaks
for (int i = 0; i < wrappedLines.size(); i++) {
OrderedText line = wrappedLines.get(i);
context.drawCenteredTextWithShadow(textRenderer, line, width / 2, bodyStartY + (i * lineHeight), 0xffffff);
}
}
}
}

View File

@@ -0,0 +1,31 @@
package com.vaporvee.enoughmemory;
import me.shedaniel.autoconfig.AutoConfig;
import me.shedaniel.autoconfig.serializer.Toml4jConfigSerializer;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.screen.v1.ScreenEvents;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.Screen;
public class EnoughMemoryClient implements ClientModInitializer {
public static EMConfig config;
@Override
public void onInitializeClient() {
AutoConfig.register(EMConfig.class, Toml4jConfigSerializer::new);
config = AutoConfig.getConfigHolder(EMConfig.class).getConfig();
float allocatedMemoryInGB = Runtime.getRuntime().totalMemory() / 1073741824f; // Hardcoded value for GB
EnoughMemory.logger.info(String.format("Allocated Memory: %.1f GB", allocatedMemoryInGB));
if(config.minMemory > allocatedMemoryInGB){
System.setProperty("java.awt.headless", "false"); // Hacky stupid thing but it works I guess...
ScreenEvents.BEFORE_INIT.register(EnoughMemoryClient::beforeWindowInit);
}
}
public static String[] getWarningMessage(){
return new String[]{config.errorTitle, config.errorDescription.replace("{minMemory}", String.valueOf(config.minMemory))};
};
private static void beforeWindowInit(MinecraftClient minecraftClient, Screen screen, int i, int i1) {
EMWindow.createWindow(minecraftClient, screen);
}
}

View File

@@ -0,0 +1,23 @@
package com.vaporvee.enoughmemory;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class EnoughMemory implements ModInitializer {
public static final String MOD_ID = "enoughmemory";
public static final Logger logger = LoggerFactory.getLogger("EnoughMemory");
@Override
public void onInitialize() {
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER) {
logger.info(MOD_ID + " is a client mod only!");
return;
}
logger.info("Loading EnoughMemory mod.");
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -0,0 +1,8 @@
{
"required": true,
"package": "com.vaporvee.enoughmemory.mixin",
"compatibilityLevel": "JAVA_21",
"injectors": {
"defaultRequire": 1
}
}

View File

@@ -0,0 +1,46 @@
{
"schemaVersion": 1,
"id": "enoughmemory",
"version": "${version}",
"name": "Enough Memory",
"description": "It will show the user when they have set too less Java Memory. The amount of required memory can be adjusted with the config.",
"authors": [
{
"name": "vaporvee",
"contact": {
"homepage" : "https://vaporvee.com"
}
}
],
"contact": {
"sources": "https://github.com/vaporvee/EnoughMemory",
"issues": "https://github.com/vaporvee/EnoughMemory/issues"
},
"custom": {
"modmenu": {
"links": {
"modmenu.discord": "https://discord.gg/StMHnsC9s2"
}
}
},
"license": "Apache License 2.0",
"icon": "assets/enoughmemory/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"com.vaporvee.enoughmemory.EnoughMemory"
],
"client": [
"com.vaporvee.enoughmemory.EnoughMemoryClient"
]
},
"depends": {
"fabricloader": ">=0.16.5",
"minecraft": "~1.21.1",
"java": ">=21",
"fabric-api": "*"
},
"suggests": {
"another-mod": "*"
}
}

36
neoforge/.gitignore vendored Normal file
View File

@@ -0,0 +1,36 @@
# gradle
.gradle/
build/
out/
classes/
# eclipse
*.launch
# idea
fabric/.idea/
*.iml
*.ipr
*.iws
# vscode
.settings/
.vscode/
bin/
.classpath
.project
# macos
*.DS_Store
# java
hs_err_*.log
replay_*.log
*.hprof
*.jfr