Comments (12)
build.gradle
buildscript {
repositories {
mavenLocal()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://jitpack.io" }
maven { url = "https://maven.minecraftforge.net/" }
maven { url = "https://lukflug.github.io/maven/" }
}
dependencies {
classpath "com.github.asbyth:ForgeGradle:6f53277"
}
}
repositories {
mavenLocal()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://jitpack.io" }
maven { url = "https://maven.minecraftforge.net/" }
maven { url = "https://lukflug.github.io/maven/" }
}
version = "1.0"
group = "net.dumbteam.clients"
apply plugin: 'scala'
apply plugin: 'net.minecraftforge.gradle.forge'
minecraft {
version = '1.8.9-11.15.1.2318-1.8.9'
runDir = 'debug'
mappings = 'stable_22'
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
dependencies {
implementation "org.projectlombok:lombok:1.18.22"
compile "com.google.code.gson:gson:2.8.5"
compile "com.lukflug:panelstudio:0.2.1"
compile "com.lukflug:panelstudio-mc8-forge:0.2.0"
}
from panelstudio.
Could you tell me what you changed?
from panelstudio.
no changes
from panelstudio.
only i sort packages, (setting, module)
from panelstudio.
from panelstudio.
from panelstudio.
package net.dumbteam.clients;
import lombok.Getter;
import lombok.Setter;
import net.dumbteam.clients.module.Category;
import net.dumbteam.clients.module.modules.ClickGUIModule;
import net.dumbteam.clients.module.modules.TabGUIModule;
import net.dumbteam.clients.module.modules.WatermarkModule;
import net.dumbteam.clients.ui.game.ClickGUI;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.ServerChatEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.InputEvent;
import org.apache.logging.log4j.Logger;
import org.lwjgl.input.Keyboard;
@Getter
@Setter
@Mod(
modid = InstanceClient.MODID,
version = InstanceClient.VERSION,
name = InstanceClient.NAME
)
public class InstanceClient {
public static final String MODID = "instanceclient";
public static final String NAME = "Instance Client";
public static final String VERSION = "1.0-SNAPSHOT";
private Logger logger;
private ClickGUI gui;
@EventHandler
public void onEnable(FMLPreInitializationEvent event) {
logger = event.getModLog();
}
@SubscribeEvent
public void onChat(ServerChatEvent event) {
System.out.println(event.getComponent().getFormattedText());
}
@EventHandler
public void init(FMLInitializationEvent event) {
Category.init();
Category.OTHER.modules.add(new ClickGUIModule());
// Category.OTHER.modules.add(new HUDEditorModule());
Category.HUD.modules.add(new TabGUIModule());
Category.HUD.modules.add(new WatermarkModule());
// Category.HUD.modules.add(new LogoModule());
MinecraftForge.EVENT_BUS.register(this);
this.setGui(new ClickGUI());
}
@SubscribeEvent
public void onRender(RenderGameOverlayEvent.Post event) {
// try {
// if (event.type == RenderGameOverlayEvent.ElementType.HOTBAR) gui.render();
// } catch (Exception e) {
// logger.error(e.getMessage());
// }
}
@SubscribeEvent
public void onKeyInput(InputEvent.KeyInputEvent event) {
if (Keyboard.isKeyDown(ClickGUIModule.keybind.getKey())) gui.enterGUI();
// if (Keyboard.isKeyDown(HUDEditorModule.keybind.getKey())) gui.enterHUDEditor();
if (Keyboard.getEventKeyState()) gui.handleKeyEvent(Keyboard.getEventKey());
}
}
from panelstudio.
The build.gradle
file you sent doesn't match up with the one in the example mod at all. The source of the issue is probably there. I just checked the example mod as it currently is in the GitHub repository and it works both in the IDE and in the Launcher environments.
from panelstudio.
I see you're using a non-standard version of ForgeGradle. I'd suggest you use the version net.minecraftforge.gradle:ForgeGradle:2.1.3
. Do a clean build of the project (gradlew --stop
, gradlew clean
, gradlew setupDecompWorkspace --refresh-dependencies
, gradlew build
). If the issue persists, send me the entire project folder (with build.gradle
, without .gradle
, build
and other computer-generated folders, only the things that would typically be in a source repository and that are necessary to reproduce the issue).
from panelstudio.
i got errors
how i can fix that ?
@lukflug
from panelstudio.
There seems to be an issue with your Java https certificates. Are you using any particularly old version of Java (e.g. Java 6)?
This might be relevant:
https://stackoverflow.com/questions/21076179/pkix-path-building-failed-and-unable-to-find-valid-certification-path-to-requ
from panelstudio.
corretto-1.8.0_322
from panelstudio.
Related Issues (20)
- gui.enterGUI() gives an error. HOT 23
- gradle bad pls help (could not find method shadowJar()) HOT 2
- Hud elements only rendering while in clickgui or hudeditor HOT 10
- ClassNotFoundException when clickgui gets initialized HOT 26
- Game crashes when trying to load the mod(i added mixins so that might be the problem) HOT 12
- Update HOT 1
- I'm a panelSTUD
- Doesn't work on Mac HOT 44
- Non-draggable? (Feature request) HOT 1
- Tutorial HOT 1
- The "Creating a clickGUI" section of the wiki doesnt lead anywhere HOT 1
- Keybinds run while in chat/menus HOT 1
- Panelstudio HOT 1
- how to get a module HOT 2
- Can't register speed moudle to event bus when enabled and de register when un enabled HOT 2
- lukflug
- HUD rendering causes crash after loading the world HOT 13
- 1.16.5 Text is getting mad HOT 3
- [Important] Render Gui + MC Overlay issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panelstudio.