Add stonecutter functionality #3999
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Depends on
#4019 Rework Stonecutter functionality
VoxeLibre/VoxeLibre
Reference: VoxeLibre/VoxeLibre#3999
Loading…
Reference in New Issue
No description provided.
Delete Branch "stonecutter_functionality"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adoption of #3866
16df1bcd92
to89730b65fb
WIP: Add stonecutter functionalityto Add stonecutter functionalityI reimplemented the stonecutter recipes with a brand new API. Fixed a few bugs. Leaving this up for testing, as this is massive and contains large bits of code by other authors, which I have only reviewed.
There is an issue when we took item from the output.
Question : Is it possible to put the number of item to craft bottom right instead of in center?
And maybe hide this number if it's 1 (like in output)
I will do a PR on this branch with a V4 formspec and also remove dependency on node meta/inventory just like crafting table.
I mean, if you add to this branch it will all apply to this PR.
4f05e64daf
to7fb1bf6e98
This should be ready, except for the fact that there are no labels in the result choosing menu anymore. I'm not sure if we really need them though, especially that the buttons are smaller now.
IMO the labels are not needed. Its duplicated with the output preview and would require doubling the amount of formspec elements for the item grid (there is no way to move the centered builtin button label to the bottom right).
@ -7,0 +9,4 @@
-- * stonecutter_input (1)
-- * stonecutter_output (1)
-- Player meta:
-- * stonecutter_selected (string, wanted item name)
The second metadata field
mcl_stonecutter:switch_stack
isn't mentioned here.stonecutter_selected
should be renamed tomcl_stonecutter:selected
, I didn't think about it in my PR, just moved the mata field from node to player.You're right. Done.
This should be all ready to merge now, but leaving it up for testing for now. Will merge in 2-3 days if no new problems surface.
I found a bug. It allows for item duplication.
Steps to Reproduce:
This seems to work with both stack sizes.
P.S. Kinda interesting that the stone cutter saves the previous selected option.
Seems like the output count for the copper recipes are wrong.
https://minecraft.fandom.com/wiki/Block_of_Copper
https://minecraft.fandom.com/wiki/Stonecutter
One copper block should produce 4 cut copper. This also applies to the other variants and the slabs which produce 4 times the normal amount (8) and stairs (4).
Fallthrough recipes multiply automatically, so it's just adding the cut copper thing... I remember seeing that and considering it a bug though.
It's a side effect of how it's implemented, but it's nice so of course I kept it.
Problems fixed, I'm merging this in 2-3 days if nothing new surfaces.
bcaaccd461
to8fd988da11
Sorry for the duplication bug, I really don't know how I didn't catch this 🙃