yay899
Members-
Posts
6 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I'm getting better.
yay899's Achievements
Tree Puncher (2/8)
0
Reputation
-
I've been searching around for a tutorial on structure generation and can't seem to find anything. I can find people asking questions about it, but lacking all knowledge on the subject means I can't piece these together into something functional.
-
After googling around a bit, this seems to to be the go to way to check if a specific item has been picked up. @SubscribeEvent(priority=EventPriority.HIGHEST, receiveCanceled=true) public void onEvent(EntityItemPickupEvent event) { if (event.entity instanceof EntityPlayer) { System.out.println(entityItem); if (Item.getIdFromItem(event.item) == Item.getIdFromItem(MODITEM)) { } } } However, Item.getIdFromItem takes Item as an input, and event.item outputs ItemStack. Nothing in event.item.* outputs Item either. Have I just been finding outdated snippets of code, or am I doing something wrong? The only other way I can seem to find from poking around event.item.*, is to convert event.item.getEntityItem() to a string, and then remove the beginning and end of it so it's just the unlocalized name and comparing those, but that seems clunky.
-
Problems with GradleStart [1.7.10 Recommended Src] [Solved]
yay899 replied to yay899's topic in Modder Support
Thank you for the assistance. -
Problems with GradleStart [1.7.10 Recommended Src] [Solved]
yay899 replied to yay899's topic in Modder Support
Is there anything other than changing the home variable I have to do to stop running 8? Do I have to change something in Eclipse? -
Problems with GradleStart [1.7.10 Recommended Src] [Solved]
yay899 replied to yay899's topic in Modder Support
Alright. I downloaded JDK 7 and installed it. Then I changed the JAVA_HOME variable to JDK 7, restarted, and made another environment from scratch. No apparent change. [16:10:04] [main/INFO] [GradleStart]: No arguments specified, assuming client. [16:10:04] [main/INFO] [GradleStart]: Extra: [] [16:10:04] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Yay899/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --username, ForgeDevName] [16:10:04] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [16:10:04] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [16:10:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [16:10:04] [main/INFO] [FML]: Forge Mod Loader version 7.10.18.1180 for Minecraft 1.7.10 loading [16:10:04] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_20, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_20 [16:10:04] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [16:10:04] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:10:04] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [16:10:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:10:04] [main/ERROR] [LaunchWrapper]: Unable to launch java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(Unknown Source) ~[?:1.8.0_20] at java.util.ArrayList$Itr.remove(Unknown Source) ~[?:1.8.0_20] at net.minecraft.launchwrapper.Launch.launch(Launch.java:117) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_20] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_20] at GradleStart.bounce(GradleStart.java:107) [start/:?] at GradleStart.startClient(GradleStart.java:100) [start/:?] at GradleStart.main(GradleStart.java:55) [start/:?] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at GradleStart.main(GradleStart.java:59) Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release Edit: Oh, and thanks for moving the thread to the proper sub-forum. -
[15:36:47] [main/INFO] [GradleStart]: No arguments specified, assuming client. [15:36:47] [main/INFO] [GradleStart]: Extra: [] [15:36:47] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Yay899/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --username, ForgeDevName] [15:36:47] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [15:36:47] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [15:36:47] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [15:36:47] [main/INFO] [FML]: Forge Mod Loader version 7.10.18.1180 for Minecraft 1.7.10 loading [15:36:47] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_20, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_20 [15:36:47] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [15:36:47] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [15:36:47] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [15:36:47] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [15:36:47] [main/ERROR] [LaunchWrapper]: Unable to launch java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(Unknown Source) ~[?:1.8.0_20] at java.util.ArrayList$Itr.remove(Unknown Source) ~[?:1.8.0_20] at net.minecraft.launchwrapper.Launch.launch(Launch.java:117) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_20] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_20] at GradleStart.bounce(GradleStart.java:107) [start/:?] at GradleStart.startClient(GradleStart.java:100) [start/:?] at GradleStart.main(GradleStart.java:55) [start/:?] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at GradleStart.main(GradleStart.java:59) Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release Whenever I try to run in Eclipse, I get this error. I've tried setting up the environment from scratch multiple times, but this occurs. Even when the only package in src/main/java is the default example one. Nothing I've found has really been much help.