diff options
Diffstat (limited to 'gen_model.sh')
-rwxr-xr-x | gen_model.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gen_model.sh b/gen_model.sh new file mode 100755 index 0000000..f7202ea --- /dev/null +++ b/gen_model.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +awk '/ PartDefinition partdefinition = meshdefinition.getRoot\(\);/{flag=1;next}/ \}/{flag=0;next} flag' PotatoGuard.java \ +| sed 's/PartDefinition/ModelPartData/;s/partdefinition/modelPartData/;s/addOrReplaceChild/addChild/;s/CubeListBuilder/ModelPartBuilder/;s/texOffs/uv/g;s/addBox/cuboid/g;s/CubeDeformation/Dilation/g;s/LayerDefinition.create/TexturedModelData.of/;s/meshdefinition/modelData/g;s/PartPose.offset/ModelTransform.pivot/' |