Cockroach Gib when Stepped on (#40103)

* Cockroach Gib

* Prevent Cockroaches From Gibbing Eachother

* Added - type: RandomChanceTriggerCondition

* Update animals.yml

* Named SuccessChance Datafield

* successChance

* Revert Change

* Uncapitalize C

* RECAPITALIZE THE C
This commit is contained in:
FungiFellow
2025-09-13 03:01:13 -04:00
committed by GitHub
parent 0ba1a7c4dd
commit bcc30813e9

View File

@@ -341,7 +341,7 @@
- type: TimedDespawn #delete the egg after the chicken spawns
lifetime: 21
- type: entity # TODO: figure out how to make these guys gib when stepped on
- type: entity
name: cockroach
parent: SimpleMobBase
id: MobCockroach
@@ -426,6 +426,13 @@
- !type:GibBehavior
recursive: false
- type: NonSpreaderZombie
- type: StepTrigger
requiredTriggeredSpeed: 1
- type: TriggerOnStepTrigger
- type: RandomChanceTriggerCondition
successChance: 0.2
- type: GibOnTrigger
- type: ProtectedFromStepTriggers
- type: MeleeWeapon
soundHit:
path: /Audio/Effects/bite.ogg