parent
5076a9f6e2
commit
205c45e25d
@ -239,26 +239,24 @@ object MRegistry {
|
||||
}
|
||||
|
||||
private fun initializeClient(event: FMLClientSetupEvent) {
|
||||
event.enqueueWork {
|
||||
ItemProperties.register(MItems.TRITANIUM_SHIELD, ResourceLocation(OverdriveThatMatters.MOD_ID, "blocking")) { stack, level, entity, _ ->
|
||||
if (entity?.isUsingItem == true && entity.useItem == stack) {
|
||||
1f
|
||||
} else {
|
||||
0f
|
||||
}
|
||||
ItemProperties.register(MItems.TRITANIUM_SHIELD, ResourceLocation(OverdriveThatMatters.MOD_ID, "blocking")) { stack, level, entity, _ ->
|
||||
if (entity?.isUsingItem == true && entity.useItem == stack) {
|
||||
1f
|
||||
} else {
|
||||
0f
|
||||
}
|
||||
}
|
||||
|
||||
ItemProperties.register(MItems.ENERGY_SWORD, ResourceLocation(OverdriveThatMatters.MOD_ID, "is_powered")) { stack, _, _, _ ->
|
||||
if ((stack.matteryEnergy?.batteryLevel ?: Decimal.ZERO) >= EnergySwordItem.ENERGY_PER_SWING) {
|
||||
1f
|
||||
} else {
|
||||
0f
|
||||
}
|
||||
ItemProperties.register(MItems.ENERGY_SWORD, ResourceLocation(OverdriveThatMatters.MOD_ID, "is_powered")) { stack, _, _, _ ->
|
||||
if ((stack.matteryEnergy?.batteryLevel ?: Decimal.ZERO) >= EnergySwordItem.ENERGY_PER_SWING) {
|
||||
1f
|
||||
} else {
|
||||
0f
|
||||
}
|
||||
}
|
||||
|
||||
ItemProperties.register(MItems.EXPLOSIVE_HAMMER, ResourceLocation(OverdriveThatMatters.MOD_ID, "is_primed")) { stack, _, _, _ ->
|
||||
if (MItems.EXPLOSIVE_HAMMER.isPrimed(stack)) 1f else 0f
|
||||
}
|
||||
ItemProperties.register(MItems.EXPLOSIVE_HAMMER, ResourceLocation(OverdriveThatMatters.MOD_ID, "is_primed")) { stack, _, _, _ ->
|
||||
if (MItems.EXPLOSIVE_HAMMER.isPrimed(stack)) 1f else 0f
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user