Magic Totems

Magic Totems

2.4k Downloads

Various totems appear in the world. Each is endowed with different magical properties. Some of them can save your life, others can take it away.

Found totems can be activated to receive a potion effect. After that, the totem cannot be used for some time.

Totems can contain any potion effect (configurable).

By default, you can collect totems with a silk touch tool.

How to change drop from totems:

To modify loot from totems, you need to make a data pack that will contain your custom loot tables.

The mod contains six loot tables, two for each totem (top and bottom block), bottom and top blocks loot tables should be similar.

By default, these loot tables make totems drop itself only when broken with a silk touch tool and copy its effect.

There are three example loot tables that can help you understand how to change drops from totems. Note that all three are made for a surface totem block.

Config explanation:

max_amplifier

 Maximum amplifier of applied potion effect

 Should always be higher or equal to zero

min_duration, max_duration

 Should always be higher than zero

min_cooldown, max_cooldown

Should always be higher than zero

shuffle

If set to true, totem effect will be randomized after each use

mystery_icon

If set to true, the effect icon will be replaced with a mystery icon

reveal_after_use

 If set to true, mystery effect will reveal after use

blacklist

List of effects that should not be found in totems

 Example: blacklist = ["minecraft:mining_fatigue","minecraft:instant_damage"]

You can also use value <mod_id>:* to blacklist whole mod's effects

 Example: blacklist = ["survive:*"]

 WARNING: Do not blacklist all the effects in game or the mod will crash

whitelist

List of effects that should be found in totems

 Example: whitelist = ["minecraft:instant_health","minecraft:regeneration"]

You can also use value <mod_id>:* to whitelist whole mod's effects

 Example: whitelist = ["minecraft:*"]

exclude_negative

If set to true, no harmful effects will be found in totems

play_sounds

Whether to play sounds when using a totem

If you want to support me: