-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Added Cobblestone Stairs for each Stone type. -Minestrapp Ores now have variants for each Stone type. -Fixed Moss cutting recipes for the new Stone types only giving 1 per cut. -Stone-based structures (such as Villages, Dungeons, Strongholds, etc) now generate out of the same stone type as the biome they generated in. -Made Sunstone Ore generate a bit more commonly.
- Loading branch information
Showing
20 changed files
with
293 additions
and
29 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
49 changes: 49 additions & 0 deletions
49
src/main/java/minestrapteam/minestrappolation/block/BlockRadiationOre.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,49 @@ | ||
package minestrapteam.minestrappolation.block; | ||
|
||
import java.util.List; | ||
import java.util.Random; | ||
|
||
import clashsoft.cslib.minecraft.block.ore.BlockOre2; | ||
import clashsoft.cslib.minecraft.block.ore.OreBase; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.util.AxisAlignedBB; | ||
import net.minecraft.world.World; | ||
|
||
public abstract class BlockRadiationOre extends BlockOre2 | ||
{ | ||
protected BlockRadiationOre() | ||
{ | ||
super(OreBase.TYPE_OVERWORLD); | ||
} | ||
|
||
@Override | ||
public void onBlockAdded(World random, int x, int y, int z) | ||
{ | ||
random.scheduleBlockUpdate(x, y, z, this, 1); | ||
} | ||
|
||
@Override | ||
public void updateTick(World world, int x, int y, int z, Random random) | ||
{ | ||
if (!world.isRemote) | ||
{ | ||
world.scheduleBlockUpdate(x, y, z, this, 1); | ||
|
||
float range = this.getRange(); | ||
AxisAlignedBB axisalignedbb = this.getCollisionBoundingBoxFromPool(world, x, y, z).expand(range, range, range); | ||
List<EntityLivingBase> list = world.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb); | ||
|
||
for (EntityLivingBase living : list) | ||
{ | ||
this.addPotionEffect(living); | ||
} | ||
} | ||
} | ||
|
||
public abstract void addPotionEffect(EntityLivingBase living); | ||
|
||
public abstract float getRange(); | ||
} |
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
66 changes: 48 additions & 18 deletions
66
src/main/java/minestrapteam/minestrappolation/crafting/stonecutter/StonecuttingManager.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.