-
Posts
82 -
Joined
-
Last visited
Everything posted by outflows
-
ew an ad
-
I forgot about that, thanks
-
1.14
-
bump
-
I just had a general question, how would I go about adding something like a webviewer or anything like that (even a minimap) to a GUIScreen? I've been looking through classes all day and I'm just lost at this point.
-
Reach out to customer support at aternos and try to see if they can reinstall the mod.
-
Well considering that this is a problem with the mod itself, I'd recommend just reinstalling it on your server and then coming back if the problem persists. Also, if you have the problem again, please try to show the entire crash report as the last few lines can be helpful in trying to diagnose the problem.
-
First: I didn't say that it wouldn't work on my IDE. Second: I don't know what to tell you because I can't find that class anywhere. Third: I know 1.12.2 isn't supported anymore but when I googled this topic I couldn't find anything.
-
Yeah I'm modding for 1.12.2 so that's probably why it's not showing up.
-
Is there an easy way to search for these classes in the explorer because I've been looking for a while and can't find them. All I was able to find was ForgeGUIFactory.
-
Are bumps allowed on this forum?
-
Maybe this is a stupid question but is there a way to see how this is actually done in game? Like is there a class I can find where this event is being executed or is that something that mojang doesn't want us to see? As you can tell, I'm not the most experienced modder yet.
-
Based off the crash report, it seems like there's something wrong with the listeners for your event bus. I don't know too much about modding in this version though so sorry if I couldn't be more help.
-
This isn't a bump but just a friendly push
-
So I've been playing minecraft on this pc for a while and haven't noticed any problems with my memory but after playing stoneblock 2 I quickly started getting what seemed to be memory leaks. I allocate 6GB of memory for the pack and once I start playing, the game will only use around 40-50% of it but after playing for around 2-3 hours, I have to restart minecraft because I'll start getting lag spikes as a result of minecraft using too much memory. Now I haven't heard of any modpack that needs to use 6GB of memory so I'm not really sure what's going on. I saw someone else have this problem on a different forum but no one was able to help him so I'm hoping someone here might know what's wrong.
-
So I'm trying to add a sort of interface to the main play screen (similar to a minimap) but I really can't find any way to do so. I've been looking through the GUI class but I don't think that'll work for what I have in mind. If someone has any ideas that would be great. Also, if someone knows how to view the code for a mini map mod or something that would also be very helpful.
-
Bumpy bump bump
-
bump
-
I have a possibly quite difficult feature that I'd like to implement into my mod. What I am attempting to do is create a video viewer that I could place in a corner of the screen when in game. I started using WebView from javafx but I don't want to continue down that rabbit hole if it's not going to end up working. I was just wondering if there was some way to perform this action by redesigning the mc UI in order to cut out a little piece of the screen so that I can implement the video viewer like that instead of just putting one application over another if that makes sense. I know what I'm asking for might be a lot but if someone has any advice that would be great. P.S. I looked through the Youtube data API and that didn't seem to be of use which is why I went with webviewer.
-
Now I just have to figure out how to force the user to swing their pickaxe at a block and have it actually do damage instead of just playing the swingarm animation.
-
FMLCommonHandler.instance().bus().register(new CobbleG()); This is how you do it
-
Yes, this is for a client side mod, the problem is that I was using a mod for 1.12.2 on a server that was using bungee from 1.8-1.14.4. So I realized that I need to make the mod for 1.8 since it's the lowest version on the server. The problem is that when I switched to 1.8, I was unable to register classes for whatever reason.
-
Hey so I'm new to forge 1.8 mod development and I was having some trouble registering a class with the event bus because for some reason it seems to work differently than 1.12.2. I tried registering my class under FMLInitializationEvent as well as FMLPreInitializationEvent and nothing seemed to work. For some reason, when I get into the game, I'm not able to trigger any actions within the class that I had registered. Here's the code for my main class, as well as the class that I'm trying to register. package com.Jewkake.destruct; import org.apache.logging.log4j.Logger; import com.Jewkake.destruct.CobbleG; import net.minecraft.client.settings.KeyBinding; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.client.registry.ClientRegistry; 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.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = main.MODID, name = main.NAME, version = main.VERSION) public class main { public static final String MODID = "destruct"; public static final String NAME = "Destruct"; public static final String VERSION = "1.0.0"; public static KeyBinding cobblegen = new KeyBinding("Cobble Generation", 21, "Destruct"); private static Logger logger; @EventHandler public void preInit(FMLPreInitializationEvent event) { ClientRegistry.registerKeyBinding(cobblegen); } @EventHandler public void init(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new CobbleG()); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } package com.Jewkake.destruct; import java.awt.AWTException; import java.awt.Robot; import java.awt.event.*; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.multiplayer.PlayerControllerMP; import net.minecraft.client.settings.KeyBinding; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; import net.minecraft.util.ChatComponentText; import net.minecraft.util.EnumFacing; import net.minecraft.world.World; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.InputEvent; import net.minecraftforge.fml.common.gameevent.PlayerEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import net.minecraftforge.fml.common.gameevent.TickEvent.ClientTickEvent; public class CobbleG { private static KeyBinding cb = main.cobblegen; private static boolean isRunning = false; @SubscribeEvent public void start(InputEvent.KeyInputEvent event) { System.out.println("nohere"); World world = Minecraft.getMinecraft().theWorld; if(world!=null) { if(cb.isPressed()) { if(!isRunning) { privateChat("Cobble Generation Started"); isRunning = true; } else { privateChat("Cobble Generation Stopped"); isRunning = false; } } } } @SubscribeEvent public void run(ClientTickEvent event) { System.out.println("overhere"); EntityPlayer player = Minecraft.getMinecraft().thePlayer; Minecraft mc = Minecraft.getMinecraft(); if(isRunning || !isRunning) { System.out.println("here"); player.setVelocity(0.2, 0.0, 0.0); player.rotationPitch = -90.0f; player.rotationYaw = -90.0f; if(mc.objectMouseOver != null) { if(mc.objectMouseOver.typeOfHit.ordinal() == 0) { BlockPos blockpos = mc.objectMouseOver.getBlockPos(); if(mc.theWorld.getBlockState(blockpos).getBlock().getMaterial() != Material.air) { mc.playerController.func_180511_b(blockpos, mc.objectMouseOver.sideHit); } } } } } @SubscribeEvent public void leftServer(PlayerEvent.PlayerLoggedOutEvent event) { isRunning = false; } public void privateChat(String message) { Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(message)); } }
-
@SubscribeEvent public void run(ClientTickEvent event) { EntityPlayer player = Minecraft.getMinecraft().player; if(isRunning && event.phase == TickEvent.Phase.START) { player.setVelocity(0.2, 0.0, 0.0); player.rotationPitch = -90.0f; player.rotationYaw = -90.0f; Minecraft.getMinecraft().playerController.clickBlock(Minecraft.getMinecraft().objectMouseOver.getBlockPos(), EnumFacing.UP); } } This is what I have so far but right now it doesn't work when I'm on a server. For some reason it just breaks one block and then stops.