-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed arch lamp sounds, added sprinting pattern
- Loading branch information
1 parent
0379e8b
commit 8c26c80
Showing
5 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
.../src/main/java/miyucomics/hexical/casting/patterns/operators/lamp/OpGetPlayerSprinting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package miyucomics.hexical.casting.patterns.operators.lamp | ||
|
||
import at.petrak.hexcasting.api.spell.ConstMediaAction | ||
import at.petrak.hexcasting.api.spell.casting.CastingContext | ||
import at.petrak.hexcasting.api.spell.getPlayer | ||
import at.petrak.hexcasting.api.spell.iota.BooleanIota | ||
import at.petrak.hexcasting.api.spell.iota.Iota | ||
|
||
class OpGetPlayerSprinting : ConstMediaAction { | ||
override val argc = 1 | ||
|
||
override fun execute(args: List<Iota>, ctx: CastingContext): List<Iota> { | ||
return listOf(BooleanIota(args.getPlayer(0, argc).isSprinting())) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...data/hexical/patchouli_books/hexicalbook/en_us/entries/patterns/entity_purifications.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "hexical.page.entity_purifications", | ||
"icon": "minecraft:spyglass", | ||
"category": "hexcasting:patterns", | ||
"pages": [ | ||
{ | ||
"type": "hexcasting:pattern", | ||
"op_id": "hexical:is_sprinting", | ||
"anchor": "hexical:is_sprinting", | ||
"input": "entity", | ||
"output": "boolean", | ||
"text": "hexical.page.is_sprinting" | ||
} | ||
] | ||
} |