mirror of
https://gitlab.bixilon.de/bixilon/pixlyzer.git
synced 2025-09-25 05:01:50 -04:00
generate: fluids, materials, voxel shapes, aabbs, item models
This commit is contained in:
parent
415082ed51
commit
46847c73e1
@ -92,18 +92,6 @@ object EntityGenerator : Generator(
|
||||
}
|
||||
entityData.addProperty("luck", it)
|
||||
}
|
||||
entity.attributes.getInstance(Attributes.SPAWN_REINFORCEMENTS_CHANCE)?.value?.let {
|
||||
if (it != entity2.attributes.getInstance(Attributes.SPAWN_REINFORCEMENTS_CHANCE)?.value) {
|
||||
return@let
|
||||
}
|
||||
entityData.addProperty("spawn_reinforcements_chance", it)
|
||||
}
|
||||
entity.attributes.getInstance(Attributes.JUMP_STRENGTH)?.value?.let {
|
||||
if (it != entity2.attributes.getInstance(Attributes.JUMP_STRENGTH)?.value) {
|
||||
return@let
|
||||
}
|
||||
entityData.addProperty("jump_strength", it)
|
||||
}
|
||||
|
||||
// entity.getEatingSound(ItemStack.EMPTY)?.let {
|
||||
// if (it != SoundEvents.GENERIC_EAT) {
|
||||
|
@ -37,9 +37,6 @@ object ItemGenerator : Generator(
|
||||
}
|
||||
// itemData.addProperty("default_destroy_speed", item.getDestroySpeed(ItemStack.EMPTY, Registry.BLOCK.get(Registry.BLOCK.defaultKey).defaultBlockState()))
|
||||
|
||||
item.eatingSound?.let {
|
||||
itemData.addProperty("eating_sound", Registry.SOUND_EVENT.getId(it))
|
||||
}
|
||||
|
||||
if (item is BlockItem) {
|
||||
itemData.addProperty("block", Registry.BLOCK.getId(item.block))
|
||||
|
Loading…
x
Reference in New Issue
Block a user