You are browsing as a guest. Sign up (or log in) to start making projects!

8h 5m 8s logged

Potentia Fundamentals


Drehmal’s magic is very loosely defined, so I’ve taken the liberty of having the magic system be based on potentia, a property inherent to materials and souls that is sparsely mentioned in the map. It serves as a sort of inherent energy that can be extracted and utilized for magic.

Runecarver Lens


The Runecarver Lens (and its upgrade, the Precise Runecarver Lens) are items made for the viewing of potentia. The original version shows different particle icons based on the potentia value of a targeted object, while the upgrade displays exact numbers. That is the one shown here because I still need a model for the original.

Potentia is now a DataComponentType that I’ve used Fabric’s ConventionalItemTags to add as a default component to different categories of item. The system also adds potentia via item name based selection for extra compatibility and range. Items without predefined values fall back to 3 potentia.

Conditional Tooltip System


In MC 1.21.5 Mojang deprecated my beloved appendHoverText() method and now I’ve got to use the dastardly ItemTooltipProviderRegistry. This would be really nice, except I had no idea how to make tooltips conditional based on key press. I ended up adding two more DataComponentTypes: TooltipComponent and ConditionalTooltipComponent.

Both can be assigned as default components on item registration and thus make adding tooltips easier. ConditionalTooltipComponent also takes an additional condition property. It’s TooltipProvider is coded so that it only displays a ‘Hold key for more info’ text until said key is pressed.

0
2

Comments 0

No comments yet. Be the first!