ITEMS/mcl_farming: Move farming plant nodes 1/16 downwards #293
No reviewers
Labels
No Label
blocker
bug
code quality
confirmed
critical
discussion
high priority
incompatibility
incomplete feature
invalid
low priority
missing feauture
needs testing
packet spam
performance
project
regression
translations
unconfirmed
in review
ready for review
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mineclonia/Mineclonia#293
Loading…
Reference in New Issue
No description provided.
Delete Branch "move-farming-plants-lower"
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?
Problem
TRACKING ISSUE: #286
Currently, plants and stems from mcl_farming are rendered within the boundaries of a standard node. As farming soil has a node height of 15/16, this means there exists a 1/16 nodes high gap between plants and farming soil.
Solution
This patchset shifts the visual appearance of plants and stems from mcl_farming and their selection boxes so that they appear 1/16 lower.
Details
The result was achieved with nodeboxes that imitate plantlike grid (#) and plus (+) node rendering. Textures were shifted 1px downwards in the node definition by means of texture modifiers. Some plants seem rotated by 1/8 of a full circle (45 degrees) because nodeboxes can not be rotated to match the previous plantlike rendering.
Testing Steps
Verify Bug
de8ea11b3967cb5b91951db80b1b865dda07b454
(oldest commit on branchmove-farming-plants-lower
)./generate_farming_plant_rows
./grantme debug
./generate_farming_plant_rows
.Verify Patch
0808b5419282a530bfc5a62ef0718a9f4f0e1189
(newest commit on branchmove-farming-plants-lower
)./grantme debug
./generate_farming_plant_rows
.To do
Debug Command
mcl_farming
on farming soil and glassCommon Functions
Beetroot
Carrots
Potatoes
Wheat
Melon Stems
Pumpkin Stems
Unconnected Gourd Stems
Connected Gourd Stems
8ad8b73c6a
to6ab2cab46e
6ab2cab46e
tod341c198be
d341c198be
to93810787ce
93810787ce
to6e7589f51c
6e7589f51c
tof826c8ba99
f826c8ba99
to53e8aa6aa3
53e8aa6aa3
to61a5f13239
61a5f13239
to56f8fa3b30
56f8fa3b30
to37ff2515ad
37ff2515ad
to2d951a228e
2d951a228e
toe3131859dd
e3131859dd
todc88088fd9
dc88088fd9
tob13f576000
b13f576000
tocd0dfcf1c0
IMO this PR is basically done except for testing/verification instructions/hints.
WIP: ITEMS/mcl_farming: Move farming plant nodes 1/16 downwardsto ITEMS/mcl_farming: Move farming plant nodes 1/16 downwardsafter some testing, I found the following problems:
It turns out that by removing the
place_param2
from plants, going to an earlier version makes plants have an X shape instead of a grid (#) shap. I think I have to add the lines back!ITEMS/mcl_farming: Move farming plant nodes 1/16 downwardsto WIP: ITEMS/mcl_farming: Move farming plant nodes 1/16 downwardscd0dfcf1c0
to0808b54192
WIP: ITEMS/mcl_farming: Move farming plant nodes 1/16 downwardsto ITEMS/mcl_farming: Move farming plant nodes 1/16 downwardsplace_param2
is now kept, mainly to keep the possibility of returning to an improved plantlike drawtype it some unspecified point in the future where it can render plantlike nodes lowered by 1/16 of a node. I have added a comment so that future developers keep theplace_param2
, even though it seems useless at first glance.Keeping
place_param2
like this also means the Mineclonia version ofmcl_farming
is entirely compatible with Mineclone2 version ofmcl_farming
and each of them can be a replacement for the other.I followed the testing instructions. I havent found any additional bugs related to this patch. I did find that the selection boxes do not match the textures, but I opened a separate issue about it because it is not caused by this patch #295