Skip to content

Commit

Permalink
slight cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MoriyaShiine committed May 28, 2024
1 parent 126e961 commit 0463056
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Respawnable Pets
This mod allows your tamed pets to respawn once you next sleep in a bed, with a configurable blacklist via
the `respawnablepets:cannot_respawn` entity_types tag. Respawning is toggled with a new item, the Etheric Gem, which
This mod allows your tamed pets to respawn once you next sleep in a bed, except for entities in the `respawnablepets:cannot_respawn` entity_types tag. Respawning is toggled with a new item, the Etheric Gem, which
only works on pets you own.

Toggling respawn status is done via interacting [Use Item/Place Block] with a pet. You can also set multiple pets in a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import moriyashiine.respawnablepets.common.RespawnablePets;
import net.minecraft.entity.EntityType;
import net.minecraft.registry.Registries;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.registry.tag.TagKey;

public class ModEntityTypeTags {
public static final TagKey<EntityType<?>> CANNOT_RESPAWN = TagKey.of(Registries.ENTITY_TYPE.getKey(), RespawnablePets.id("cannot_respawn"));
public static final TagKey<EntityType<?>> CANNOT_RESPAWN = TagKey.of(RegistryKeys.ENTITY_TYPE, RespawnablePets.id("cannot_respawn"));
}

0 comments on commit 0463056

Please sign in to comment.