File tree Expand file tree Collapse file tree
docs/geneticsresequenced/devs Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments