-
Posts
3624 -
Joined
-
Last visited
-
Days Won
58
Everything posted by Cadiboo
-
The one in the link is the crash report, not the latest.log My bad, I thought it was a single file gist
-
Post the latest.log, it’s the next best thing
-
Have you tried debugging your code?
-
The official launcher is preferred, there really should be a log file at .minecraft/logs/debug.log
-
Your code could be cleaned up a bit (you don’t really need set/getField), made more readable (extract logic to functions) and simplified (your hasCapability method) but it looks pretty good IMO
-
LivingJumpEvent issues: Firing twice, not finding capability/NBT
Cadiboo replied to Alekseyev's topic in Modder Support
Checking if 2 integers are equal (one of them being a constant) and incrementing an integer will have a negligible performance impact. It is probably more performance intensive to just call your subscribed method. -
[1.12.2] Drawing Cube Through TileEntitySpecialRenderer
Cadiboo replied to unassigned's topic in Modder Support
There’s a tutorial out there somewhere on how to draw a sphere with GLStateManager, however it’s pretty bad for performance as it uses OpenGL instead of the BufferBuilder Heres a link, I’ll try and find the actual tutorial https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/modification-development/2241469-creating-a-sphere -
Neither a tile entity nor ITickable is needed here, you can just override onNeighbourChanged. Edit: you may need to override hasTileEntity and return true, but still return null from createTileEntity (this is perfectly fine and doesn’t break anything) for onNeighbourChanged to fire for your block. Check without doing this first though
-
Not sure what mod could be causing it. It could be any mod that modifies blockstates and/or blocks i.e. 95% of mods. It could happen if a mod accesses the minecraft world from another thread. From your crash it seems to happen when leaves are broken, and from you saying it’s random i think it might be from decay. I think that making a (void) test world and filling it with decayable leaves, then attaching a debugger to the server, putting a breakpoint at getDrops and turning up the random tick speed would be the best way to debug what makes the crash happen, unless I’m wrong about the cause of the crash. I don’t see a simple resolution to this issue (if it’s caused by what I think it is). You could try looking through the issues on the mods on the pack and seeing if it has already been reported to one of them. You should also try removing your coremods and seeing if that fixes your issue.
-
LivingJumpEvent issues: Firing twice, not finding capability/NBT
Cadiboo replied to Alekseyev's topic in Modder Support
You can’t access the player from another thread -
Why do you have “forge marker in there” show your BlockState json
-
[1.12.2] How to check if a player is connected to the server?
Cadiboo replied to WaningMatrix's topic in Modder Support
Don’t use names, use UUIDs, and you probably want to `break` on success -
You should use Structure Blocks to save your structures, and then load them with similar code. This provides user-customisability, code readability and solves your problem
-
Adding a new HUD Element is breaking existing elements.
Cadiboo replied to Javisel's topic in Modder Support
You need to rebind the textures that Minecraft expects to be in place, they can be found at GuiInGame and/or GuiInGameForge -
Required Java conventions What: Lowercase package naming Why: Some file systems (windows) considering “iTeMs” and “items” to be the same, but every other one considering them to be different. Consequences: Not doing this _may_ never cause any issues (and very likely won’t in your dev environment), but on other operating systems with different case-sensitivities from yours this can cause massive problems. How: Name your packages all in lowercase What: Packaging that reflects your web presence Why: Avoid name collisions - your web presence is unique so it is commonly used. Consequences: Errors loading classes with other mods installed, usually happens when 2 mods never changed their packaging from the default in the MDK. How: If you have an illegal character in your web presence, the convention is to replace it with “_”. If you don’t have a website, you can use your version-control repository as your web presence, e.g. “com.github.username”. If you don’t use version control, start using it! In the meantime you can use the packaging “mod.username.modid”. Do not use IInventory. Use the capability API with IItemHandler. Why? its legacy vanilla code, and bad at that. it also prevents you from having hoppers hopper-like machines, pipes etc. interface with your TileEntity, and breaks compatibility with other mods
-
[1.8.9] How to check if a player name is connected to the server?
Cadiboo replied to WaningMatrix's topic in Modder Support
1.8.9 is no longer supported on these forums due to its age (no-one knows how to make mods for it anymore) are you willing to update to 1.12.2 (if you aren't you won't receive support) -
[Help] Not able to launch forge client for the first time.
Cadiboo replied to Alladin's topic in Support & Bug Reports
Try updating your graphics drivers -
What forge version are you on? IIRC there was a bug with this, but I also think it's been patched
-
Is the server "stuttering" (entities stopping then moving very fast, block-lag)? Or is the client "stuttering" (frames dropped, movement isn't smooth)
-
Repo: https://github.com/Cadiboo/Squeezable-Cacti Recipe creation: https://github.com/Cadiboo/Squeezable-Cacti/blob/master/src/main/java/io/github/cadiboo/squeezablecacti/EventSubscriber.java#L33-L77 JSON Advancement: https://github.com/Cadiboo/Squeezable-Cacti/blob/master/src/main/resources/assets/squeezable-cacti/advancements/recipes/misc/minecraft_bucket_0-cacti_4.json
-
It won't on the client?
-
Those values are pretty good. Mean tick time should be under 50ms, there should be 20 ticks per second. What exactly do you mean by "lag"