Skip to content

Mana Pool

Available in all versions

Picture

!Image of the Mana Pool block

Mana Pools are used to store mana. They are also used to craft items.

Requirement

Requires the Botania mod to be installed


Peripheral Name Interfaces with Has events Introduced in
manaPool Mana Pool block No 0.6b


Functions

getMana

getMana() -> number
Returns the amount of mana stored in the pool.


getMaxMana

getMaxMana() -> number
Returns the maximum amount of mana that the pool can hold.


Added in version 0.7.4r

getManaNeeded

getManaNeeded() -> number

Returns the amount of mana needed to fill the pool. Equivalent to getMaxMana() - getMana().


isEmpty

isEmpty() -> boolean
Returns true if the Mana Pool is empty.


isFull

isFull() -> boolean
Returns true if the Mana Pool is full.


Available in versions >=1.20.1-0.7.39r

canChargeItem

canChargeItem() -> boolean
Returns true if mode of the Mana Pool is set to charge the items on it.


Available in versions >=1.20.1-0.7.39r

hasItems

hasItems() -> boolean
Returns true if the Mana Pool has at least one item on it.


Available in versions >=1.20.1-0.7.39r

getItems

getItems() -> table
Returns a table with the items lying on the Mana Pool.


Changelog/Trivia

1.20.1-0.7.39r
Ported Botania integration to 1.20.1
Added getItems(), hasItems() and canChargeItem()

0.7.16
Ported Botania integration to 1.18

0.7.4r
Added getManaNeeded to the Mana Pool integration

0.6b
Added integration for Botania