Skip to content

Commit

Permalink
Wawawawa
Browse files Browse the repository at this point in the history
  • Loading branch information
SammySemicolon committed Jan 11, 2024
1 parent 6effe6e commit cfe166e
Show file tree
Hide file tree
Showing 71 changed files with 1,352 additions and 226 deletions.
49 changes: 48 additions & 1 deletion src/generated/resources/assets/malum/lang/en_us.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "malum:item/shielding_apparatus"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "malum:item/wexing_engine"
"layer0": "malum:item/tuning_fork"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "malum:item/warping_engine"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 4,
"item": "malum:astral_weave"
},
{
"count": 1,
"tag": "forge:gems/diamond"
},
{
"count": 2,
"item": "malum:processed_soulstone"
}
],
"input": {
"count": 4,
"item": "malum:alchemical_calx"
},
"output": {
"item": "malum:accelerating_inlay"
},
"spirits": [
{
"type": "aerial",
"count": 16
},
{
"type": "arcane",
"count": 4
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 4,
"item": "malum:blazing_quartz"
},
{
"count": 1,
"item": "minecraft:blaze_powder"
},
{
"count": 2,
"item": "malum:processed_soulstone"
}
],
"input": {
"count": 4,
"item": "malum:alchemical_calx"
},
"output": {
"item": "malum:blazing_diode"
},
"spirits": [
{
"type": "infernal",
"count": 16
},
{
"type": "arcane",
"count": 4
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 4,
"item": "malum:chunk_of_brilliance"
},
{
"count": 1,
"tag": "forge:gems/emerald"
},
{
"count": 2,
"item": "malum:processed_soulstone"
}
],
"input": {
"count": 4,
"item": "malum:alchemical_calx"
},
"output": {
"item": "malum:intricate_assembly"
},
"spirits": [
{
"type": "earthen",
"count": 16
},
{
"type": "arcane",
"count": 4
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 4,
"item": "malum:living_flesh"
},
{
"count": 2,
"item": "malum:processed_soulstone"
}
],
"input": {
"count": 4,
"item": "malum:alchemical_calx"
},
"output": {
"item": "malum:mending_diffuser"
},
"spirits": [
{
"type": "sacred",
"count": 16
},
{
"type": "arcane",
"count": 4
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 4,
"tag": "forge:gems/prismarine"
},
{
"count": 1,
"item": "malum:spectral_lens"
},
{
"count": 2,
"item": "malum:processed_soulstone"
}
],
"input": {
"count": 4,
"item": "malum:alchemical_calx"
},
"output": {
"item": "malum:prismatic_focus_lens"
},
"spirits": [
{
"type": "aqueous",
"count": 16
},
{
"type": "arcane",
"count": 4
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 4,
"item": "malum:soul_stained_steel_plating"
},
{
"count": 2,
"item": "malum:processed_soulstone"
}
],
"input": {
"count": 4,
"item": "malum:alchemical_calx"
},
"output": {
"item": "malum:shielding_apparatus"
},
"spirits": [
{
"type": "arcane",
"count": 16
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 2,
"item": "malum:runewood_planks"
},
{
"count": 1,
"item": "malum:processed_soulstone"
}
],
"input": {
"count": 2,
"tag": "forge:ingots/iron"
},
"output": {
"item": "malum:tuning_fork"
},
"spirits": [
{
"type": "arcane",
"count": 8
},
{
"type": "aqueous",
"count": 8
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 8,
"item": "malum:hex_ash"
},
{
"count": 2,
"item": "malum:processed_soulstone"
}
],
"input": {
"count": 4,
"item": "malum:alchemical_calx"
},
"output": {
"item": "malum:warping_engine"
},
"spirits": [
{
"type": "eldritch",
"count": 4
},
{
"type": "arcane",
"count": 4
}
]
}
25 changes: 25 additions & 0 deletions src/main/java/com/sammy/malum/client/BufferWrapper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.sammy.malum.client;

import com.mojang.blaze3d.vertex.*;
import net.minecraft.client.renderer.*;
import team.lodestar.lodestone.systems.rendering.rendeertype.*;

import java.util.function.*;

public class BufferWrapper implements MultiBufferSource {

public final Function<RenderStateShard.EmptyTextureStateShard, RenderType> provider;
public final MultiBufferSource buffer;

public BufferWrapper(Function<RenderStateShard.EmptyTextureStateShard, RenderType> provider, MultiBufferSource buffer) {
this.provider = provider;
this.buffer = buffer;
}

@Override
public VertexConsumer getBuffer(RenderType renderType) {
if (renderType instanceof RenderType.CompositeRenderType composite)
return buffer.getBuffer(provider.apply(composite.state.textureState));
return buffer.getBuffer(renderType);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public void render(SpiritCatalyzerCoreBlockEntity blockEntityIn, float partialTi
stack = blockEntityIn.augmentInventory.getStackInSlot(0);
if (!stack.isEmpty()) {
poseStack.pushPose();
Vec3 offset = blockEntityIn.getItemOffset();
poseStack.translate(offset.x, offset.y+0.75f, offset.z);
poseStack.mulPose(Axis.YP.rotationDegrees(((-level.getGameTime() % 360) + partialTicks) * 3));
Vec3 offset = blockEntityIn.getAugmentOffset();
poseStack.translate(offset.x, offset.y, offset.z);
poseStack.mulPose(Axis.YP.rotationDegrees(((-level.getGameTime() % 360) - partialTicks) * 3));
poseStack.scale(0.45f, 0.45f, 0.45f);
itemRenderer.renderStatic(stack, ItemDisplayContext.FIXED, combinedLightIn, NO_OVERLAY, poseStack, bufferIn, level, 0);
poseStack.popPose();
Expand Down
Loading

0 comments on commit cfe166e

Please sign in to comment.