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

Add Slime Block #413

Closed
wants to merge 8 commits into from
Closed

Add Slime Block #413

wants to merge 8 commits into from

Conversation

max-xoo
Copy link

@max-xoo max-xoo commented Jan 25, 2022

I needed the slime blocks so I implemented them, it's client side everything that is slowing down and jumping

Here is a video to show that it works client side: click here
(it's on df of course)

server/block/slime.go Outdated Show resolved Hide resolved
package block

// A Slime block is a translucent block that entities can bounce on
type Slime struct {
Copy link
Member

Choose a reason for hiding this comment

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

This should be called SlimeBlock and the file should be renamed to slime_block.go

package block

// Slime is a translucent block that entities can bounce on.
type Slime struct {
Copy link
Member

Choose a reason for hiding this comment

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

This also should implement block.LightDiffuser with LightDiffusionLevel() returning the correct light diffusion level

package block

// Slime is a translucent block that entities can bounce on.
type Slime struct {
Copy link
Member

Choose a reason for hiding this comment

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

This also also should implement block.EntityLander, and should reset the entity's fall distance if it implements FallDistanceEntity

@DaPigGuy
Copy link
Member

Closing in favor of #445

@DaPigGuy DaPigGuy closed this Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants