Skip to content

Commit

Permalink
feat: add Carrot Head Band Outfit
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Jan 13, 2025
1 parent 6a4b434 commit 0977605
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions bbmodel/outfit/carrot_head_band.bbmodel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"meta":{"format_version":"4.10","model_format":"modded_entity","box_uv":true},"name":"carrot_head_band","model_identifier":"","modded_entity_entity_class":"","modded_entity_version":"1.17_yarn","modded_entity_flip_y":true,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"timeline_setups":[],"unhandled_root_fields":{},"resolution":{"width":64,"height":64},"elements":[{"name":"Helmet","box_uv":true,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[-4,24,-4],"to":[4,32,4],"autouv":0,"color":0,"inflate":0.75,"origin":[0,0,0],"faces":{"north":{"uv":[8,8,16,16],"texture":0},"east":{"uv":[0,8,8,16],"texture":0},"south":{"uv":[24,8,32,16],"texture":0},"west":{"uv":[16,8,24,16],"texture":0},"up":{"uv":[16,8,8,0],"texture":0},"down":{"uv":[24,0,16,8],"texture":0}},"type":"cube","uuid":"a0bad22f-3002-d37f-ba58-e6e8fa54b0e0"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[-1,32.5,-2.25],"to":[7,34.5,-0.25],"autouv":0,"color":5,"rotation":[0,0,-22.5],"origin":[3,33.5,-1.25],"uv_offset":[0,32],"faces":{"north":{"uv":[2,34,10,36],"texture":0},"east":{"uv":[0,34,2,36],"texture":0},"south":{"uv":[12,34,20,36],"texture":0},"west":{"uv":[10,34,12,36],"texture":0},"up":{"uv":[10,34,2,32],"texture":0},"down":{"uv":[18,32,10,34],"texture":0}},"type":"cube","uuid":"33914195-6b49-e6a4-6b9e-91273ce9f427"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[-9,33.5,-5.25],"to":[-1,33.5,2.75],"autouv":0,"color":5,"rotation":[0,0,-22.5],"origin":[3,33.5,-1.25],"uv_offset":[0,16],"faces":{"north":{"uv":[8,24,16,24],"texture":0},"east":{"uv":[0,24,8,24],"texture":0},"south":{"uv":[24,24,32,24],"texture":0},"west":{"uv":[16,24,24,24],"texture":0},"up":{"uv":[16,24,8,16],"texture":0},"down":{"uv":[24,16,16,24],"texture":0}},"type":"cube","uuid":"50f8bbcf-0c25-f203-2b70-456fcb95ebc4"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[-8.391036260090294,36.56146745892072,-5.25],"to":[-0.3910362600902939,36.56146745892072,2.75],"autouv":0,"color":5,"rotation":[89.99999999999999,1.5902773407317584e-15,-22.499999999999986],"origin":[-4.391036260090294,36.56146745892072,-1.25],"uv_offset":[0,24],"faces":{"north":{"uv":[8,32,16,32],"texture":0},"east":{"uv":[0,32,8,32],"texture":0},"south":{"uv":[24,32,32,32],"texture":0},"west":{"uv":[16,32,24,32],"texture":0},"up":{"uv":[16,32,8,24],"texture":0},"down":{"uv":[24,24,16,32],"texture":0}},"type":"cube","uuid":"5d4e0d54-f5f5-b71a-1875-f15f765637c6"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[7,33,-1.75],"to":[9,34,-0.75],"autouv":0,"color":5,"rotation":[0,0,-22.5],"origin":[3,33.5,0],"uv_offset":[32,0],"faces":{"north":{"uv":[33,1,35,2],"texture":0},"east":{"uv":[32,1,33,2],"texture":0},"south":{"uv":[36,1,38,2],"texture":0},"west":{"uv":[35,1,36,2],"texture":0},"up":{"uv":[35,1,33,0],"texture":0},"down":{"uv":[37,0,35,1],"texture":0}},"type":"cube","uuid":"418bfecf-0d83-32d7-688c-0aa6917d3a6c"}],"outliner":[{"name":"head","origin":[0,24,0],"color":0,"uuid":"83f60179-8284-b2dd-9aae-c5be1d008fde","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["a0bad22f-3002-d37f-ba58-e6e8fa54b0e0","33914195-6b49-e6a4-6b9e-91273ce9f427","418bfecf-0d83-32d7-688c-0aa6917d3a6c","50f8bbcf-0c25-f203-2b70-456fcb95ebc4","5d4e0d54-f5f5-b71a-1875-f15f765637c6"]}],"textures":[{"path":"E:\\IntelliJ IDEA Workspace\\@AbesHutt\\StarAcademyMod\\common\\src\\main\\resources\\assets\\academy\\textures\\entity\\outfit\\carrot_head_band.png","name":"carrot_head_band.png","folder":"block","namespace":"","id":"0","group":"","width":64,"height":64,"uv_width":64,"uv_height":64,"particle":false,"use_as_default":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"46c0149f-60d3-324a-9df9-1d05ab9e5905","relative_path":"../../common/src/main/resources/assets/academy/textures/entity/outfit/carrot_head_band.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAjpJREFUeF7tmr9KxEAQxjcvoIV/wFMEtVAQFCxiK2JxtZUI5wvY2VrbWNj5AtpY2WrhC5jSSgsRRM9CLPQFIl9gQsgRNpcMm0x2tsnlcjs785tvJnuXC0wLxuPBary2smSeX98MjpNn94Ert5wtVBQQgsc1BE4DILZvXpz45mQRV9msso4CsFHbu9xIJIrRm+uZ4dcwOWLg9cPxk2iIVuePbvspgCwsAnG1765h2ZJV5boVQBWjkuYogHy2UPOo8XGljVKR2BNGFOA9AGp6VRQANY07r+l+oQrIZwAKqJrFOnObUsKIAuoEUWduawA05UhT6+o+oCnybVm3tAKwP5hdnjYLi/PmfP269Ly2BFrkR6lAssF/vH92CoIVAH0dRvYxvFOA9wCQda9LgJqH102w7Z28jn/WJljHuIS5rAAO73Zj3CUwpOwVSgGgO0HRL8AInG6R0vYJVgBlgye5S9snWAHY6lj6PqE2ANon4Li1s2k6VwI2BWSvd7YJjgNB2mfTEvg97cf0fB5BTEzNmCiKksfWeP33850+v6cg6fO4HpzI/IqcAogvBnE2YASJ8zAMk3g7CwCZRwYpYMp4/hwASBkEA3Do/Sb+3cFRbgEA5CVddF4EIFsuLv/ewgKAw4hkGyz7AAUgmIAqQHDyWFxXBbBgFGxEFSA4eSyuqwJYMAo2ogoQnDwW11UBLBgFG1EFCE4ei+uqABaMgo2oAgQnj8V1VQALRsFGVAGCk8fiuiqABaNgI94r4B+INvFBi+jFlgAAAABJRU5ErkJggg=="}]}
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public class ModOutfits {
public static SweaterOutfit.Top SWEATER_TOP;
public static SweaterOutfit.Boots SWEATER_BOOTS;

public static CarrotHeadBandOutfit CARROT_HEAD_BAND;

public static void register() {
CLASSY1_HAT = register(new Classy1Outfit.Hat("classy1_hat"));
CLASSY1_SHIRT = register(new Classy1Outfit.Shirt("classy1_shirt"));
Expand Down Expand Up @@ -110,6 +112,8 @@ public static void register() {

SWEATER_TOP = register(new SweaterOutfit.Top("sweater_top"));
SWEATER_BOOTS = register(new SweaterOutfit.Boots("sweater_boots"));

CARROT_HEAD_BAND = register(new CarrotHeadBandOutfit("carrot_head_band"));
}

private static int order;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package abeshutt.staracademy.outfit.models;

import abeshutt.staracademy.StarAcademyMod;
import abeshutt.staracademy.outfit.core.OutfitPiece;
import abeshutt.staracademy.outfit.core.OutfitTexture;
import net.minecraft.client.model.Dilation;
import net.minecraft.client.model.ModelPartBuilder;
import net.minecraft.client.model.ModelPartData;
import net.minecraft.client.model.ModelTransform;

public class CarrotHeadBandOutfit extends OutfitPiece {

public CarrotHeadBandOutfit(String id) {
super(id);
}

@Override
protected void buildMesh(ModelPartData modelPartData) {
ModelPartData head = modelPartData.addChild("head", ModelPartBuilder.create().uv(0, 0).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(0.75F)), ModelTransform.pivot(0.0F, 0.0F, 0.0F));

ModelPartData cube_r1 = head.addChild("cube_r1", ModelPartBuilder.create().uv(0, 24).cuboid(-4.0F, 0.0F, -4.0F, 8.0F, 0.0F, 8.0F, new Dilation(0.0F)), ModelTransform.of(4.391F, -12.5615F, -1.25F, -1.5708F, 0.0F, -0.3927F));

ModelPartData cube_r2 = head.addChild("cube_r2", ModelPartBuilder.create().uv(0, 16).cuboid(4.0F, 0.0F, -4.0F, 8.0F, 0.0F, 8.0F, new Dilation(0.0F))
.uv(32, 0).cuboid(-6.0F, -0.5F, -0.5F, 2.0F, 1.0F, 1.0F, new Dilation(0.0F))
.uv(0, 32).cuboid(-4.0F, -1.0F, -1.0F, 8.0F, 2.0F, 2.0F, new Dilation(0.0F)), ModelTransform.of(-3.0F, -9.5F, -1.25F, 0.0F, 0.0F, -0.3927F));
}

@Override
protected OutfitTexture buildTexture() {
return new OutfitTexture(32, 32,
StarAcademyMod.id("textures/entity/outfit/carrot_head_band.png"),
StarAcademyMod.mid("outfit/carrot_head_band", "inventory")
);
}

}


Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "academy:item/outfit/carrot_head_band"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0977605

Please sign in to comment.