Skip to content

Commit

Permalink
Added partial latex entity tag to remove grab ability. #1087
Browse files Browse the repository at this point in the history
  • Loading branch information
LtxProgrammer committed Oct 6, 2024
1 parent 18cb263 commit 32cf45a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,11 @@ public Builder(Supplier<EntityType<T>> entityType) {
this.entityType = entityType;

var event = new UniversalAbilitiesEvent(this.abilities);
event.addAbility(event.isOfTag(ChangedTags.EntityTypes.LATEX), ChangedAbilities.SWITCH_TRANSFUR_MODE);
event.addAbility(event.isOfTag(ChangedTags.EntityTypes.LATEX)
.and(event.isNotOfTag(ChangedTags.EntityTypes.ARMLESS)), ChangedAbilities.GRAB_ENTITY_ABILITY);
.and(event.isNotOfTag(ChangedTags.EntityTypes.PARTIAL_LATEX)), ChangedAbilities.SWITCH_TRANSFUR_MODE);
event.addAbility(event.isOfTag(ChangedTags.EntityTypes.LATEX)
.and(event.isNotOfTag(ChangedTags.EntityTypes.ARMLESS))
.and(event.isNotOfTag(ChangedTags.EntityTypes.PARTIAL_LATEX)), ChangedAbilities.GRAB_ENTITY_ABILITY);

MinecraftForge.EVENT_BUS.post(event);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class ChangedTags {
public static class EntityTypes {
public static final TagKey<EntityType<?>> HUMANOIDS = create("humanoids");
public static final TagKey<EntityType<?>> LATEX = create("latexes");
public static final TagKey<EntityType<?>> PARTIAL_LATEX = create("partial_latexes");
@Deprecated public static final TagKey<EntityType<?>> ORGANIC_LATEX = create("organic_latex");
public static final TagKey<EntityType<?>> PALE_SMALL_EXPOSURE = create("pale_small_exposure");
public static final TagKey<EntityType<?>> PALE_LARGE_EXPOSURE = create("pale_large_exposure");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"changed:dark_latex_wolf_partial"
]
}

0 comments on commit 32cf45a

Please sign in to comment.