if petra lets me wear this on head, i'm ready

This commit is contained in:
yrsegal@gmail.com 2022-04-12 00:19:50 -04:00
parent 7b87da018c
commit 682807596b
4 changed files with 26 additions and 4 deletions

View file

@ -246,7 +246,7 @@ a6cabea2984ed2b5b0dcd0087c762c9b9892a5fe assets/hexcasting/models/item/focus_pat
991af62ccdc4c063321cc7994e0a106a432d1487 assets/hexcasting/models/item/impetus_look.json
199a1c37b3fdb1e7da93408bbe85c5a2222e264e assets/hexcasting/models/item/impetus_rightclick.json
458550229be6036be246e290e99b643caa8b3f8a assets/hexcasting/models/item/impetus_storedplayer.json
0cdfde8339a08638fd11ce7bef4a0769eb15bcf9 assets/hexcasting/models/item/lens.json
bd802668917deadbe5aef78b815f04776da7051a assets/hexcasting/models/item/lens.json
22ec49ee56e2d0d9fca4473f965c64b82d712f79 assets/hexcasting/models/item/patchouli_book.json
d7dd348ef3d402a0e6d1c601581e30e99f9bcc87 assets/hexcasting/models/item/phial_large_0.json
5147beeb112a619702943b4da66a1c60484e5f10 assets/hexcasting/models/item/phial_large_1.json

View file

@ -1,5 +1,19 @@
{
"parent": "minecraft:item/generated",
"display": {
"head": {
"translation": [
-2.5,
0.5,
-8
],
"scale": [
0.4,
0.4,
0.4
]
}
},
"textures": {
"layer0": "hexcasting:item/lens"
}

View file

@ -25,7 +25,7 @@ public class HexBlockStatesAndModels extends PaucalBlockStateAndModelProvider {
@Override
protected void registerStatesAndModels() {
var slateModel = models().getExistingFile(modLoc("slate"));
getVariantBuilder(HexBlocks.SLATE.get()).forAllStates(bs -> {
getVariantBuilder(HexBlocks.SLATE.get()).forAllStatesExcept(bs -> {
int rotationX = 0;
int rotationY = 0;
switch (bs.getValue(BlockSlate.ATTACH_FACE)) {
@ -41,7 +41,7 @@ public class HexBlockStatesAndModels extends PaucalBlockStateAndModelProvider {
.rotationY(rotationY)
.uvLock(true)
.build();
});
}, BlockSlate.WATERLOGGED);
impetus(HexBlocks.IMPETUS_RIGHTCLICK.get(), "impetus_rightclick", "rightclick");
impetus(HexBlocks.IMPETUS_LOOK.get(), "impetus_look", "look");

View file

@ -11,6 +11,7 @@ import net.minecraft.data.DataGenerator;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.DyeColor;
import net.minecraft.world.item.Item;
import net.minecraftforge.client.model.generators.ModelBuilder;
import net.minecraftforge.client.model.generators.ModelFile;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.registries.RegistryObject;
@ -25,7 +26,6 @@ public class HexItemModels extends PaucalItemModelProvider {
simpleItem(HexItems.AMETHYST_DUST.get());
simpleItem(HexItems.CHARGED_AMETHYST.get());
simpleItem(HexItems.SUBMARINE_SANDWICH.get());
simpleItem(HexItems.SCRYING_LENS.get());
simpleItem(HexItems.ABACUS.get());
simpleItem(modLoc("scroll_pristine"));
@ -38,6 +38,14 @@ public class HexItemModels extends PaucalItemModelProvider {
.predicate(ItemScroll.ANCIENT_PREDICATE, 1f)
.model(new ModelFile.UncheckedModelFile(modLoc("item/scroll_ancient"))).end();
simpleItem(HexItems.SCRYING_LENS.get());
getBuilder(HexItems.SCRYING_LENS.get().getRegistryName().getPath())
.transforms()
.transform(ModelBuilder.Perspective.HEAD)
.rotation(0f, 0f, 0f)
.translation(-2.5f, 0.5f, -8f)
.scale(0.4f);
singleTexture(HexItems.WAND.getId().getPath(), new ResourceLocation("item/handheld_rod"),
"layer0", new ResourceLocation(HexMod.MOD_ID, "item/" + HexItems.WAND.getId().getPath()));