feat: pick up item
This commit is contained in:
parent
f451a4b868
commit
b1f44ff2db
@ -64,6 +64,10 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
setCanPickUpLoot(true)
|
||||||
|
}
|
||||||
|
|
||||||
override fun finalizeSpawn(
|
override fun finalizeSpawn(
|
||||||
serverLevelAccessor: ServerLevelAccessor,
|
serverLevelAccessor: ServerLevelAccessor,
|
||||||
difficultyInstance: DifficultyInstance,
|
difficultyInstance: DifficultyInstance,
|
||||||
@ -139,6 +143,7 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
|
|||||||
super.readAdditionalSaveData(tag)
|
super.readAdditionalSaveData(tag)
|
||||||
shapeTag = tag.getCompound(KEY_ENTITY_SHAPE)
|
shapeTag = tag.getCompound(KEY_ENTITY_SHAPE)
|
||||||
readInventoryFromTag(tag)
|
readInventoryFromTag(tag)
|
||||||
|
setCanPickUpLoot(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun shouldShowName() = true
|
override fun shouldShowName() = true
|
||||||
|
Loading…
Reference in New Issue
Block a user