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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user