-
Notifications
You must be signed in to change notification settings - Fork 9
[ref:vaan/feature/crucible] Crucible #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The linked issue should be accomplished by allowing melting rocks into a smeltery imo |
|
Instead of adding a whole new machine |
That feels like shooting ducks with a cannon tho |
|
LordIdra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost identical to the mixing pot as it stands.
I would suggest instead to do what 'modded' crucibles do, where items that get thrown in are consumed (one by one) and then slowly melted. So you throw cobblestone in, and over 25 seconds, 4 mb of lava are added per second. Then, it's ready to consume the next cobblestone you throw in. (And also produces smoke gradually as it goes).
This makes balancing much easier and differentiates this enough to make it worth having alongside the mixing pot
Ok did something very similar to modded, instead of having it tick every second and add it gradually (which with many crucibles it might be unnecessarily performance intensive), I made it melt a block every X ticks, just like modded crucibles depending on the heat source below, it will change the melting speed |
|
Requires pylonmc/pylon-core#512 |
|
(changed name so itll compile) |
|
I think it is done? |
|
Requires pylonmc/pylon-core#521 |
LordIdra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple more small things I noticed.
Another thing, the ticking rate seems to have gone up a LOT, like it chomps up cobblestone like crazy now. Assuming this isn't intended?
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/recipes/CrucibleRecipe.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
yes, it depends on the block below, if you use lava it is supposed to be a LOT faster, if you use a torch, it should have same behaviour as before (minimum speed) |
Seggan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Played around with it ingame, ngl I would prefer you throwing in items instead of right clicking the crucible. Barring that, at least a way to get the items out pls?
src/main/java/io/github/pylonmc/pylon/base/recipes/CrucibleRecipe.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/recipes/CrucibleRecipe.java
Outdated
Show resolved
Hide resolved
LordIdra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to put in items when it's not heated. Right now you can't. I think making this not a multiblock will fix that.
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
| animate(display, 0, duration, matrix); | ||
| } | ||
|
|
||
| public static @NotNull ItemStack makeItem(@NotNull NamespacedKey key) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like I might have mentioned this already, but this seems like a common enough thing that it should be a core util. In fact, don't we already do something similar when deserializing recipe inputs? Presumably the logic from there could just be extracted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ItemTypeWrapper is indeed similar, however there is no fallback behaviour like in this case, do you still want me to extract it to a core util?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be a good idea yes - this seems like a relatively common thing that addons might want to do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe in the future, this already depends on the Dynamic Tick Interval, so we can make and fix the issue after this is merged, or yo want Dynamic Tick Interval to handle this too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhhh up to you. I think adding it to the dynamic tick interval PR is fine.
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
LordIdra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The particles still look really awkward IMO but I think this will be easier when/if we change the mixing pot and crucible to display the liquid inside of it better so I am happy to leave it for now
Nice work on this. Just a few small things but I will leave it be and merge after that. Hope the reviews haven't been too much lol
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/machines/simple/Crucible.java
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/recipes/CrucibleRecipe.java
Outdated
Show resolved
Hide resolved
# Conflicts: # src/main/java/io/github/pylonmc/pylon/base/BaseItems.java # src/main/java/io/github/pylonmc/pylon/base/BaseRecipes.java # src/main/resources/lang/en.yml # src/main/resources/recipes/minecraft/crafting_shaped.yml


Fixes #299