-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a1cf09
commit ed1b2f0
Showing
30 changed files
with
395 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env groovy | ||
|
||
pipeline { | ||
agent any | ||
stages { | ||
stage('Clean') { | ||
steps { | ||
echo 'Cleaning Project' | ||
sh 'chmod +x gradlew' | ||
sh './gradlew clean' | ||
} | ||
} | ||
stage('Build') { | ||
steps { | ||
echo 'Building' | ||
sh './gradlew build' | ||
} | ||
} | ||
stage('Publish') { | ||
steps { | ||
echo 'Deploying to Maven' | ||
sh './gradlew publish' | ||
} | ||
} | ||
} | ||
} |
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
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/com/sammy/malum/client/model/ScarfModel.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 com.sammy.malum.client.model; | ||
|
||
import com.google.common.collect.ImmutableList; | ||
import com.mojang.blaze3d.vertex.PoseStack; | ||
import com.mojang.blaze3d.vertex.VertexConsumer; | ||
import com.sammy.malum.MalumMod; | ||
import com.sammy.ortus.systems.model.OrtusArmorModel; | ||
import net.minecraft.client.model.EntityModel; | ||
import net.minecraft.client.model.HumanoidModel; | ||
import net.minecraft.client.model.geom.ModelLayerLocation; | ||
import net.minecraft.client.model.geom.ModelPart; | ||
import net.minecraft.client.model.geom.PartPose; | ||
import net.minecraft.client.model.geom.builders.*; | ||
import net.minecraft.world.entity.player.Player; | ||
|
||
public class ScarfModel extends EntityModel<Player> { | ||
|
||
public static ModelLayerLocation LAYER = new ModelLayerLocation(MalumMod.prefix("scarf"), "main"); | ||
public final ModelPart headScarf; | ||
public final ModelPart torsoScarf; | ||
|
||
public ScarfModel(ModelPart root) { | ||
this.headScarf = root.getChild("head_scarf"); | ||
this.torsoScarf = root.getChild("torso_scarf"); | ||
|
||
} | ||
|
||
public static LayerDefinition createBodyLayer() { | ||
MeshDefinition mesh = HumanoidModel.createMesh(new CubeDeformation(0), 0); | ||
PartDefinition partdefinition = mesh.getRoot(); | ||
|
||
PartDefinition headScarf = partdefinition.addOrReplaceChild("head_scarf", CubeListBuilder.create().texOffs(0, 14).addBox(-4.5F, -2.25F, -4.5F, 9.0F, 3.0F, 9.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F)); | ||
|
||
PartDefinition torsoScarf = partdefinition.addOrReplaceChild("torso_scarf", CubeListBuilder.create().texOffs(0, 0).addBox(-5.5F, -25.0F, -2.5F, 11.0F, 9.0F, 5.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 24.0F, 0.0F)); | ||
|
||
return LayerDefinition.create(mesh, 64, 32); | ||
} | ||
|
||
@Override | ||
public void setupAnim(Player pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) { | ||
|
||
} | ||
|
||
@Override | ||
public void renderToBuffer(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) { | ||
headScarf.render(poseStack, buffer, packedLight, packedOverlay); | ||
torsoScarf.render(poseStack, buffer, packedLight, packedOverlay); | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
src/main/java/com/sammy/malum/client/model/bbfiles/scarf.bbmodel
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 @@ | ||
{"meta":{"format_version":"4.0","creation_time":1655475089,"model_format":"modded_entity","box_uv":true},"name":"ScarModel","geometry_name":"steve","modded_entity_version":"1.17","visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"resolution":{"width":64,"height":32},"elements":[{"name":"body_scarf","rescale":false,"locked":false,"from":[-5.5,16,-2.5],"to":[5.5,25,2.5],"autouv":0,"color":0,"origin":[0,0,0],"faces":{"north":{"uv":[5,5,16,14],"texture":0},"east":{"uv":[0,5,5,14],"texture":0},"south":{"uv":[21,5,32,14],"texture":0},"west":{"uv":[16,5,21,14],"texture":0},"up":{"uv":[16,5,5,0],"texture":0},"down":{"uv":[27,0,16,5],"texture":0}},"type":"cube","uuid":"cf8dd474-0366-4b64-27cb-58bcf339ce33"},{"name":"head_scarf","rescale":false,"locked":false,"from":[-4.5,23.25,-4.5],"to":[4.5,26.25,4.5],"autouv":0,"color":0,"origin":[0,0,0],"uv_offset":[0,14],"faces":{"north":{"uv":[9,23,18,26],"texture":0},"east":{"uv":[0,23,9,26],"texture":0},"south":{"uv":[27,23,36,26],"texture":0},"west":{"uv":[18,23,27,26],"texture":0},"up":{"uv":[18,23,9,14],"texture":0},"down":{"uv":[27,14,18,23],"texture":0}},"type":"cube","uuid":"d91e9241-7e11-01df-1363-431774c38598"}],"outliner":[{"name":"helmet","origin":[0,24,0],"color":0,"uuid":"7e3ee6f2-3f06-a380-a526-ffb03f3e5f74","export":true,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["d91e9241-7e11-01df-1363-431774c38598"]},{"name":"torso","origin":[0,0,0],"color":0,"uuid":"ff6e076f-4b94-5425-05cf-9e30be813700","export":true,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["cf8dd474-0366-4b64-27cb-58bcf339ce33"]}],"textures":[{"path":"C:\\Users\\Hanna\\Desktop\\Mod-Stuff\\Malum-Mod\\src\\main\\resources\\assets\\malum\\textures\\patreon\\snake_scarf.png","name":"snake_scarf.png","folder":"","namespace":"","id":"0","particle":false,"render_mode":"default","visible":true,"mode":"bitmap","saved":true,"uuid":"46b725ee-f5fa-986e-9711-a721e0b56d22","relative_path":"../../../../../../../../resources/assets/malum/textures/patreon/snake_scarf.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgCAYAAACinX6EAAAAAXNSR0IArs4c6QAAAgZJREFUaENjZBjhgHGE+59hNABGU8AIDwHGRLGe/6AweP//GTwoBBmlwGx+DlmGCY/CMbJJgdzK/x9/PAarwaUPZhgu/SB5kBnzX5UMaDZkfLPR+r+I/1G4I0B8kONacvPADgR5EDlABLnFIB7/+oqhZvIkMBubfpB4aWogOBBBekDqQeDB95Ng87pnr8fQOxCJEWfof78RBQ4IEOCQtgLTP54eY/h68yEDt7o8mM+psQyn/pszjf7L2Wtg6AcJgMx4++I7g3r6uQGNfZBb8Drg/+cp4EB4u285SixTElOgFEZMAFJiByl68QYAKBWAYgs5iZNiODa1oPJjsOR/gimAFgEAKnRh5cpAF4BEBcCjgzeomldhtU5F8zKqmktuysSbBUD5ldqFFayWoWa2ItfzBFMASAF6NUmJZYNR74BXQwMdKKMBMNAxMND2j6aAgY6BgbZ/NAUMdAwMtP2jKWCgY2Cg7cc6IgRyFPIgCJjPLcaQ3VHDIOwUCXczqJs8taIFPtiBbZQI2SwQGzRAgj4SNJA9REbQwIWwBCfYU6B2Pwgg82FsWB++KzAV7GFQgJStnw1WD+oyw/TjMwukBjRIUunmD9YPAiCzQAEy7dA5Bmp3vIhJXXQvA0B9C+RUBHMkNQddiPE4TA3dA4AUx9FD7WgA0COUB7MdoylgMMcOPdw24lMAAGI/4SHPlnAaAAAAAElFTkSuQmCC"}]} |
Oops, something went wrong.