Added some prototype asteroid gen code
This commit is contained in:
parent
6bdd0ab003
commit
07aafb6207
2 changed files with 29 additions and 1 deletions
20
src/main/java/cr0s/warpdrive/config/structures/Asteroid.java
Normal file
20
src/main/java/cr0s/warpdrive/config/structures/Asteroid.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
package cr0s.warpdrive.config.structures;
|
||||
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import cr0s.warpdrive.config.InvalidXmlException;
|
||||
|
||||
public class Asteroid extends Orb {
|
||||
|
||||
public Asteroid(int diameter) {
|
||||
super(diameter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadFromXmlElement(Element e) throws InvalidXmlException {
|
||||
|
||||
super.loadFromXmlElement(e);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -52,5 +52,13 @@
|
|||
<filler ratio=".5" block="minecraft:air" />
|
||||
</shell>
|
||||
</structure>
|
||||
|
||||
|
||||
<structure group="asteroid" name="asteroid" coreBlock="minecraft:iron_block" maxCoreSize="10" minCoreSize="2">
|
||||
|
||||
<shell name="mantle" minThickness="3" maxThickness="20" fillerSets="commonOres;uncommonOres">
|
||||
<filler weight="10" block="minecraft:stone" />
|
||||
<filler weight="5" block="minecraft:cobblestone" />
|
||||
</shell>
|
||||
|
||||
</structure>
|
||||
</warpdriveWorldGeneration>
|
||||
|
|
Loading…
Reference in a new issue