mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
The Rosa Arcana can now get its XP from orbs.
This commit is contained in:
1 parent
8f9fc75f68
commit
40b23be988
2 files changed
+12
-3
No files matched your search
+11
-2
@@ -10,6 +10,9 @@
|
||||
*/
|
||||
package vazkii.botania.common.block.subtile.generating;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.item.EntityXPOrb;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
@@ -18,8 +21,6 @@ import vazkii.botania.api.subtile.SubTileGenerating;
|
||||
import vazkii.botania.common.core.helper.ExperienceHelper;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SubTileArcaneRose extends SubTileGenerating {
|
||||
|
||||
private static final int RANGE = 1;
|
||||
@@ -38,6 +39,14 @@ public class SubTileArcaneRose extends SubTileGenerating {
|
||||
mana += 50;
|
||||
return;
|
||||
}
|
||||
|
||||
List<EntityXPOrb> orbs = supertile.getWorld().getEntitiesWithinAABB(EntityXPOrb.class, new AxisAlignedBB(supertile.getPos().add(-RANGE, -RANGE, -RANGE), supertile.getPos().add(RANGE + 1, RANGE + 1, RANGE + 1)));
|
||||
for(EntityXPOrb orb : orbs) {
|
||||
// mana += orb.getXpValue() * 35;
|
||||
// orb.setDead();
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user