Made the Ancient Staff only usable when it isn't depleted, gave the Promised Lands a movement ratio of 13 and made the Ancient Staff usable in the Promised Lands
This commit is contained in:
parent
6ec571a273
commit
8822e26200
2 changed files with 31 additions and 17 deletions
|
@ -82,8 +82,6 @@ public class ItemBOPAncientStaff extends Item
|
|||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
if (par3EntityPlayer.dimension == 0)
|
||||
{
|
||||
int i = MathHelper.floor_double(par3EntityPlayer.posX - 8);
|
||||
int j = 145;
|
||||
|
@ -102,13 +100,22 @@ public class ItemBOPAncientStaff extends Item
|
|||
}
|
||||
}
|
||||
|
||||
if (par1ItemStack.getItemDamage() == 0)
|
||||
{
|
||||
if (isAir)
|
||||
{
|
||||
|
||||
if (!par3EntityPlayer.worldObj.isRemote)
|
||||
{
|
||||
if (par3EntityPlayer.dimension == 0)
|
||||
{
|
||||
par3EntityPlayer.addChatMessage("A gateway to the Promised Land has appeared in the sky above.");
|
||||
}
|
||||
else
|
||||
{
|
||||
par3EntityPlayer.addChatMessage("A gateway has appeared in the sky above.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ import net.minecraft.util.ChunkCoordinates;
|
|||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.WorldProvider;
|
||||
import net.minecraft.world.WorldProviderHell;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import biomesoplenty.api.Biomes;
|
||||
import biomesoplenty.api.Blocks;
|
||||
|
@ -37,6 +38,12 @@ public class WorldProviderPromised extends WorldProvider
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMovementFactor()
|
||||
{
|
||||
return 16.0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calculateCelestialAngle(long par1, float par3)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue