Skip to content
Merged

26.1 #32

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jei_version=29.5.0.28
mod_id=justdynathings
mod_name=Just Dyna Things
mod_license=Custom License
mod_version=2.0-alpha-build4
mod_version=2.0-alpha-build5
mod_group_id=com.devdyna.justdynathings
mod_authors=DevDyna
mod_description=Just Dire Things addon to add more stuff and qol things
Expand Down
43 changes: 24 additions & 19 deletions src/main/java/com/devdyna/justdynathings/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Config {

public static BooleanValue ENABLE_ALL_JEI_FUELS;

public static ConfigValue<List<String>> UNSTABLE_TIME_CRYSTAL_TOOLTIPS;
public static ConfigValue<List<? extends String>> UNSTABLE_TIME_CRYSTAL_TOOLTIPS;

public static BooleanValue PHASE_BOX_WRENCHABLE;

Expand Down Expand Up @@ -185,24 +185,29 @@ private static void misc() {
.comment("Include any fuel item to Generator JEI category")
.define("include_any_jei_fuels", true);

UNSTABLE_TIME_CRYSTAL_TOOLTIPS = qCOMMON
.comment("Define the pool of strings that will show as tooltip below Void Crystal")
.define("void_crystal_tooltips", List.of(
"Unstable Stability",
"This is time",
"Fragment of reality",
"The paradox must grow",
"Is the time a lie?",
"There is a paradox on your timeline",
"Time to collapse",
"Time is relative",
"It's time to collapse",
"You collapse me round",
"Press T to collapse",
"Paradox mentioned",
"Never gone collapse up",
"Better with Time"
));
UNSTABLE_TIME_CRYSTAL_TOOLTIPS = qCOMMON
.comment("Define the pool of strings that will show as tooltip below Void Crystal")
.defineList(
List.of("void_crystal_tooltips"),
() -> List.of(
"Unstable Stability",
"This is time",
"Fragment of reality",
"The paradox must grow",
"Is the time a lie?",
"There is a paradox on your timeline",
"Time to collapse",
"Time is relative",
"Its time to collapse",
"You collapse me round",
"Press T to collapse",
"Paradox mentioned",
"Never gone collapse up",
"Better with Time"
),
() -> "",
o -> o instanceof String
);

qCOMMON.pop();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.devdyna.justdynathings.init.builder;

import java.util.List;
import java.util.function.Consumer;

import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -30,7 +31,7 @@ public VoidCrystal(Properties p) {
@Override
public void inventoryTick(@NotNull ItemStack item, @NotNull ServerLevel level, @NotNull Entity entity,
@Nullable EquipmentSlot slot) {
//apply different effects?
// apply different effects?
if (entity instanceof LivingEntity) {
if (level.getRandom().nextFloat() < 0.005F) {
level.playSound(entity, entity.getOnPos(),
Expand All @@ -50,11 +51,11 @@ public Component getName(ItemStack stack) {
return Component.translatable(getDescriptionId())
.withStyle(ChatFormatting.DARK_PURPLE);
}

@Override
public void appendHoverText(ItemStack stack, TooltipContext context, TooltipDisplay display,
Consumer<Component> tooltip, TooltipFlag flagIn) {
tooltip.accept(AnimatedText.create("id", Config.UNSTABLE_TIME_CRYSTAL_TOOLTIPS.get()));
tooltip.accept(AnimatedText.create(this.descriptionId, (List<String>) Config.UNSTABLE_TIME_CRYSTAL_TOOLTIPS.get()));
}

}
Loading