commit
a07f271866
3 changed files with 21 additions and 47 deletions
44
Convert.java
44
Convert.java
|
@ -143,45 +143,19 @@ class ModelPart {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Convert {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
new Convert().c();
|
|
||||||
|
|
||||||
ModelPart.print();
|
ModelPart.print();
|
||||||
}
|
}
|
||||||
|
void setRotationAngle(ModelPart p, float x, float y, float z){
|
||||||
void setRotationAngle(ModelPart p, float x, float y, float z) {
|
|
||||||
p.setRotationAngle(x, y, z);
|
p.setRotationAngle(x, y, z);
|
||||||
}
|
}
|
||||||
|
public void c (){
|
||||||
public void c() {
|
|
||||||
float scale = 1;
|
float scale = 1;
|
||||||
ModelPart partC = new ModelPart(64, 64, 0, 19, "partC");
|
ModelPart[] SHARDS = new ModelPart[4];
|
||||||
partC.addBox(1.0F, 0.0F, 1.0F, 14.0F, 9.0F, 14.0F, 0.0F);
|
SHARDS[0] = new ModelPart(16, 16, 2, 4, "SHARDS[0]").addBox(-5.0F, 1.0F, -3.0F, 2.0F, 8.0F, 2.0F);
|
||||||
ModelPart partA = new ModelPart(64, 64, 0, 0, "partA");
|
SHARDS[1] = new ModelPart(16, 16, 2, 4, "SHARDS[1]").addBox(3.0F, -1.0F, -1.0F, 2.0F, 8.0F, 2.0F);
|
||||||
partA.addBox(1.0F, 0.0F, 0.0F, 14.0F, 5.0F, 14.0F, 0.0F);
|
SHARDS[2] = new ModelPart(16, 16, 2, 4, "SHARDS[2]").addBox(-1.0F, 0.0F, -5.0F, 2.0F, 4.0F, 2.0F);
|
||||||
partA.y = 9.0F;
|
SHARDS[3] = new ModelPart(16, 16, 2, 4, "SHARDS[3]").addBox(0.0F, 3.0F, 4.0F, 2.0F, 6.0F, 2.0F);
|
||||||
partA.z = 1.0F;
|
ModelPart CORE = new ModelPart(16, 16, 0, 0, "CORE");
|
||||||
ModelPart partB = new ModelPart(64, 64, 0, 0, "partB");
|
CORE.addBox(-2.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F);
|
||||||
partB.addBox(7.0F, -1.0F, 15.0F, 2.0F, 4.0F, 1.0F, 0.0F);
|
|
||||||
partB.y = 8.0F;
|
|
||||||
ModelPart partRightC = new ModelPart(64, 64, 0, 19, "partRightC");
|
|
||||||
partRightC.addBox(1.0F, 0.0F, 1.0F, 15.0F, 9.0F, 14.0F, 0.0F);
|
|
||||||
ModelPart partRightA = new ModelPart(64, 64, 0, 0, "partRightA");
|
|
||||||
partRightA.addBox(1.0F, 0.0F, 0.0F, 15.0F, 5.0F, 14.0F, 0.0F);
|
|
||||||
partRightA.y = 9.0F;
|
|
||||||
partRightA.z = 1.0F;
|
|
||||||
ModelPart partRightB = new ModelPart(64, 64, 0, 0, "partRightB");
|
|
||||||
partRightB.addBox(15.0F, -1.0F, 15.0F, 1.0F, 4.0F, 1.0F, 0.0F);
|
|
||||||
partRightB.y = 8.0F;
|
|
||||||
ModelPart partLeftC = new ModelPart(64, 64, 0, 19, "partLeftC");
|
|
||||||
partLeftC.addBox(0.0F, 0.0F, 1.0F, 15.0F, 9.0F, 14.0F, 0.0F);
|
|
||||||
ModelPart partLeftA = new ModelPart(64, 64, 0, 0, "partLeftA");
|
|
||||||
partLeftA.addBox(0.0F, 0.0F, 0.0F, 15.0F, 5.0F, 14.0F, 0.0F);
|
|
||||||
partLeftA.y = 9.0F;
|
|
||||||
partLeftA.z = 1.0F;
|
|
||||||
ModelPart partLeftB = new ModelPart(64, 64, 0, 0, "partLeftB");
|
|
||||||
partLeftB.addBox(0.0F, -1.0F, 15.0F, 1.0F, 4.0F, 1.0F, 0.0F);
|
|
||||||
partLeftB.y = 8.0F;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@ maven_group=ru.betterend
|
||||||
archives_base_name=better-end
|
archives_base_name=better-end
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
|
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
|
||||||
patchouli_version=55-FABRIC-SNAPSHOT
|
patchouli_version = 55-FABRIC-SNAPSHOT
|
||||||
fabric_version=0.36.1+1.17
|
fabric_version = 0.36.1+1.17
|
||||||
bclib_version=0.2.2
|
bclib_version = 0.2.2
|
||||||
rei_version=6.0.262-alpha
|
rei_version = 6.0.264-alpha
|
||||||
canvas_version=1.0.+
|
canvas_version = 1.0.+
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class EndTags {
|
||||||
TagHelper.addTag(TagAPI.MINEABLE_HOE, block);
|
TagHelper.addTag(TagAPI.MINEABLE_HOE, block);
|
||||||
}
|
}
|
||||||
else if (material.equals(Material.SAND)) {
|
else if (material.equals(Material.SAND)) {
|
||||||
TagHelper.addTag(TagAPI.MINEABLE_HOE, block);
|
TagHelper.addTag(TagAPI.MINEABLE_SHOVEL, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (block instanceof EndTerrainBlock) {
|
if (block instanceof EndTerrainBlock) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue