I'm back! Tutorials should start coming once again for 1.7 as requested. Based on the feedback I've received, I'm starting to re-write the tutorials from scratch, eliminating issues, fixing typos, and adding in features y'all requested (like code at the end of each tutorial). Anyways, if anyone else has suggestions, please let me know!
A setup tutorial has been released, and others will follow within the coming days!
These sound like amazing tutorials but I have one problem, I can't find them. When I go to the repository on github I just see the first 1.7 tutorial. This is really annoying to me because these tutorials are exactly what I want to learn modding. Someone please post a link to the 1.8 tutorial or at least explain what I am doing wrong. I'd really appreciate it if someone would help me.
EDIT: never mind the second I posted this I found them lol
I've re-done how tutorials are viewed, reverting back to the old ways. I think you would like that way more.
Also, Volume 3 (1.7) tutorials are going to start picking back up! I've looked at your comments about the tutorials, and am changing it up to better benefit y'all! Anyways, the 2nd tutorial (Main Class), has been finished. Others soon to follow.
First Thanks for tutorial. I hope you can help me for my error that I get in eclipse. I did every thing that you listed for setup. I didnt change any letter from eclipse but when I try to run in eclipse I get this error.
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [FML]: Forge Mod Loader version 7.2.211.1121 for Minecraft 1.7.2 loading
[11:03:20] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_79, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.7.0_79\jre
[11:03:20] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:03:20] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[11:03:21] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/RED/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1121/forgeSrc-1.7.2-10.12.2.1121.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[11:03:21] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[11:03:21] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/RED/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1121/forgeSrc-1.7.2-10.12.2.1121.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[11:03:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[11:03:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:03:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[11:03:21] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[11:03:21] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_79]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) ~[?:1.7.0_79]
at java.lang.Runtime.loadLibrary0(Runtime.java:849) ~[?:1.7.0_79]
at java.lang.System.loadLibrary(System.java:1088) ~[?:1.7.0_79]
at org.lwjgl.Sys$1.run(Sys.java:73) ~[lwjgl-2.9.0.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_79]
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.0.jar:?]
at org.lwjgl.Sys.loadLibrary(Sys.java:95) ~[lwjgl-2.9.0.jar:?]
at org.lwjgl.Sys.<clinit>(Sys.java:112) ~[lwjgl-2.9.0.jar:?]
at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2674) ~[Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:40) ~[Main.class:?]
... 6 more
Pls help me You cant know having tutorial but you stack in stup step how much disgusting.
First Thanks for tutorial. I hope you can help me for my error that I get in eclipse. I did every thing that you listed for setup. I didnt change any letter from eclipse but when I try to run in eclipse I get this error.
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [FML]: Forge Mod Loader version 7.2.211.1121 for Minecraft 1.7.2 loading
[11:03:20] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_79, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.7.0_79\jre
[11:03:20] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:03:20] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[11:03:21] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/RED/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1121/forgeSrc-1.7.2-10.12.2.1121.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[11:03:21] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[11:03:21] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/RED/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1121/forgeSrc-1.7.2-10.12.2.1121.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[11:03:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[11:03:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:03:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[11:03:21] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[11:03:21] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_79]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) ~[?:1.7.0_79]
at java.lang.Runtime.loadLibrary0(Runtime.java:849) ~[?:1.7.0_79]
at java.lang.System.loadLibrary(System.java:1088) ~[?:1.7.0_79]
at org.lwjgl.Sys$1.run(Sys.java:73) ~[lwjgl-2.9.0.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_79]
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.0.jar:?]
at org.lwjgl.Sys.loadLibrary(Sys.java:95) ~[lwjgl-2.9.0.jar:?]
at org.lwjgl.Sys.<clinit>(Sys.java:112) ~[lwjgl-2.9.0.jar:?]
at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2674) ~[Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:40) ~[Main.class:?]
... 6 more
Pls help me You cant know having tutorial but you stack in stup step how much disgusting.
Any chance you make a tutorial on halfblocks on 1.8?
I have mines done and working, as independent blocks, but would like to know how to make them all a single block as it's in the game~
Any chance you make a tutorial on halfblocks on 1.8?
I have mines done and working, as independent blocks, but would like to know how to make them all a single block as it's in the game~
Any chance you make a tutorial on halfblocks on 1.8?
I have mines done and working, as independent blocks, but would like to know how to make them all a single block as it's in the game~
Might not be for a while. I'm going back to 1.7 tutorials based on demand for now.
And, tutorial number 3 is out now. Items/Blocks should follow soon. After that, let me know what you need tutorials on, and I might be able to help you out with it!
I am working on a mod which would allow a user to design and create new items in-game based on a number of feature, but the possible combinations of features is well into the millions, so I couldn't possible hard code the combinations. From what I have read and from discussions I have had with other modder's it seems like creating a "generic Item" and defining the item during runtime using NBT's.
Unfortunately I haven't found any good tutorials on how to make and use NBT's.
If you know of any good tutorials or are willing to make one I would greatly appreciate it!
Rollback Post to RevisionRollBack
"If It Is To Be It Is Up To Me" simple quote and I don't know where it comes from but I enjoy it.
Current Mod: Armerger | Light Drafter
I am working on a mod which would allow a user to design and create new items in-game based on a number of feature, but the possible combinations of features is well into the millions, so I couldn't possible hard code the combinations. From what I have read and from discussions I have had with other modder's it seems like creating a "generic Item" and defining the item during runtime using NBT's.
Unfortunately I haven't found any good tutorials on how to make and use NBT's.
If you know of any good tutorials or are willing to make one I would greatly appreciate it!
Yes, NBT's a very powerful once you learn how to use them, and open up an entirely new world of possibilities. I am definitely going to write a few tutorials on NBT data, but it might not be for a week or two (as well as depending on when I get the more important tutorials out). In the meantime, this is a good start.
Yes, NBT's a very powerful once you learn how to use them, and open up an entirely new world of possibilities. I am definitely going to write a few tutorials on NBT data, but it might not be for a week or two (as well as depending on when I get the more important tutorials out). In the meantime, this is a good start.
Actually I have looked at that one a bit, but what I haven't been able to find is an example of where to put that code and how it should be used in other area's.
Using the example for the Key is there a KeyNBT class and does Key instantiate itself with the KeyNBT class or is KeyNBT a child of Key that gets used in place of Key?
I haven't found anywhere that explains those relations and that is the part that has me stumped.
Rollback Post to RevisionRollBack
"If It Is To Be It Is Up To Me" simple quote and I don't know where it comes from but I enjoy it.
Current Mod: Armerger | Light Drafter
Actually I have looked at that one a bit, but what I haven't been able to find is an example of where to put that code and how it should be used in other area's.
Using the example for the Key is there a KeyNBT class and does Key instantiate itself with the KeyNBT class or is KeyNBT a child of Key that gets used in place of Key?
I haven't found anywhere that explains those relations and that is the part that has me stumped.
If you are setting an integer for example, nbt.setInteger calls for two parameters, the key (String) and an integer. The key can be whatever you want it to be.
If you are setting an integer for example, nbt.setInteger calls for two parameters, the key (String) and an integer. The key can be whatever you want it to be.
bad choice of words on my part, I get that it stores information in key/value pairs. I was talking about the Key object from the wiki. A more relevant example to my needs:
I let the user design an item with certain properties. They can latter create that item using magic. What this would lead to me to think is that I need my own data structure to keep track of the designed items as ItemStacks with the associated NBTTagCompounds. I would then need to pass in that ItemStack every time I am using that item, using the relevant information in my overridden methods.
If I need to determine which ItemStack to send for every call, I don't know how it could be accomplished. I really hope I am wrong about how these get used and that I am just misunderstanding a bit about how ItemStacks are used and maintained.
Rollback Post to RevisionRollBack
"If It Is To Be It Is Up To Me" simple quote and I don't know where it comes from but I enjoy it.
Current Mod: Armerger | Light Drafter
bad choice of words on my part, I get that it stores information in key/value pairs. I was talking about the Key object from the wiki. A more relevant example to my needs:
I let the user design an item with certain properties. They can latter create that item using magic. What this would lead to me to think is that I need my own data structure to keep track of the designed items as ItemStacks with the associated NBTTagCompounds. I would then need to pass in that ItemStack every time I am using that item, using the relevant information in my overridden methods.
If I need to determine which ItemStack to send for every call, I don't know how it could be accomplished. I really hope I am wrong about how these get used and that I am just misunderstanding a bit about how ItemStacks are used and maintained.
Not entirely your fault, as I'm having a hard time getting at what you are trying to accomplish. So, you want users to be able to have an item, and change properties of that item (similar to Tinkers' Construct perhaps from a code point of view?).
What is here: at com.bribres.combatplus.help.RegisterHelper.registerItemRenderer(RegisterHelper.java:23)?
I'm back! Tutorials should start coming once again for 1.7 as requested. Based on the feedback I've received, I'm starting to re-write the tutorials from scratch, eliminating issues, fixing typos, and adding in features y'all requested (like code at the end of each tutorial). Anyways, if anyone else has suggestions, please let me know!
A setup tutorial has been released, and others will follow within the coming days!
Hmm. Can I see lines of code from the stacktrace? The one in you ClientProxy, Main Class, and ModItems.
These sound like amazing tutorials but I have one problem, I can't find them. When I go to the repository on github I just see the first 1.7 tutorial. This is really annoying to me because these tutorials are exactly what I want to learn modding. Someone please post a link to the 1.8 tutorial or at least explain what I am doing wrong. I'd really appreciate it if someone would help me.
EDIT: never mind the second I posted this I found them lol
I've re-done how tutorials are viewed, reverting back to the old ways. I think you would like that way more.
Also, Volume 3 (1.7) tutorials are going to start picking back up! I've looked at your comments about the tutorials, and am changing it up to better benefit y'all! Anyways, the 2nd tutorial (Main Class), has been finished. Others soon to follow.
First Thanks for tutorial. I hope you can help me for my error that I get in eclipse. I did every thing that you listed for setup. I didnt change any letter from eclipse but when I try to run in eclipse I get this error.
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[11:03:20] [main/INFO] [FML]: Forge Mod Loader version 7.2.211.1121 for Minecraft 1.7.2 loading
[11:03:20] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_79, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.7.0_79\jre
[11:03:20] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:03:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:03:20] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[11:03:21] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/RED/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1121/forgeSrc-1.7.2-10.12.2.1121.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[11:03:21] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[11:03:21] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/RED/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1121/forgeSrc-1.7.2-10.12.2.1121.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[11:03:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[11:03:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:03:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[11:03:21] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[11:03:21] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_79]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) ~[?:1.7.0_79]
at java.lang.Runtime.loadLibrary0(Runtime.java:849) ~[?:1.7.0_79]
at java.lang.System.loadLibrary(System.java:1088) ~[?:1.7.0_79]
at org.lwjgl.Sys$1.run(Sys.java:73) ~[lwjgl-2.9.0.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_79]
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.0.jar:?]
at org.lwjgl.Sys.loadLibrary(Sys.java:95) ~[lwjgl-2.9.0.jar:?]
at org.lwjgl.Sys.<clinit>(Sys.java:112) ~[lwjgl-2.9.0.jar:?]
at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2674) ~[Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:40) ~[Main.class:?]
... 6 more
Pls help me You cant know having tutorial but you stack in stup step how much disgusting.
Any body ?
Run this command:
Any chance you make a tutorial on halfblocks on 1.8?
I have mines done and working, as independent blocks, but would like to know how to make them all a single block as it's in the game~
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMaybe ask him when he gets to the 1.8 tutorials.
Also, they're called slabs.
Might not be for a while. I'm going back to 1.7 tutorials based on demand for now.
And, tutorial number 3 is out now. Items/Blocks should follow soon. After that, let me know what you need tutorials on, and I might be able to help you out with it!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI am working on a mod which would allow a user to design and create new items in-game based on a number of feature, but the possible combinations of features is well into the millions, so I couldn't possible hard code the combinations. From what I have read and from discussions I have had with other modder's it seems like creating a "generic Item" and defining the item during runtime using NBT's.
Unfortunately I haven't found any good tutorials on how to make and use NBT's.
If you know of any good tutorials or are willing to make one I would greatly appreciate it!
Current Mod: Armerger | Light Drafter
Yes, NBT's a very powerful once you learn how to use them, and open up an entirely new world of possibilities. I am definitely going to write a few tutorials on NBT data, but it might not be for a week or two (as well as depending on when I get the more important tutorials out). In the meantime, this is a good start.
I'm also revisiting what these tutorials will cover. Here is what I will definitely go over, and I may add more to it as time goes on:
As I said, if you have any suggestions, let me know!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumActually I have looked at that one a bit, but what I haven't been able to find is an example of where to put that code and how it should be used in other area's.
Using the example for the Key is there a KeyNBT class and does Key instantiate itself with the KeyNBT class or is KeyNBT a child of Key that gets used in place of Key?
I haven't found anywhere that explains those relations and that is the part that has me stumped.
Current Mod: Armerger | Light Drafter
(I'm doing the first tutorial - Step 2b) I'm trying to go with the tutorial, but when I tried and followed the directions, I got this message:
Last login: Mon Jul 13 16:14:31 on ttys000
TheSchargersMBP:~ sdsras$ cd /Users/sdsras/Desktop/Modding\ Workspace
TheSchargersMBP:Modding Workspace sdsras$ ./gradlew setupDecompWorkspace eclipse
-bash: ./gradlew: No such file or directory
TheSchargersMBP:Modding Workspace sdsras$
What's going on here?
If you are setting an integer for example, nbt.setInteger calls for two parameters, the key (String) and an integer. The key can be whatever you want it to be.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumbad choice of words on my part, I get that it stores information in key/value pairs. I was talking about the Key object from the wiki. A more relevant example to my needs:
I let the user design an item with certain properties. They can latter create that item using magic. What this would lead to me to think is that I need my own data structure to keep track of the designed items as ItemStacks with the associated NBTTagCompounds. I would then need to pass in that ItemStack every time I am using that item, using the relevant information in my overridden methods.
If I need to determine which ItemStack to send for every call, I don't know how it could be accomplished. I really hope I am wrong about how these get used and that I am just misunderstanding a bit about how ItemStacks are used and maintained.
Current Mod: Armerger | Light Drafter
Not entirely your fault, as I'm having a hard time getting at what you are trying to accomplish. So, you want users to be able to have an item, and change properties of that item (similar to Tinkers' Construct perhaps from a code point of view?).