Jump to content

Recommended Posts

Posted

Hey, I'm Schilcote, and I'm just getting started with Forge/Minecraft modding (I dabbled in it a little bit a long time ago, but didn't learn much).

 

I need a few pointers on where to get started with my first mod. I've got the basics down- I know how to make an item and a block, and I somewhat understand the idea of these sided proxy thingies, so now I'm getting down into mechanics code.

 

The first thing I need advice as to how to do is this: I have an item that I want to drop once the player breaks his 1024th stone block. I need it to spawn exactly once. How would I go about this?

Posted

Ah, that makes sense. Surprisingly straight-forward. Lemme try writing some code now...

 

EDIT:

 

Though I'm 99.9% sure you can't just stick fields on things willy-nilly like you can in Python. So how would I store this information?

Posted

Made some mock up code, and couple of problems:

1)HarvestCheck is apparently called a lot. Like, every time out click on it. Also, only called when you try to harvest without a tool, which is odd.

2)HashMap wouldn't work, since you still need to be able to save inbetween server restarts.

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.