-
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.
things re reordered for the polleball logic for random effects redone…
… to use switch case inset of if else
- Loading branch information
1 parent
16c47c8
commit 0f36dee
Showing
13 changed files
with
247 additions
and
95 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
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
src/main/java/rayan/buzzblocks/util/D20/LightningStriker.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,15 @@ | ||
package rayan.buzzblocks.util.D20; | ||
|
||
import net.minecraft.entity.EntityType; | ||
import net.minecraft.entity.LightningEntity; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
import net.minecraft.world.World; | ||
|
||
public class LightningStriker { | ||
public static void strikePlayer(PlayerEntity player, World world) { | ||
// Strike the player with lightning | ||
LightningEntity lightning = new LightningEntity(EntityType.LIGHTNING_BOLT, world); | ||
lightning.refreshPositionAndAngles(player.getX(), player.getY(), player.getZ(), player.getYaw(), player.getPitch()); | ||
world.spawnEntity(lightning); | ||
} | ||
} |
Oops, something went wrong.