From cf0f390b2593ad2981d8904b434c1015811d32fa Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sun, 1 Mar 2020 13:56:28 -0500 Subject: [PATCH] Update Rebound Chances --- README.md | 2 +- .../java/com/thebrokenrail/sorcerycraft/entity/SpellEntity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa6a954..4d46451 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Cast Spells in Minecraft! This mod supports the Minecraft 1.16 snapshots. ## Spells -Spells are found throughout the world in chests. When you pick up a Spell you will learn it, one you learn a Spell you can apply it to a blank or existing Spell in the Casting Table. You can cast Spells by right-clicking. +Spells are found throughout the world in chests. When you pick up a Spell you will learn it, one you learn a Spell you can apply it to a blank or existing Spell in the Casting Table. You can cast Spells by right-clicking. There is also a 30% chance the spell will rebound and hit you instead, unless the "Steadfast" Spell is applied. ## Casting Table You can apply Spells to blank or existing Spells in the Casting Table. Doing so will require a certain amount of levels, and sometimes may require an item. diff --git a/src/main/java/com/thebrokenrail/sorcerycraft/entity/SpellEntity.java b/src/main/java/com/thebrokenrail/sorcerycraft/entity/SpellEntity.java index 21bd130..7fca56e 100644 --- a/src/main/java/com/thebrokenrail/sorcerycraft/entity/SpellEntity.java +++ b/src/main/java/com/thebrokenrail/sorcerycraft/entity/SpellEntity.java @@ -45,7 +45,7 @@ public class SpellEntity extends ThrownItemEntity { for (Map.Entry entry : spells.entrySet()) { Spell spell = SpellRegistry.getSpell(entry.getKey(), entry.getValue()); if (spell != null) { - if (Math.random() > 0.1 || spells.containsKey("steadfast_spell")) { + if (Math.random() > 0.3 || spells.containsKey("steadfast_spell")) { spell.execute(entity, this, getOwner()); } else if (getOwner() != null) { getOwner().playSound(SoundEvents.ENCHANT_THORNS_HIT, 1.0f, 1.0f);