• Recently Browsing

    No registered users viewing this page.

  • Posts

    • If you are using eclipse (but presumably other IDEs have similar functionality) you can view all events by: Pressing ctrl+shift+t to and search for the net.minecraftforge.eventbus.api.Event type Click on the class name and press F4 to open the Event type hierarchy, where you can view all events
    • Hi there!   I'm looking to make my player invincible for say 10 ticks after a key is pressed. I can probably use a tick event for the ticks (duh.) but I'm not quite sure how to make my player invincible.   Thanks for the help
    • Here is the crash report   ---- Minecraft Crash Report ---- // Uh... Did I do that? Time: 7/11/20 11:41 AM Description: Rendering overlay com.electronwill.nightconfig.core.io.ParsingException: Not enough data available     at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22) ~[core-3.6.2.jar:?] {}     at com.electronwill.nightconfig.core.io.ReaderInput.directReadChar(ReaderInput.java:36) ~[core-3.6.2.jar:?] {}     at com.electronwill.nightconfig.core.io.AbstractInput.readChar(AbstractInput.java:49) ~[core-3.6.2.jar:?] {}     at com.electronwill.nightconfig.core.io.AbstractInput.readCharsUntil(AbstractInput.java:123) ~[core-3.6.2.jar:?] {}     at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:166) ~[toml-3.6.2.jar:?] {}     at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145) ~[toml-3.6.2.jar:?] {}     at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55) ~[toml-3.6.2.jar:?] {}     at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44) ~[toml-3.6.2.jar:?] {}     at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) ~[toml-3.6.2.jar:?] {}     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) ~[core-3.6.2.jar:?] {}     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) ~[core-3.6.2.jar:?] {}     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) ~[core-3.6.2.jar:?] {}     at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) ~[core-3.6.2.jar:?] {}     at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85) ~[core-3.6.2.jar:?] {}     at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:53) ~[?:?] {re:classloading}     at net.minecraftforge.fml.config.ConfigFileTypeHandler$$Lambda$3605/882673206.apply(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:104) ~[?:?] {re:classloading}     at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:83) ~[?:?] {re:classloading}     at net.minecraftforge.fml.config.ConfigTracker$$Lambda$3604/841353735.accept(Unknown Source) ~[?:?] {}     at java.lang.Iterable.forEach(Iterable.java:75) ~[?:1.8.0_51] {}     at java.util.Collections$SynchronizedCollection.forEach(Collections.java:2062) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:83) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.lambda$null$5(ModLoader.java:153) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader$$Lambda$3603/1662108087.run(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.DistExecutor.unsafeRunWhenOn(DistExecutor.java:125) ~[?:?] {re:classloading}     at net.minecraftforge.fml.DistExecutor.runWhenOn(DistExecutor.java:109) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.loadMods(ModLoader.java:153) ~[?:?] {re:classloading}     at net.minecraftforge.fml.client.ClientModLoader.lambda$startModLoading$6(ClientModLoader.java:119) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader$$Lambda$3598/502469309.run(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:109) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2761/266843824.run(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.client.ClientModLoader.startModLoading(ClientModLoader.java:119) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$3(ClientModLoader.java:101) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader$$Lambda$3592/1844941220.run(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:109) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2761/266843824.run(Unknown Source) ~[?:?] {}     at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) ~[?:1.8.0_51] {}     at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1610) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_51] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22)     at com.electronwill.nightconfig.core.io.ReaderInput.directReadChar(ReaderInput.java:36)     at com.electronwill.nightconfig.core.io.AbstractInput.readChar(AbstractInput.java:49)     at com.electronwill.nightconfig.core.io.AbstractInput.readCharsUntil(AbstractInput.java:123)     at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:166)     at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145)     at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55)     at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44)     at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37)     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113)     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219)     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202)     at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73)     at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85)     at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:53)     at net.minecraftforge.fml.config.ConfigFileTypeHandler$$Lambda$3605/882673206.apply(Unknown Source)     at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:104)     at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:83)     at net.minecraftforge.fml.config.ConfigTracker$$Lambda$3604/841353735.accept(Unknown Source)     at java.lang.Iterable.forEach(Iterable.java:75)     at java.util.Collections$SynchronizedCollection.forEach(Collections.java:2062)     at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:83)     at net.minecraftforge.fml.ModLoader.lambda$null$5(ModLoader.java:153)     at net.minecraftforge.fml.ModLoader$$Lambda$3603/1662108087.run(Unknown Source)     at net.minecraftforge.fml.DistExecutor.unsafeRunWhenOn(DistExecutor.java:125)     at net.minecraftforge.fml.DistExecutor.runWhenOn(DistExecutor.java:109)     at net.minecraftforge.fml.ModLoader.loadMods(ModLoader.java:153) -- Overlay render details -- Details:     Overlay name: net.minecraft.client.gui.ResourceLoadProgressGui Stacktrace:     at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:473)     at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:950)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:581)     at net.minecraft.client.main.Main.main(Main.java:184)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51)     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$419/1081633119.call(Unknown Source)     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)     at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)     at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) -- System Details -- Details:     Minecraft Version: 1.16.1     Minecraft Version ID: 1.16.1     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 7113450504 bytes (6783 MB) / 10737418240 bytes (10240 MB) up to 10737418240 bytes (10240 MB)     CPUs: 4     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx10G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     ModLauncher: 5.1.0+69+master.79f13f7     ModLauncher launch target: fmlclient     ModLauncher naming: srg     ModLauncher services:         /eventbus-2.2.0-service.jar eventbus PLUGINSERVICE         /forge-1.16.1-32.0.63.jar object_holder_definalize PLUGINSERVICE         /forge-1.16.1-32.0.63.jar runtime_enum_extender PLUGINSERVICE         /accesstransformers-2.1.3-shadowed.jar accesstransformer PLUGINSERVICE         /forge-1.16.1-32.0.63.jar capability_inject_definalize PLUGINSERVICE         /forge-1.16.1-32.0.63.jar runtimedistcleaner PLUGINSERVICE         /forge-1.16.1-32.0.63.jar fml TRANSFORMATIONSERVICE     FML: 32.0     Forge: net.minecraftforge:32.0.63     FML Language Providers:         javafml@32.0         minecraft@1     Mod List:         forge-1.16.1-32.0.63-client.jar Minecraft {minecraft@1.16.1 COMMON_SETUP}         useful_backpacks-1.16.1-1.11.0.68-SNAPSHOT.jar Useful Backpacks {usefulbackpacks@1.11.0.68-SNAPSHOT COMMON_SETUP}         elevatorid-1.16.1-1.7.2.jar Elevator Mod {elevatorid@1.16.1-1.7.2 COMMON_SETUP}         TrashSlot_1.16.1-12.0.0.jar TrashSlot {trashslot@12.0.0 COMMON_SETUP}         u_team_core-1.16.1-3.1.0.161-SNAPSHOT.jar U Team Core {uteamcore@3.1.0.161-SNAPSHOT COMMON_SETUP}         curiouselytra-FORGE-1.16.1-3.0.jar Curious Elytra {curiouselytra@FORGE-1.16.1-3.0 COMMON_SETUP}         jei-1.16.1-7.0.0.6.jar Just Enough Items {jei@7.0.0.6 COMMON_SETUP}         longfallboots-1.5.0a.jar Long Fall Boots {longfallboots@1.5.0a COMMON_SETUP}         FpsReducer-mc1.16.1-1.16.jar FPS Reducer {fpsreducer@mc1.16.1-1.16 COMMON_SETUP}         BetterThanMending-1.4.0.jar BetterThanMending {betterthanmending@1.4.0 COMMON_SETUP}         caelus-FORGE-1.16.1-2.0-beta4.jar Caelus API {caelus@FORGE-1.16.1-2.0-beta4 COMMON_SETUP}         forge-1.16.1-32.0.63-universal.jar Forge {forge@32.0.63 COMMON_SETUP}         AppleSkin-mc1.16.1-forge-1.0.14.jar AppleSkin {appleskin@1.0.14 COMMON_SETUP}         FastLeafDecay-v23.jar FastLeafDecay {fastleafdecay@v23 COMMON_SETUP}         curios-FORGE-1.16.1-3.0-beta2.jar Curios API {curios@FORGE-1.16.1-3.0-beta2 COMMON_SETUP}         angelring-1.16.1-1.3.0.jar Angel Ring {angelring@1.3.0 COMMON_SETUP}         rockcandy-1.16-1.0.1.jar Rock Candy {rockcandy@version COMMON_SETUP}         XaerosWorldMap_1.7.3_Forge_1.16.1.jar Xaero's World Map {xaeroworldmap@1.7.3 COMMON_SETUP}         ironchest-1.16.1-11.0.1.jar Iron Chests {ironchest@1.16.1-11.0.1 COMMON_SETUP}         Placebo-1.16.1-4.0.1.jar Placebo {placebo@4.0.1 COMMON_SETUP}     Launched Version: 1.16.1-forge-32.0.63     Backend library: LWJGL version 3.2.2 build 10     Backend API: GeForce GT 1030/PCIe/SSE2 GL version 4.6.0 NVIDIA 442.50, NVIDIA Corporation     GL Caps: Using framebuffer using OpenGL 3.0     Using VBOs: Yes     Is Modded: Definitely; Client brand changed to 'forge'     Type: Client (map_client.txt)     Resource Packs:     Current Language: English (US)     CPU: 4x Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz   It keeps saying not enough data available
    • Please forgive me, I'm very new to modding, just started today, my foundation in Java is a little rockey, but this is not really a java question I don't think. This is an example provided in the forge documentation. This makes sense, the event called EntityItemPickupEvent is being used. But I don't understand where I am supposed to find the list of Events. I have seen others use events such as TickEvent.ServerTickEvent, where are people finding these Events. Is there a master list somewhere? public class MyForgeEventHandler {       @SubscribeEvent        public void pickupItem(EntityItemPickupEvent event) {                 System.out.println("Item picked up!");        } } Thanks in advance.
    • Hi, I'm trying to make a simple item that, when you hold it in your main hand and right click on a living entity, will kill the entity and spawn an entity of the same type in your location. So if you right click on a pig, the pig will die and a second, new pig will spawn on you. It seems to me that making such a simple item would be incredibly complicated with forge. You'd need to raytrace on the client-side to find the mob, tell the server about the mob through networking, kill the mob, then spawn a new one. Is there something I'm missing? Do you really need to set up networking for such a simple item? How would you do this? Thank you!
  • Topics

  • Who's Online (See full list)