Skip to content

Desire Lines - update conversion chances#1266

Open
TheThanathor wants to merge 4 commits intoGamemode4Dev:update-26.1from
TheThanathor:desire-line-freq
Open

Desire Lines - update conversion chances#1266
TheThanathor wants to merge 4 commits intoGamemode4Dev:update-26.1from
TheThanathor:desire-line-freq

Conversation

@TheThanathor
Copy link
Member

  • lowered sprinting penalty
  • raised falling penalty
  • coarse dirt conversion requires dirt on at least 1 side
  • foliage destruction requires coarse dirt conversion

- lowered sprinting penalty
- raised falling penalty
- coarse dirt conversion requires dirt on at least 1 side
- foliage destruction requires coarse dirt conversion
Copy link
Contributor

@runcows runcows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, all i have is a nitpick :P


# check blocks
fill ~ ~-0.06 ~ ~ ~-0.06 ~ coarse_dirt replace dirt
execute positioned ~ ~-0.06 ~ if predicate gm4_desire_lines:can_coarse_dirt run fill ~ ~-0.06 ~ ~ ~-0.06 ~ coarse_dirt replace dirt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For simplicity, the fill here should no longer be offset down. There's no situation I can think of where it would cause any issues though

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fairly certain the fill having an offset is an oversight by @TheThanathor.

Suggested change
execute positioned ~ ~-0.06 ~ if predicate gm4_desire_lines:can_coarse_dirt run fill ~ ~-0.06 ~ ~ ~-0.06 ~ coarse_dirt replace dirt
execute positioned ~ ~-0.06 ~ if predicate gm4_desire_lines:can_coarse_dirt run fill ~ ~ ~ ~ ~ ~ coarse_dirt replace dirt

Comment on lines +10 to +14
# considerations
# walking speed = 4.317 blocks/s ~ 5 ticks / block
# sprinting speed = 5.612 blocks/s ~ 4 ticks / block
# walking ~ 1 - (0.99)^5 = 0.05 ~ 5% chance to convert each block
# sprinting ~ 1 - (0.98)^4 = 0.07 ~ 7% chance to convert each block
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On merge, we should definitely include this information on the wiki

"offsetX": 1,
"predicate": {
"block": {
"blocks": "dirt"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should also check for coarse dirt?

@Bloo-dev Bloo-dev added the feature-update An additional feature has been added to a module label Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-update An additional feature has been added to a module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants