Jump to content

1.10.2 How to make your entity get a potion effect from damage sources.


TheRPGAdventurer

Recommended Posts

If you don't want the random part, just delete it (everything after the && and the && itself). As you seem to be struggling with pretty basic stuff (contitions) I would STRONGLY suggest that you go and learn a bit more java and then come back.

  • Like 2
Link to comment
Share on other sites

Just now, Alpvax said:

If you don't want the random part, just delete it (everything after the && and the && itself). As you seem to be struggling with pretty basic stuff (contitions) I would STRONGLY suggest that you go and learn a bit more java and then come back.

I get it now, it spawns like the wither skeletons in the nether, most of them will be wither but some of them will be ordinary skeletons, that's why I keep seeing ordinary END dragons in the overworld, I fixed it by changing the default breed END to one of my gem breeds, so it would generate an illusion that the former END dragons that will be spawned will be ruby. If I only knew how to do it  that it will only fully spawn the breed I set it.

Edited by TheRPGAdventurer
wrong grammar
Link to comment
Share on other sites

I have a feeling that what you actually want is to roll the random once and compare its value in each of the five statements.

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

5 hours ago, TheRPGAdventurer said:

If i put == 0 will it include 0?

It you check that it equals zero, then it will only be true when the random number is exactly zero; in other words, it will make it spawn the Ruby type 1/6 of the time instead of 5/6.

 

EDIT Whoops, a bit of a delayed response; I should have refreshed the page before replying. Sorry.

Edited by IceMetalPunk
  • Like 1

Whatever Minecraft needs, it is most likely not yet another tool tier.

Link to comment
Share on other sites

1 hour ago, TheRPGAdventurer said:

Exactly

Then you should do that. Calling random again generates a new random number.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

51 minutes ago, TheRPGAdventurer said:

the problem is I don't know how?

Seriously?

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.