Posted November 14, 20168 yr Code: https://gist.github.com/GodsVictory/17deb7dffc9b9549146febb57a370faa Works fine in SP, but when I test on MP, the onbreak event is never triggered. What am I doing wrong?
November 14, 20168 yr Someone tell me that code is wrong? looks wrong to me try something more or less like this.. Main Mod class My Event Manager (you don't have to make a manager, this is just my chosen design) One of the Event Classes Currently updating my Mod to 1.10.2 https://bitbucket.org/hugo_the_dwarf/riseoftristram2016/src?at=master
November 14, 20168 yr Someone tell me that code is wrong? looks wrong to me try something more or less like this.. Main Mod class My Event Manager (you don't have to make a manager, this is just my chosen design) One of the Event Classes His code is correct except maybe one thing. I believe it should be registered in preInit. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
November 14, 20168 yr Author Well, I solved it, but I'm still unsure why the above wasn't working. It seems using System.out.println with a boolean value doesn't always work, but adding random text before the boolean does. I changed it to System.out.prinln("asdf"+allowBreak); and it fired.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.