Posted April 3, 201312 yr How can I stop a player from crafting any particular item? Including vanilla items? There doesn't seem to be any Event for this particular purpose. I figured I'd just be able to cancel an event but no dice. Thanks!
April 8, 201312 yr Author This is going to be fun. The ones I need to wrap? All of them! (Well, not all of them, but a lot) I'll let you know if this works.
April 9, 201312 yr Author I've run into a problem. When I need to access the private fields eventHandler and thePlayer, well, they're private. (Duh.) Am I going to need to use access transformers to get this to work? (Not quite familiar with them. Although it seems it's time for me to learn.) Or am I missing something obvious? Thanks!
April 21, 201312 yr Author I got the code written, but I'm having a problem. I'm trying to block players from crafting based on their level. It would appear as if the matches method is not being overrode. I stuck a println statement in there and sure enough, my version of matches never seems to be called. It seems to be obvious, but I'll ask anyway: when is matches called? Otherwise, can you see any different problems? Thanks! Here's the relevant code: FejRecipeShaped http://pastebin.com/Dy90uFb3 FejRecipeHandler http://pastebin.com/aHEWxKjz
April 21, 201312 yr Author I got the code written, but I'm having a problem. I'm trying to block players from crafting based on their level. It would appear as if the matches method is not being overrode. I stuck a println statement in there and sure enough, my version of matches never seems to be called. It seems to be obvious, but I'll ask anyway: when is matches called? Otherwise, can you see any different problems? Thanks! Here's the relevant code: FejRecipeShaped http://pastebin.com/Dy90uFb3 FejRecipeHandler http://pastebin.com/aHEWxKjz
April 23, 201312 yr Author Thanks for the recipe code! As for the replacing code: as it turns out, after adding in the access transformers, the Init method is no longer called. I forgot to add the @Mod annotation back in. It's always the little things. As for the recipe code itself, it works wonderfully so far! Thank you so much!
April 23, 201312 yr Author Thanks for the recipe code! As for the replacing code: as it turns out, after adding in the access transformers, the Init method is no longer called. I forgot to add the @Mod annotation back in. It's always the little things. As for the recipe code itself, it works wonderfully so far! Thank you so much!
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.