-
Posts
3624 -
Joined
-
Last visited
-
Days Won
58
Everything posted by Cadiboo
-
A coremod that messes with time, light or entities probably. Serene seasons would be my prime suspect
-
How do i make a block with a model, that it two blocks high?
Cadiboo replied to Drachenbauer's topic in Modder Support
You can use World#setBlockState to place the 2nd block, and just have your 2nd block have an empty model with the particle texture being the same as your 1st blocks model. -
https://github.com/octarine-noise/simpledeobf/blob/master/README.md
-
[1.13.2] Modifying vanilla ore generation 1.13+?
Cadiboo replied to treebranch's topic in Modder Support
Why not just use a HashSet? Also there’s probably a better event for what you want (like the chunk decorate event) -
Why does forge create a custom class in ASMEventHandler
Cadiboo replied to codedcosmos's topic in Modder Support
The name of the class is in the format ASMEventHandler_ID_callbackClassSimpleName_callbackMethodName_eventSimpleName. I’m using “ExampleClientSubscriber#onModelBake(ModelBakeEvent)” as the callback for the for the example instance event subscriber and “ExampleClientSubscriber.onModelBake(ModelBakeEvent)” as the example callback for the static event subscriber. I’m also assuming the ID is 0. The generated class looks like 1) Instance Event Subscriber package net.minecraftforge.eventbus: public class ASMEventHandler_0_ExampleClientSubscriber_onModelBake_ModelBakeEvent extends Object implements IEventListener { public Object instance; //this could be made final public ASMEventHandler_0_ExampleClientSubscriber_onModelBake_ModelBakeEvent(Object unnamedParameter) { super(); this.instance = unnamedParameter; } @Override //Obviously @Override isn’t actually inserted, I put it here for clarity public void invoke(Event unnamedParameter) { this.instance.onModelBake((ModelBakeEvent) unnamedParameter); } } 2) Static Event Subscriber (the event parameter isn’t named, but I can’t edit the code block because I’m on mobile) package net.minecraftforge.eventbus; public class ASMEventHandler_0_ExampleClientSubscriber_onModelBake_ModelBakeEvent extends Object implements IEventListener { public ASMEventHandler_0_ExampleClientSubscriber_onModelBake_ModelBakeEvent() { super(); } @Override //Obviously @Override isn’t actually inserted, I put it here for clarity public void invoke(Event event) { // there seems to be an ALOAD 0 here that should only be in the non-static event subscriber? Doesn’t really effect anything though. ExampleClientSubscriber.onModelBake((ModelBakeEvent) event); } } -
Why does forge create a custom class in ASMEventHandler
Cadiboo replied to codedcosmos's topic in Modder Support
It makes an IEventListener that calls an arbitrary method (specifically one marked with @SubscribeEvent) when invoked. This allows events to be piped to event handlers without caring what those event handlers are. The call hierarchy is EventBus.post -> IEventListener.invoke (a ASMEventHandler) -> IEventListener.invoke (ASMEventHandler.handler) -> @SubscribeEvent method -
Why does forge create a custom class in ASMEventHandler
Cadiboo replied to codedcosmos's topic in Modder Support
Do you want to know what the code does (what the ASM code does and compiles to) or what it is useful for (why it exists)? -
1) download the forge installer from the official forge website 2) run the forge installer 3) select the forge profile/create a new profile with Forge as the version 4) launch this profile (play the game) if you have issues at step 1 with chrome blocking the download If you have problems with step 2 with not being able to run the installer as a java application If you have problems with step 3 and aren’t able to see any forge version then post your logs from the installer (the installer logs are generated in the same folder and the installer) If you have problems with step 4 and can’t play minecraft, post your debug.log (or latest.log if you don’t have a debug.log) as described in my signature and the EAQ.
-
This is a vanilla server, not a forge one.
-
You should have a log that looks like that though
-
That log looks fine to me
-
Please post your debug.log If it’s too big for these forums please use a service like Pastebin or GitHub Gist
-
Please post your logs as described in my signature and the EAQ, and your computer specs.
-
[1.13.2] How do I make custom music discs and sounds?
Cadiboo replied to Professor_Boxtrot's topic in Modder Support
A lot has changed in general, but nothing has changed with sounds. -
I was thinking of only updating the data on the logical client which obviously wouldn’t work well
-
The installer creates its log in the same folder as the installer
-
The game crashes at “updateTimeLightAndEntities”, it’s likely a coremod causing issues
-
Disable button not working for any mods
Cadiboo replied to ondosplay's topic in Support & Bug Reports
Universally disabling mods was never implemented in 1.12.2 and lower, and it was completely removed in 1.13.2 (mods that would have used it will now have a disable/enable switch in their config. -
This is continued from discord. @The Box is trying to make a multiplayer-compatible camera mod. I said that this was because the code was being run on the server thread, and that I couldn’t think of a way to do what they wanted, so they should ask on the forums. The easiest solution would to just run everything on the client, but this will cause desyncs even in singleplayer.