Jump to content

Recommended Posts

Posted

 

Good nigths lately i been doing this

 

thi zombie is supoused to have 40F of healt the double of the normal zombie, and the change must happen

wen remain betwin 75% and %50 of zombie health

but whenever i try to set this value like i would duid  whith any other mob the mob crash,  whithout close the game only the zombie dont spawns

i dont get  way normaly i just set the health in the applyEntityAttributes method() but

 

// #################################################################################################################
@Override
protected void applyEntityAttributes() {
	super.applyEntityAttributes();

	//health 40F 
	this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(40.0D);

}

 

it crash i dont spawn the mob

 

 

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.