How do I make totems of undying drop items when they are used?

Started by bbbluess on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Mar 2023
Points:
177

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How do I make totems of undying drop items when they are used?

I'm making a mod where you can use a totem, but instead of it being gone, it turns into a "Dead totem", where when you forge it with a lapis block on a smithing table, its live again.

The problem is, how do I make the totem turn into a dead totem when said totem is used?

Active 1 day ago
Joined Sep 2022
Points:
419

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 200
There is an "entity uses a…
Sun, 03/03/2024 - 17:17

There is an "entity uses a totem" event trigger when creating a procedure. Use that and have it add 1 totem to the player's inventory.

Active 1 day ago
Joined Sep 2022
Points:
419

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 200
One dead totem, that is.
Fri, 03/22/2024 - 00:03

One dead totem, that is.