Jump to content

Recommended Posts

Posted (edited)

So I'm new to modding, and honestly don't intend on doing more than this little project. I've got a basic understanding of general coding, and through tutorials and forum help, I think I have the basic mod framework and an example of the methods I want written up in Eclipse.

My issue is that while the code in Eclipse has no errors, and the mod is recognized in the test game environment, the behaviour I'm trying to achieve just isn't occurring. Being very new to Java, my best guess is that the ClientProxy I set up following the tutorial is missing something I need, since the tutorial set it up including a "ModelLoader" function, which I assume was related to adding an item into the game, which the tutorial was working towards as a first lesson (which I completed successfully, but removed the resources and the code related to adding the item, besides what's in ClientProxy and CommonProxy since that's what I'm wondering about).

(Edit) Here's my github:

https://github.com/VulpixUsedEmber/ECMining/tree/master/ECMining

Everything besides the "CustomEvent" class was set up AFAIK as a basic mod framework from a tutorial, possibly with a few things (like ModelLoader) included for adding items. The actual behaviour I'm trying to achieve through CustomEvent is to check the player's held pickaxe against a required pickaxe when mining a given block, canceling the BreakEvent if it doesn't match, and allowing it if it does match.
 

(Edit) Also ignore the "Tutorial Mod 2" in the Reference, I had copied over the code in a new workspace to make it clean for posting, and missed a spot.

Edited by VulpixUsedEmber
Improper code posting

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.