generated from TeamGensouSpark/LunarCapitalFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ new spellcard and new kekkai ,sorry for so busy
- Loading branch information
Showing
8 changed files
with
114 additions
and
7 deletions.
There are no files selected for viewing
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
42 changes: 42 additions & 0 deletions
42
...main/java/io/github/teamgensouspark/grimoireofpatchouli/spellcard/entitiy/EarthLight.java
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,42 @@ | ||
package io.github.teamgensouspark.grimoireofpatchouli.spellcard.entitiy; | ||
|
||
import io.github.teamgensouspark.grimoireofpatchouli.PatchouliModInfo; | ||
import io.github.teamgensouspark.kekkai.color.AtomColors; | ||
import io.github.teamgensouspark.kekkai.danmaku.DanmakuBuilder; | ||
import io.github.teamgensouspark.kekkai.danmaku.KekkaiDanmakuCreationHelper; | ||
import net.katsstuff.teamnightclipse.danmakucore.entity.spellcard.EntitySpellcard; | ||
import net.katsstuff.teamnightclipse.danmakucore.entity.spellcard.Spellcard; | ||
import net.katsstuff.teamnightclipse.danmakucore.entity.spellcard.SpellcardEntity; | ||
import net.katsstuff.teamnightclipse.danmakucore.lib.data.LibShotData; | ||
import net.katsstuff.teamnightclipse.mirror.data.Vector3; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.util.EnumFacing.Axis; | ||
import scala.Option; | ||
|
||
public class EarthLight extends SpellcardEntity { | ||
|
||
public EarthLight(Spellcard spellcard, EntitySpellcard cardEntity, Option<EntityLivingBase> target) { | ||
super(spellcard, cardEntity, target); | ||
} | ||
|
||
int rndSigned() { | ||
return PatchouliModInfo.RND.nextInt(2) == 1 ? -1 : 1; | ||
} | ||
|
||
@Override | ||
public void onSpellcardUpdate() { | ||
if (time() % 2 == 0) { | ||
KekkaiDanmakuCreationHelper.createCircleShot( | ||
DanmakuBuilder.getBuilderWithEntity(user()) | ||
.setPos(new Vector3(user()).add(rndSigned() * PatchouliModInfo.RND.nextDouble() * 25, 0, | ||
rndSigned() * PatchouliModInfo.RND.nextDouble() * 25)) | ||
.setShot(LibShotData.SHOT_LASER.setMainColor(AtomColors.ATOM_COLOR_CYAN)) | ||
.setDirection(Vector3.Up().rotate(PatchouliModInfo.RND.nextDouble() * 6, Axis.X)) | ||
.setMovementData(0) | ||
.build(), | ||
1, | ||
1.0f, 1.0d); | ||
} | ||
} | ||
|
||
} |
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
46 changes: 46 additions & 0 deletions
46
...n/java/io/github/teamgensouspark/grimoireofpatchouli/spellcard/entitiy/WonderGodWind.java
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,46 @@ | ||
package io.github.teamgensouspark.grimoireofpatchouli.spellcard.entitiy; | ||
|
||
import io.github.teamgensouspark.kekkai.color.DanCoreColors; | ||
import io.github.teamgensouspark.kekkai.danmaku.DanmakuBuilder; | ||
import io.github.teamgensouspark.kekkai.danmaku.KekkaiDanmakuCreationHelper; | ||
import net.katsstuff.teamnightclipse.danmakucore.entity.spellcard.EntitySpellcard; | ||
import net.katsstuff.teamnightclipse.danmakucore.entity.spellcard.Spellcard; | ||
import net.katsstuff.teamnightclipse.danmakucore.entity.spellcard.SpellcardEntity; | ||
import net.katsstuff.teamnightclipse.danmakucore.lib.data.LibShotData; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import scala.Option; | ||
|
||
public class WonderGodWind extends SpellcardEntity { | ||
|
||
public WonderGodWind(Spellcard spellcard, EntitySpellcard cardEntity, Option<EntityLivingBase> target) { | ||
super(spellcard, cardEntity, target); | ||
} | ||
|
||
@Override | ||
public void onSpellcardUpdate() { | ||
if (time() % 10 == 0) { | ||
KekkaiDanmakuCreationHelper.createCircleShot( | ||
DanmakuBuilder.getBuilderWithEntity(user()) | ||
.setShot(LibShotData.SHOT_MEDIUM.setSize(1f).setMainColor(DanCoreColors.COLOR_VANILLA_BLUE)) | ||
.build(), | ||
12, 0f, | ||
0.7d); | ||
} | ||
|
||
if (time() % 30 == 0) { | ||
for (double d = 5; d >= 0; d--) { | ||
KekkaiDanmakuCreationHelper.createCircleShot( | ||
DanmakuBuilder.getBuilderWithEntity(user()) | ||
.setShot(LibShotData.SHOT_OVAL.setMainColor( | ||
time() % 20 == 0 ? DanCoreColors.COLOR_SATURATED_GREEN | ||
: DanCoreColors.COLOR_VANILLA_BLUE) | ||
.setSize(0.8f) | ||
.setDelay((int) (12 - d))) | ||
.build(), | ||
20, | ||
(float) d, d); | ||
} | ||
} | ||
} | ||
|
||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/grimoireofpatchouli/models/item/danmaku/spellcard/earth_light.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,6 @@ | ||
{ | ||
"parent": "danmakucore:item/danmaku/spellcard/spellcard_base", | ||
"textures": { | ||
"1": "grimoireofpatchouli:items/spellcard/earth_light" | ||
} | ||
} |
Binary file added
BIN
+9.34 KB
...n/resources/assets/grimoireofpatchouli/textures/items/spellcard/earth_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.