Skip to content

Commit

Permalink
added doc + fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
12rcu committed Jan 19, 2024
1 parent e75c783 commit b204633
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2838,6 +2838,10 @@ class BehEntityComponents : MonsteraFile {
entityLifeSpan = 1.1f
soundEvent = "prepare.attack" /* or use the sound {} api */
}
sequence {
summonCap = 8
summonCapRadius = 16
}
}
//other
doCasting = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class ComponentSummonEntity : MonsteraFile {
}
}


var priority: Int = 0
set(value) {
unsafe.general["priority"] = value
Expand Down Expand Up @@ -144,6 +143,23 @@ class SummonSequence : MonsteraFile {
}
}

/**
* ```
* sequence {
* shape = "circle"
* target = Subject.SELF
* baseDelay = 1f
* delayPerSummon = 0f
* numEntitiesSpawned = 5
* entityType = "minecraft:evocation_fang"
* size = 1.5f
* entityLifeSpan = 1.1f
* soundEvent = "prepare.attack" /* or use the sound {} api */
* summonCap = 3
* summonCapRadius = 16
* }
* ```
*/
fun sequence(data: SummonSeqCom.() -> Unit) {
unsafe.general.add(SummonSeqCom().apply(data).unsafe.getData())
}
Expand Down Expand Up @@ -208,12 +224,12 @@ class SummonSeqCom : MonsteraFile {

var summonCap: Int = 0
set(value) {
unsafe.general["summon_cap"]
unsafe.general["summon_cap"] = value
field = value
}
var summonCapRadius: Number = 0
set(value) {
unsafe.general["summon_cap_radius"]
unsafe.general["summon_cap_radius"] = value
field = value
}
}

0 comments on commit b204633

Please sign in to comment.