Skip to main content

EntityBuilder

NameTypeDescriptionOptionalDefault
attributeModifiersMultimap<Attribute, AttributeModifiers>The attribute modifiersYesNone
persistentDataMap<String, Object>The persistent dataYesNone
typeEntityTypeThe typeNoN/A
nameStringThe name, can have colorsYes""
healthdoubleThe healthYesMaximum
nameVisiblebooleanWhether the name should be visibleYesfalse
gravitybooleanWhether the entity should be affected by gravityYestrue
aibooleanWhether the entity should have AIYestrue
invisiblebooleanWhether the entity should be invisibleYesfalse
glowingbooleanWhether the entity should glowYesfalse
canPickupItemsbooleanWhether the entity should be able to pick up itemsYesfalse
visualFirebooleanWhether the entity should look as if it is on fireYesfalse
adultbooleanWhether the entity should be an adultYesfalse
helmetItemWrapperThe helmetYesNone
chestplateItemWrapperThe chestplateYesNone
leggingsItemWrapperThe leggingsYesNone
bootsItemWrapperThe bootsYesNone
itemInMainHandItemWrapperThe item in the main handYesNone
itemInOffHandItemWrapperThe item in the offhandYesNone
{
"type": "ZOMBIE",
"name": "%blue%Frozen Baby Zombie",
"nameVisible": true,
"gravity": false,
"ai": false,
"glowing": true,
"adult": false,
"helmet": {
"material": "LEATHER_HELMET"
}
}