Fixed ears and tried to fix snouts

This commit is contained in:
Sollace 2019-11-28 20:59:15 +02:00
parent 3fd111be98
commit 8a90df8c5a
4 changed files with 13 additions and 3 deletions

View file

@ -7,6 +7,7 @@ import net.minecraft.client.util.math.MatrixStack;
import com.minelittlepony.model.IPart; import com.minelittlepony.model.IPart;
import com.minelittlepony.mson.api.ModelContext; import com.minelittlepony.mson.api.ModelContext;
import com.minelittlepony.mson.api.MsonModel; import com.minelittlepony.mson.api.MsonModel;
import com.minelittlepony.mson.api.model.BoxBuilder.ContentAccessor;
import java.util.UUID; import java.util.UUID;
@ -20,6 +21,10 @@ public class PonyEars implements IPart, MsonModel {
public void init(ModelContext context) { public void init(ModelContext context) {
right = context.findByName("right"); right = context.findByName("right");
left = context.findByName("left"); left = context.findByName("left");
ContentAccessor head = context.getContext();
head.children().add(right);
head.children().add(left);
} }
@Override @Override

View file

@ -10,6 +10,7 @@ import com.minelittlepony.model.IPart;
import com.minelittlepony.mson.api.ModelContext; import com.minelittlepony.mson.api.ModelContext;
import com.minelittlepony.mson.api.MsonModel; import com.minelittlepony.mson.api.MsonModel;
import com.minelittlepony.mson.api.model.MsonPart; import com.minelittlepony.mson.api.model.MsonPart;
import com.minelittlepony.mson.api.model.BoxBuilder.ContentAccessor;
import com.minelittlepony.pony.meta.Gender; import com.minelittlepony.pony.meta.Gender;
import java.util.UUID; import java.util.UUID;
@ -28,6 +29,10 @@ public class PonySnout implements IPart, MsonModel {
head = context.getModel(); head = context.getModel();
mare = context.findByName("mare"); mare = context.findByName("mare");
stallion = context.findByName("stallion"); stallion = context.findByName("stallion");
ContentAccessor head = context.getContext();
head.children().add(mare);
head.children().add(stallion);
} }
public void rotate(float x, float y, float z) { public void rotate(float x, float y, float z) {

View file

@ -3,13 +3,13 @@
"right": { "right": {
"texture": {"u": 12, "v": 16}, "texture": {"u": 12, "v": 16},
"cubes": [ "cubes": [
{ "from": [-4, -6, 1], "size": [2, 2, 2] } { "from": [-4, -6, -1], "size": [2, 2, 2] }
] ]
}, },
"left": { "left": {
"texture": {"u": 12, "v": 16}, "texture": {"u": 12, "v": 16},
"cubes": [ "cubes": [
{ "from": [2, -6, 1], "size": [2, 2, 2] } { "from": [2, -6, -1], "size": [2, 2, 2] }
] ]
} }
} }

View file

@ -1,5 +1,5 @@
{ {
"texture": {"w": 16, "h": 8}, "texture": {"w": 64, "h": 64, "u": 16, "v": 8},
"stallion": { "stallion": {
"type": "mson:planar", "type": "mson:planar",
"offset": [0, -1, -2], "offset": [0, -1, -2],