Skip to content

Commit

Permalink
Agh
Browse files Browse the repository at this point in the history
  • Loading branch information
SammySemicolon committed Jan 23, 2024
1 parent bfd79db commit ae4a7b1
Show file tree
Hide file tree
Showing 46 changed files with 524 additions and 287 deletions.
2 changes: 2 additions & 0 deletions src/generated/resources/assets/malum/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@
"item.malum.ring_of_reinforcement": "Ring of Reinforcement",
"item.malum.ring_of_the_demolitionist": "Ring of the Demolitionist",
"item.malum.ring_of_the_hoarder": "Ring of the Hoarder",
"item.malum.ring_of_the_plentiful": "Ring of the Plentiful",
"item.malum.ritual_shard": "Ritual Shard",
"item.malum.rotting_essence": "Rotting Essence",
"item.malum.runewood_boat": "Runewood Boat",
Expand Down Expand Up @@ -429,6 +430,7 @@
"item.malum.spirit_fabric": "Spirit Fabric",
"item.malum.spirit_pouch": "Spirit Pouch",
"item.malum.staff_of_the_auric_flame": "Staff of the Auric Flame",
"item.malum.stellar_mechanism": "Stellar Mechanism",
"item.malum.tin_impetus": "Tin Impetus",
"item.malum.tin_node": "Tin Node",
"item.malum.token_of_gratitude": "Token of Gratitude",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "malum:item/ring_of_the_plentiful"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "malum:item/stellar_mechanism"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 1,
"item": "malum:fused_consciousness"
},
{
"count": 16,
"item": "malum:void_salts"
},
{
"count": 8,
"item": "malum:null_slate"
},
{
"count": 4,
"item": "malum:mnemonic_fragment"
}
],
"input": {
"count": 1,
"item": "malum:belt_of_the_magebane"
},
"output": {
"item": "malum:belt_of_the_limitless"
},
"spirits": [
{
"type": "wicked",
"count": 32
},
{
"type": "arcane",
"count": 32
},
{
"type": "eldritch",
"count": 16
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 8,
"item": "malum:null_slate"
},
{
"count": 8,
"item": "malum:mnemonic_fragment"
}
],
"input": {
"count": 1,
"item": "malum:ring_of_esoteric_spoils"
},
"output": {
"item": "malum:ring_of_the_plentiful"
},
"spirits": [
{
"type": "wicked",
"count": 32
},
{
"type": "arcane",
"count": 16
},
{
"type": "aqueous",
"count": 16
},
{
"type": "eldritch",
"count": 8
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 8,
"item": "malum:mnemonic_fragment"
},
{
"count": 4,
"item": "malum:soul_stained_steel_ingot"
}
],
"input": {
"count": 2,
"item": "malum:soulwood_planks"
},
"output": {
"item": "malum:soul_stained_steel_staff"
},
"spirits": [
{
"type": "wicked",
"count": 32
},
{
"type": "aerial",
"count": 16
},
{
"type": "aqueous",
"count": 16
},
{
"type": "eldritch",
"count": 8
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 1,
"item": "malum:fused_consciousness"
},
{
"count": 8,
"item": "malum:auric_embers"
},
{
"count": 8,
"item": "malum:void_salts"
}
],
"input": {
"count": 1,
"item": "malum:soul_stained_steel_staff"
},
"output": {
"item": "malum:staff_of_the_auric_flame"
},
"spirits": [
{
"type": "wicked",
"count": 32
},
{
"type": "arcane",
"count": 16
},
{
"type": "infernal",
"count": 16
},
{
"type": "eldritch",
"count": 16
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"type": "malum:spirit_infusion",
"extra_items": [
{
"count": 1,
"item": "malum:fused_consciousness"
},
{
"count": 2,
"item": "malum:null_slate"
}
],
"input": {
"count": 4,
"item": "malum:alchemical_calx"
},
"output": {
"item": "malum:stellar_mechanism"
},
"spirits": [
{
"type": "aerial",
"count": 4
},
{
"type": "aqueous",
"count": 4
},
{
"type": "earthen",
"count": 4
},
{
"type": "infernal",
"count": 4
},
{
"type": "eldritch",
"count": 4
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.sammy.malum.client.*;
import com.sammy.malum.client.renderer.entity.*;
import com.sammy.malum.common.block.curiosities.spirit_crucible.*;
import com.sammy.malum.common.item.catalyzer_augment.*;
import com.sammy.malum.common.item.augment.*;
import com.sammy.malum.common.item.spirit.*;
import com.sammy.malum.registry.client.*;
import com.sammy.malum.registry.common.item.*;
Expand All @@ -17,7 +17,6 @@
import net.minecraft.client.renderer.blockentity.*;
import net.minecraft.client.renderer.entity.*;
import net.minecraft.network.chat.*;
import net.minecraft.util.*;
import net.minecraft.world.item.*;
import net.minecraft.world.level.*;
import net.minecraft.world.phys.*;
Expand Down Expand Up @@ -117,13 +116,13 @@ public void render(SpiritCrucibleCoreBlockEntity blockEntityIn, float partialTic
float scale = 0.016F - (1-scalar)*0.004f;
final Font.DisplayMode display = Font.DisplayMode.NORMAL;
MultiBufferSource textBuffer = new BufferWrapper(RenderTypeRegistry.ADDITIVE_TEXT, RenderHandler.DELAYED_RENDER);
final List<CrucibleTuning.CrucibleTuningType> validValues = CrucibleTuning.CrucibleTuningType.getValidValues(blockEntityIn.acceleratorData);
final List<CrucibleTuning.CrucibleAttributeType> validValues = CrucibleTuning.CrucibleAttributeType.getValidValues(blockEntityIn.acceleratorData);
poseStack.pushPose();
poseStack.translate(0.5f, 2f, 0.5f);
poseStack.mulPose(Minecraft.getInstance().getEntityRenderDispatcher().cameraOrientation());
poseStack.mulPose(Axis.YP.rotationDegrees(180f));
for (int i = 0; i < validValues.size(); i++) {
CrucibleTuning.CrucibleTuningType tuningType = validValues.get(i);
CrucibleTuning.CrucibleAttributeType tuningType = validValues.get(i);
String dataPrint = tuningType.statDisplayFunction.apply(blockEntityIn.getAccelerationData());
boolean important = tuningType.equals(blockEntityIn.tuningType);
MutableComponent dataText = Component.literal(" <" + dataPrint + ">");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import static com.sammy.malum.MalumMod.*;
import static team.lodestar.lodestone.handlers.RenderHandler.*;

public class AbstractBoltEntityRenderer<T extends AbstractBoltProjectileEntity> extends EntityRenderer<T> {
public abstract class AbstractBoltEntityRenderer<T extends AbstractBoltProjectileEntity> extends EntityRenderer<T> {
public final Color primaryColor;
public final Color secondaryColor;
public AbstractBoltEntityRenderer(EntityRendererProvider.Context context, Color primaryColor, Color secondaryColor) {
Expand All @@ -44,10 +44,10 @@ public void render(T entity, float entityYaw, float partialTicks, PoseStack pose
List<TrailPoint> trailPoints = entity.trailPointBuilder.getTrailPoints();
poseStack.pushPose();
VertexConsumer lightBuffer = DELAYED_RENDER.getBuffer(TRAIL_TYPE);
float x = (float) Mth.lerp(partialTicks, entity.xOld, entity.getX());
float y = (float) Mth.lerp(partialTicks, entity.yOld, entity.getY());
float z = (float) Mth.lerp(partialTicks, entity.zOld, entity.getZ());
if (spinningTrailPoints.size() > 3) {
float x = (float) Mth.lerp(partialTicks, entity.xOld, entity.getX());
float y = (float) Mth.lerp(partialTicks, entity.yOld, entity.getY());
float z = (float) Mth.lerp(partialTicks, entity.zOld, entity.getZ());
poseStack.translate(-x, -y, -z);
VFXBuilders.WorldVFXBuilder builder = VFXBuilders.createWorld().setPosColorTexLightmapDefaultFormat();
for (int i = 0; i < 2; i++) {
Expand All @@ -61,9 +61,6 @@ public void render(T entity, float entityYaw, float partialTicks, PoseStack pose
poseStack.translate(x, y, z);
}
if (trailPoints.size() > 3) {
float x = (float) Mth.lerp(partialTicks, entity.xOld, entity.getX());
float y = (float) Mth.lerp(partialTicks, entity.yOld, entity.getY());
float z = (float) Mth.lerp(partialTicks, entity.zOld, entity.getZ());
poseStack.translate(-x, -y, -z);
VFXBuilders.WorldVFXBuilder builder = VFXBuilders.createWorld().setPosColorTexLightmapDefaultFormat();
for (int i = 0; i < 2; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ public static void setupEntries() {
.setWidgetConfig(w -> w.setIcon(VOID_SALTS).setStyle(BookWidgetStyle.SOULWOOD))
);
VOID_ENTRIES.add(new BookEntry(
"void.mnemotic_fragment", 1, 3)
.setWidgetConfig(w -> w.setIcon(MNEMONIC_FRAGMENT).setStyle(BookWidgetStyle.SOULWOOD))
"void.auric_embers", 1, 3)
.setWidgetConfig(w -> w.setIcon(AURIC_EMBERS).setStyle(BookWidgetStyle.SOULWOOD))
);
VOID_ENTRIES.add(new BookEntry(
"void.auric_embers", 2, 2)
.setWidgetConfig(w -> w.setIcon(AURIC_EMBERS).setStyle(BookWidgetStyle.SOULWOOD))
"void.mnemotic_fragment", 2, 2)
.setWidgetConfig(w -> w.setIcon(MNEMONIC_FRAGMENT).setStyle(BookWidgetStyle.SOULWOOD))
);

VOID_ENTRIES.add(new BookEntry(
Expand Down Expand Up @@ -175,7 +175,7 @@ public static void setupEntries() {


VOID_ENTRIES.add(new BookEntry(
"void.anomalous_snare", 0, 6)
"void.anomalous_design", 0, 6)
.setWidgetConfig(w -> w.setIcon(ANOMALOUS_DESIGN).setStyle(BookWidgetStyle.SOULWOOD))
);
VOID_ENTRIES.add(new BookEntry(
Expand All @@ -187,15 +187,11 @@ public static void setupEntries() {
.setWidgetConfig(w -> w.setIcon(BELT_OF_THE_LIMITLESS).setStyle(BookWidgetStyle.SOULWOOD))
);
VOID_ENTRIES.add(new BookEntry(
"void.something5", 2, 8)
.setWidgetConfig(w -> w.setIcon(BARRIER).setStyle(BookWidgetStyle.SOULWOOD))
);
VOID_ENTRIES.add(new BookEntry(
"void.miracle_apparatus", 0, 9)
.setWidgetConfig(w -> w.setIcon(BARRIER).setStyle(BookWidgetStyle.SOULWOOD))
"void.stellar_mechanism", 2, 8)
.setWidgetConfig(w -> w.setIcon(STELLAR_MECHANISM).setStyle(BookWidgetStyle.SOULWOOD))
);
VOID_ENTRIES.add(new BookEntry(
"void.staff_of_the_auric_flame", 1, 10)
"void.staff_of_the_auric_flame", 0, 9)
.setWidgetConfig(w -> w.setIcon(STAFF_OF_THE_AURIC_FLAME).setStyle(BookWidgetStyle.SOULWOOD))
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.sammy.malum.common.block.curiosities.spirit_crucible;

import com.sammy.malum.common.block.*;
import com.sammy.malum.common.item.augment.*;
import com.sammy.malum.common.item.augment.core.*;
import com.sammy.malum.registry.common.*;
import net.minecraft.sounds.*;
import net.minecraft.world.item.*;

import java.util.function.*;

public class AugmentBlockEntityInventory extends MalumBlockEntityInventory {
public AugmentBlockEntityInventory(int slotCount, int allowedItemSize) {
this(slotCount, allowedItemSize, t -> t.getItem() instanceof AbstractAugmentItem augmentItem && !(augmentItem instanceof CoreAugmentItem));
}
public AugmentBlockEntityInventory(int slotCount, int allowedItemSize, Predicate<ItemStack> inputPredicate) {
super(slotCount, allowedItemSize, inputPredicate);
}

@Override
public SoundEvent getInsertSound(ItemStack stack) {
return SoundRegistry.APPLY_AUGMENT.get();
}

@Override
public SoundEvent getExtractSound(ItemStack stack) {
return SoundRegistry.REMOVE_AUGMENT.get();
}
}
Loading

0 comments on commit ae4a7b1

Please sign in to comment.