Перейти к содержимому
Mineforgian

HexJS

Adds Hexcasting support for KubeJS!

Загрузки
2K
Подписчики
11
Обновлён
29 июля 2024 г.
Лицензия
MIT

Опубликован 22 июля 2024 г.

About

HexJS is a mod integrating Hexcasting and KubeJS for modpack makers and server owners.

Features

Whitelists and Blacklists

The server and each player has their own list of patterns they can cast, this list can either be a whitelist, or a blacklist. (Default is an empty blacklist)

The per-player lists are persistent, while the global list is not. If there is a conflict, the per-player list takes priority.

Tip: Blocking the base number literal (0) for either positive or negative numbers will block all numbers of that type

Redirects

The server and each player has their own list of redirects which redirect a drawn pattern to another pattern, this is handled after the whitelists and blacklists.

Only 1 pass is done so it is easily possible to swap the effects of 2 patterns. If there is a conflict, the per-player redirect takes priority.

Custom Patterns

This is probably what most of you are here for, the ability to make your own patterns and spells, all from inside KubeJS!

This happens in 2 parts, first you register the pattern with a name and such, and then you check if the pattern in question was the one cast in the registeredPatternCastEvent to do your logic. This can be used to override existing patterns.

Pre-Imbued Casting Items

Create cyphers, trinkets, and artifacts with pre-imbued spells and media!

This can be used for loot chests, mob drops, and more!

Force Casting

Cast any list of patterns as any player from KubeJS!

This can be used for proxies as well as making fake players from CarpetMod cast spells!

Misc

  • Ability to create custom ancient scrolls.

  • Ability to get the angle signature of Great Spells from KubeJS.

  • Ability to set a max length for Bookkeeper's Gambit. (Global and/or Per-Player, as per Whitelists and Blacklists)

Disclaimer

Due to most of my testing happening on Fabric, there may be a lot more bugs on the Forge version of this mod.

Please do report any bugs you find on the Github. Thank you in advance!

Ченджлог

1.1.1Релиз1.19.2, 1.19.3, 1.19.4 · 29 июля 2024 г.

This update fixes an oversight in the cost system for custom patterns which allowed players to infinitely cast if they were not able to pay for the spell.

Changes:

  • Removed getCost method from registeredPatternCastEvent.
  • Removed setCost method from registeredPatternCastEvent.
  • Removed setCostInDust method from registeredPatternCastEvent.
  • Added tryConsumeMedia method from registeredPatternCastEvent which takes in an integer for how much media to consume, and returns an integer representing the amount it was not able to consume of the requested amount, 0 if it consumed enough, or a negative number if it over-consumed due to lack of appropriately sized media containers
1.1.1Релиз1.19.2 · 29 июля 2024 г.

This update fixes an oversight in the cost system for custom patterns which allowed players to infinitely cast if they were not able to pay for the spell.

Changes:

  • Removed getCost method from registeredPatternCastEvent.
  • Removed setCost method from registeredPatternCastEvent.
  • Removed setCostInDust method from registeredPatternCastEvent.
  • Added tryConsumeMedia method from registeredPatternCastEvent which takes in an integer for how much media to consume, and returns an integer representing the amount it was not able to consume of the requested amount, 0 if it consumed enough, or a negative number if it over-consumed due to lack of appropriately sized media containers
1.1.0Релиз1.19.2, 1.19.3, 1.19.4 · 26 июля 2024 г.

Additions

  • Added custom iota types!
  • Added isInAmbit method for registeredPatternCastEvent to check if a location is in ambit of the caster

Fixes

  • Fixed force casting not working on survival players with no casting equipment
1.1.0Релиз1.19.2 · 26 июля 2024 г.

Additions

  • Added custom iota types!
  • Added isInAmbit method for registeredPatternCastEvent to check if a location is in ambit of the caster

Fixes

  • Fixed force casting not working on survival players with no casting equipment
1.0.0Релиз1.19.2, 1.19.3, 1.19.4 · 22 июля 2024 г.

Initial Version

1.0.0Релиз1.19.2 · 22 июля 2024 г.

Initial Version

Комментарии

Загружаем…