Skip to content

Commit 4a5584b

Browse files
committed
docs
1 parent 026ed37 commit 4a5584b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

docs/geneticsresequenced/devs/kubejs.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ NativeEvents.onEvent("dev.aaronhowser.mods.geneticsresequenced.event.custom.Gene
3434
### [ModifyEntityGenesEvent](https://github.com/Berry-Club/Genetics-Resequenced/blob/NeoForge-1.21/src/main/kotlin/dev/aaronhowser/mods/geneticsresequenced/event/custom/ModifyEntityGenesEvent.kt)
3535

3636
```js
37-
NativeEvents.onEvent("dev.aaronhowser.mods.geneticsresequenced.event.custom.ModifyEntityGenesEvent", event => {
38-
if (event.entity.name == "1aaron5") {
39-
console.log("Aaron!")
37+
NativeEvents.onEvent("dev.aaronhowser.mods.geneticsresequenced.event.custom.ModifyEntityGenesEvent", (event) => {
38+
if (event.entityType.location().toString() == "minecraft:cow") {
39+
let milky = toGeneRk("geneticsresequenced:milky");
40+
event.geneWeights.remove(milky)
4041
}
41-
})
42+
});
4243
```
4344

4445

0 commit comments

Comments
 (0)