Skip to content
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

Implemented vines #578

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Implemented vines #578

wants to merge 6 commits into from

Conversation

JustTalDevelops
Copy link
Member

Closes #572.

@JustTalDevelops JustTalDevelops added the feature New feature or request label Jul 19, 2022
@JustTalDevelops JustTalDevelops changed the title Implemented vines. Implemented vines Jul 19, 2022
server/block/vine.go Outdated Show resolved Hide resolved
@JustTalDevelops JustTalDevelops added the awaiting response More information is required to resolve and/or close the issue label Jul 22, 2022
@JustTalDevelops JustTalDevelops removed the awaiting response More information is required to resolve and/or close the issue label Jul 24, 2022
server/block/vine.go Show resolved Hide resolved
// Vines can't spread upwards unless there is air.
return
}

Copy link
Member

Choose a reason for hiding this comment

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

According to the wiki, there can not be more than 4 vines in a 9x9x3 area to spread upwards

Comment on lines +168 to +179
} else if vines {
var changed bool
for _, f := range cube.HorizontalFaces() {
if r.Intn(2) == 0 && v.Attachment(f.Direction()) {
newVines, changed = newVines.SetAttachment(f.Direction(), true), true
}
}
if changed {
w.SetBlock(selectedPos, newVines, nil)
}
return
}
Copy link
Member

Choose a reason for hiding this comment

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

Please check this behavior as it does not match what the wiki says for downwards spread to non-air blocks

Copy link
Member Author

Choose a reason for hiding this comment

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

What exactly?

@JustTalDevelops JustTalDevelops added the awaiting response More information is required to resolve and/or close the issue label Jul 24, 2022
@DaPigGuy DaPigGuy self-requested a review December 16, 2022 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response More information is required to resolve and/or close the issue feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement vines
2 participants