Skip to content

I Fixed A Bug! And Found One! #25

@coding-kai

Description

@coding-kai

i have found that the trees spawn EVERY time the chunk updates, that is why there are multiple rings on the tree in your PREP code, and i made a temporary fix here is what i changed:

# TrunkyWunky.
treeH=int(4*ent)
for i in range(treeH):
    if (this.td.get( (_x,
                      _y+i+1,
                      _z) )==None or
        this.td.get( (_x,
                      _y+i+1,
                      _z) )=='g'):
        this.genBlock(  _x,_y+i+1,_z,
                        blockType='wood',
                        layingTerrain=False)

and for the Crown:

# Crown.
for t in range(-2,3):
    for tt in range(4):
        for ttt in range(-2,3):
            if (this.td.get( (  _x+t,
                                _y+treeH+tt+1,
                                _z+ttt))==None or
                this.td.get( (  _x+t,
                                _y+treeH+tt+1,
                                _z+ttt) )=='g'):
                this.genBlock(_x+t,_y+treeH+tt+1,_z+ttt,
                              blockType='foliage')

and i descovred that if you set stepheight to one block (like in minecraft), and player height to 1.22 (Witch is the closest I could get it to minecraft), and you build a staircase, you try to go up it, and you just walk through one of the steps until you jump. no idea why, all a know is that it happens . . . . :(

edit: i fixed it! there was a number set to -2 and i changed it to -1 and now it works. i sill have no idea why it fixed it though

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions