Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4d07b3d
altar init
balugaq Mar 14, 2026
d4c7a03
altar init
balugaq Mar 14, 2026
ce450d5
make it runnable
balugaq Mar 14, 2026
3277809
Merge branch 'balugaq/potion-altar' of https://github.com/pylonmc/pyl…
balugaq Mar 14, 2026
93c503e
Merge branch 'master' of https://github.com/pylonmc/pylon into baluga…
balugaq Mar 28, 2026
a39af4e
catalysts
balugaq Mar 28, 2026
6fb6cc7
todo list
balugaq Mar 28, 2026
e5d5a27
recipes
balugaq Mar 29, 2026
2cb3738
find bug
balugaq Apr 4, 2026
912f6eb
no longer use recipe processor
balugaq Apr 5, 2026
c4a6723
Update en.yml
balugaq Apr 5, 2026
d134ca5
Update src/main/resources/lang/en.yml
balugaq Apr 10, 2026
17ba820
Update src/main/java/io/github/pylonmc/pylon/content/machines/simple/…
balugaq Apr 10, 2026
1f4443f
Update src/main/java/io/github/pylonmc/pylon/content/machines/simple/…
balugaq Apr 10, 2026
cb652d0
pr comments - 1
balugaq Apr 10, 2026
d04aad5
pr comments - 2
balugaq Apr 10, 2026
91ec374
progress recover
balugaq Apr 11, 2026
cfa8f30
and more particles
balugaq Apr 11, 2026
2f05370
recover recipe and particles
balugaq Apr 11, 2026
23f1726
Merge branch 'master' into balugaq/potion-altar
balugaq Apr 11, 2026
2ac1719
balance
balugaq Apr 17, 2026
e885cc2
fix condition
balugaq Apr 17, 2026
d92a7be
remove shimmer_dust_3 aaaaa
balugaq Apr 18, 2026
9273dee
fix locked pedestal
balugaq Apr 19, 2026
f73e4b0
Update src/main/java/io/github/pylonmc/pylon/content/building/Pedesta…
balugaq Apr 25, 2026
52c1a1d
Update src/main/resources/lang/en.yml
balugaq Apr 25, 2026
ca783ce
add getApplicationSuccessRate(
balugaq Apr 25, 2026
3bcf89f
Merge branch 'balugaq/potion-altar' of https://github.com/pylonmc/pyl…
balugaq Apr 25, 2026
bbf61e6
Merge branch 'master' into balugaq/potion-altar
LordIdra May 10, 2026
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: 2 additions & 0 deletions src/main/java/io/github/pylonmc/pylon/PylonBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ public static void initialize() {
RebarBlock.register(PylonKeys.ASSEMBLY_TABLE, Material.ANVIL, AssemblyTable.class);
RebarBlock.register(PylonKeys.CREATIVE_ITEM_SOURCE, Material.STRUCTURE_VOID, CreativeItemSource.class);
RebarBlock.register(PylonKeys.CREATIVE_ITEM_VOIDER, Material.STRUCTURE_VOID, CreativeItemVoider.class);
RebarBlock.register(PylonKeys.POTION_PEDESTAL, Material.END_STONE_BRICK_WALL, PotionPedestal.class);
RebarBlock.register(PylonKeys.POTION_ALTAR, Material.STONE_BRICK_SLAB, PotionAltar.class);
RebarBlock.register(PylonKeys.COLLIMATOR, Material.OBSIDIAN, Collimator.class);
RebarBlock.register(PylonKeys.COLLIMATOR_PILLAR, Material.DEEPSLATE_TILE_WALL, CollimatorPillar.class);
RebarBlock.register(PylonKeys.WOODEN_SILO, Material.BROWN_TERRACOTTA, Silo.class);
Expand Down
36 changes: 36 additions & 0 deletions src/main/java/io/github/pylonmc/pylon/PylonItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -3244,6 +3244,42 @@ private PylonItems() {

//</editor-fold>

public static final ItemStack POTION_PEDESTAL = ItemStackBuilder.rebar(Material.END_STONE_BRICK_WALL, PylonKeys.POTION_PEDESTAL)
Comment thread
balugaq marked this conversation as resolved.
.build();
static {
RebarItem.register(RebarItem.class, POTION_PEDESTAL, PylonKeys.POTION_PEDESTAL);
PylonPages.SIMPLE_MACHINES.addItem(POTION_PEDESTAL);
}

public static final ItemStack POTION_ALTAR = ItemStackBuilder.rebar(Material.STONE_BRICK_SLAB, PylonKeys.POTION_ALTAR)
.build();
static {
RebarItem.register(PotionAltar.Item.class, POTION_ALTAR, PylonKeys.POTION_ALTAR);
PylonPages.SIMPLE_MACHINES.addItem(POTION_ALTAR);
}

public static final ItemStack ASCENDANT_EMBER = ItemStackBuilder.rebar(Material.BLAZE_POWDER, PylonKeys.ASCENDANT_EMBER)
.build();
static {
RebarItem.register(AscendantEmber.class, ASCENDANT_EMBER, PylonKeys.ASCENDANT_EMBER);
PylonPages.MAGIC.addItem(ASCENDANT_EMBER);
}

public static final ItemStack CHRONICLE_RESIN = ItemStackBuilder.rebar(Material.RESIN_CLUMP, PylonKeys.CHRONICLE_RESIN)
.build();
static {
RebarItem.register(ChronicleResin.class, CHRONICLE_RESIN, PylonKeys.CHRONICLE_RESIN);
PylonPages.MAGIC.addItem(CHRONICLE_RESIN);
}

public static final ItemStack EON_WEAVE_CRYSTAL = ItemStackBuilder.rebar(Material.CLAY_BALL, PylonKeys.EON_WEAVE_CRYSTAL)
.set(DataComponentTypes.ITEM_MODEL, Material.END_CRYSTAL.getKey())
.build();
static {
RebarItem.register(EonWeaveCrystal.class, EON_WEAVE_CRYSTAL, PylonKeys.EON_WEAVE_CRYSTAL);
PylonPages.MAGIC.addItem(EON_WEAVE_CRYSTAL);
}

Comment thread
balugaq marked this conversation as resolved.
public static final ItemStack CLEANSING_POTION = ItemStackBuilder.rebar(Material.SPLASH_POTION, PylonKeys.CLEANSING_POTION)
.set(DataComponentTypes.POTION_CONTENTS, PotionContents.potionContents()
.customColor(Color.FUCHSIA)
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/io/github/pylonmc/pylon/PylonKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,11 @@ public class PylonKeys {
public static final NamespacedKey FLUID_TANK_CASING_PALLADIUM = pylonKey("fluid_tank_casing_palladium");
public static final NamespacedKey PORTABLE_FLUID_TANK_PALLADIUM = pylonKey("portable_fluid_tank_palladium");

public static final NamespacedKey POTION_PEDESTAL = pylonKey("potion_pedestal");
public static final NamespacedKey POTION_ALTAR = pylonKey("potion_altar");
public static final NamespacedKey ASCENDANT_EMBER = pylonKey("ascendant_ember");
public static final NamespacedKey CHRONICLE_RESIN = pylonKey("chronicle_resin");
public static final NamespacedKey EON_WEAVE_CRYSTAL = pylonKey("eon_weave_crystal");
public static final NamespacedKey SILO_CONVERTER = pylonKey("silo_converter");
public static final NamespacedKey WOODEN_SILO = pylonKey("wooden_silo");
public static final NamespacedKey COPPER_SILO = pylonKey("copper_silo");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void onInteract(@NotNull PlayerInteractEvent event, @NotNull EventPriorit
// drop old item
ItemStack oldStack = display.getItemStack();
ItemStack newStack = event.getItem();

if (!oldStack.getType().isAir()) {
player.give(oldStack);
display.setItemStack(null);
Expand All @@ -111,12 +112,26 @@ public void onInteract(@NotNull PlayerInteractEvent event, @NotNull EventPriorit

// insert new item
if (newStack != null) {
if (isIllegalItem(event.getPlayer(), newStack)) {
return;
}

ItemStack stackToInsert = newStack.asQuantity(1);
display.setItemStack(stackToInsert);
newStack.subtract();
}
}

/**
* This method is called when an item is inserted into the pedestal. It can be used to check if the item is
* allowed to be inserted.
*
* @return true if the item can be inserted into the pedestal, false otherwise
*/
public boolean isIllegalItem(Player player, ItemStack stack) {
return false;
}

@Override
public void onBreak(@NotNull List<ItemStack> drops, @NotNull BlockBreakContext context) {
drops.add(getItemDisplay().getItemStack());
Expand Down
Loading
Loading