Jump to content

On Player/Zombie Kill add 1 to Integer? (Counting Kills) [Need help!]


ScottehBoeh

Recommended Posts

I'm working on a new feature for my Mod that keeps count of Player and Zombie kills. When the player dies, it'll reset the count.

 

Any idea what methods are needed? I already have:

 

public Integer playerKills = 0;

public Integer zombieKills = 0;

public Integer minutesLived = 0;

 

and I'm trying to have those values go up when the player kills a Zombie.

 

Thanks!  :)

Link to comment
Share on other sites

I think that vanilla Minecraft already counts hoe many of each mob is killed by each player. Look into "stats" to see what's there and how to read the count of Zombie kills.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

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.