Skip to content

Commit

Permalink
Mage block updates
Browse files Browse the repository at this point in the history
  • Loading branch information
miyucomics committed Oct 4, 2024
1 parent ea571a6 commit ef76a53
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- added Conjure Fireball: conjures a ghast fireball with no velocity at a position within ambit for three dust
- added pattern for changing the pigment of specks
- added more quotes to documentation
- changed mage block modifiers to update neighboring blocks
- changed Offerings page to no longer require using up a lamp
- changed evocation warmup period to one second
- changed how Evoker's Purification works to be like all the other keybind patterns
Expand All @@ -27,6 +28,7 @@
- fixed funky behavior with evocation and reading items, now it tries to read from the offhand then the mainhand
- fixed Offer Mind spell allowing for overflow
- fixed error in documentation: Racer's Purification can work on nonplayers
- fixed error in documentation: Telepathy Reflection does not return null ever
- made code much better
- merged Arch Lamp Storage spells into the Arch Lamps page
- removed cost from Reweave Mesh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import at.petrak.hexcasting.api.spell.mishaps.MishapBadBlock
import miyucomics.hexical.blocks.MageBlock
import miyucomics.hexical.blocks.MageBlockEntity
import miyucomics.hexical.inits.HexicalAdvancements
import miyucomics.hexical.inits.HexicalBlocks
import net.minecraft.util.math.BlockPos
import net.minecraft.util.math.Vec3d

Expand All @@ -27,6 +28,7 @@ class OpModifyMageBlock(private val property: String, arguments: Int = 0) : Spel
private data class Spell(val pos: BlockPos, val property: String, val args: List<Iota>) : RenderedSpell {
override fun cast(ctx: CastingContext) {
(ctx.world.getBlockEntity(pos) as MageBlockEntity).setProperty(property, args, ctx.caster)
ctx.world.updateNeighborsAlways(pos, HexicalBlocks.MAGE_BLOCK)
HexicalAdvancements.DIY.trigger(ctx.caster)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"op_id": "hexical:get_telepathy",
"anchor": "hexical:get_telepathy",
"input": "",
"output": "null/number",
"output": "number",
"text": "hexical.page.get_telepathy.summary"
}, {
"type": "hexcasting:pattern",
Expand Down

0 comments on commit ef76a53

Please sign in to comment.