-
Content Count
44 -
Joined
-
Last visited
-
Days Won
1
CAS_ual_TY last won the day on August 29
CAS_ual_TY had the most liked content!
Community Reputation
11 GoodAbout CAS_ual_TY
-
Rank
Tree Puncher
Recent Profile Visitors
-
[1.14.4] Changing / Removing Vanilla Content
CAS_ual_TY replied to MineModder2000's topic in Modder Support
Resource pack -
[1.12.1] Making a mod that notify player when inventory is full
CAS_ual_TY replied to Gess1t's topic in Modder Support
Thread.sleep(10000); -
[1.12.1] Making a mod that notify player when inventory is full
CAS_ual_TY replied to Gess1t's topic in Modder Support
Not even that. The code you quoted does not even run the for bracket once. -
[1.12.1] Making a mod that notify player when inventory is full
CAS_ual_TY replied to Gess1t's topic in Modder Support
Post your full Main.class and MOD.class so we can see the different lines. This is your error btw (shouldnt be hard to fix with java knowledge): Caused by: java.lang.NullPointerException at Gess.mod.Main.<init>(Main.java:38) -
[1.12.1] Making a mod that notify player when inventory is full
CAS_ual_TY replied to Gess1t's topic in Modder Support
Yes blame the "lack of documentation". Totally not your java "knowledge". You also totally did not try to implement code that has such an obvious syntax error that someone with actual java knowledge would immediately see and be able to fix. Everything you need to do has been explained in this thread (and also the thread you linked where you stole the code from). Making this mod probably takes about 5 minutes. -
[1.12.1] Making a mod that notify player when inventory is full
CAS_ual_TY replied to Gess1t's topic in Modder Support
The main mistakes here are lack of java knowledge. - In your topic you create a new instance of something, but nothing is being done with it, nothing gets called because of instantiation. - In your last example your syntax does not work at all (as pointed out already). These are things that have nothing to do with forge documentation. Surely there are things you have to know beforehand, but these are all listed here (itemstacks are point 12): Again, if you show me how you implemented my previous suggestion(s) I can help you with it. -
[1.12.1] Making a mod that notify player when inventory is full
CAS_ual_TY replied to Gess1t's topic in Modder Support
Unless you show us how you did it there is no way we can help you. -
[1.12.1] Making a mod that notify player when inventory is full
CAS_ual_TY replied to Gess1t's topic in Modder Support
The annotation basically tells forge "ey there is an event here". Then forge checks which parameter that method has and sends the corresponding event. Just as a simple explanation. So you subscribe to the tick event and in there you create a new instance of invChk every single tick. And in there you dont even call the method. The annotation doesnt work in invChk since there are no method params. Solution: add the client tick event parameter to the method in invChk instead (remove the entire thing in your mod class) and then pass an instance of said class to MinecraftForge.EVENT_BUS.register -
Need Example - How to create Scrollable Lists in GuiScreens
CAS_ual_TY replied to nxtVentix's topic in Modder Support
Read the thread I linked. It tells you how to do it. Or options on how to do it. -
Need Example - How to create Scrollable Lists in GuiScreens
CAS_ual_TY replied to nxtVentix's topic in Modder Support
These are your options listed in there. I have given my own implementation which in the current state you can find here: https://github.com/CAS-ual-TY/Visibilis/blob/c03f6972e3dc2845dbbdcc271ba1eee5b64a2bfc/src/main/java/de/cas_ual_ty/visibilis/util/RenderUtility.java#L410 (scissor methods, feel free to use these yourself) The only thing is that you have to account for mouse position. There is no hacky way around that, you have to do old fashion calculations. -
81 is the ruby block item. Does the block registry fire before the item registry in 1.13? I think ruby_block is null at that call: BlockList.ruby_block.getRegistryName()
-
tagCompound.getTag(itemsIn2); This is returning null. So your sub compound does not exist. Make sure you got all the keys right
-
No. The code IS run when a skeleton dies to a zombie. There are more than 2 if brackets. Or am I missing smth here?
-
Show it.