1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Modifications of Spherable World Generator (New features ...)

Discussion in 'Development' started by benda95280, Oct 5, 2020.

  1. benda95280

    benda95280 Witch

    Messages:
    53
    GitHub:
    benda95280
    Hello Everybody,

    I'm working on some modifications on the Spherable Generator (of AD5001) for my childs.
    Link: https://github.com/benda95280/Spherable (Warning: Bad coding inside)

    What was the main idea behind this ?
    Build a wonderful world, hard to explore, with ressources, and danger :
    • Sphere could be able to fall
    • Sphere can be prebuild with Schematic
    • Sphere can have differents style (Bubble, Plain, Fill with water or Lava ...)
    • Structure can appear when pushing a special block (From Schematic)
    • Some structure could spawn (Like bridge, see below)

    What i've been able to implement :
    • Spheres blocks can spawn with many 'Level' desired, with their own type of blocks (Based on height)
    • Differents type of Spheres
      • Plain Sphere
      • Bubble :
        • Bubble can 'explode' with hand or arrow
      • Mystic (?) :
        • When you click on the Rod End block, a schematic is pasted
    • Sphere can be normal, with some strange block under, have some missing block, or some block add on the flat part inside the 'Bubble'
    • Some of them are filled with Water/Air/Lava
    • There can be dust arround them
    • Spawn can be pasted from a schematic
    • A bridge is created at 600 blocks from the center
    • A task used as wind push the player sometimes ... WIP, don't know if i'm going to find a better way or remove it
    Pictures of current work :

    [​IMG]
    [​IMG]
    [​IMG]

    Why i'm posting it here ?
    I'm looking for a little bit of help :
    • Some parts of the code are ugly, many others can be optimized.
    • I've difficulty with the 'facing' of blocks when trying to use stairs or other blocks on the bridge
    • Haven't been able to set SpawnPoint to the middle of the spawn structure
    • Any ideas or other help are welcome
    • (I think block used to build sphere can be change, i hate coweb ...)
     
    Last edited: Oct 10, 2020
    minijaham, Levi and Primus like this.
  2. benda95280

    benda95280 Witch

    Messages:
    53
    GitHub:
    benda95280
    #Update - New features :
    - Spheres can be filled with Air/Water/Lava
    - Number of sphere generated per chunk increase from 2 to 3
    - Dust arround sphere is generated and randomized
    - Calculation logic for radius of sphere changed
    - Internal logic for block placement/type of sphere changed​

    [​IMG]
    [​IMG]
     
    Last edited: Oct 10, 2020
    Levi likes this.
  3. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Looking good. Is the bridge one big schematic?
     
  4. benda95280

    benda95280 Witch

    Messages:
    53
    GitHub:
    benda95280
    Nop, it's generated 600Block arround the center.
    Current big schematic is the the spawn as you can see in first post, first picture.
     
    Last edited: Oct 11, 2020
  5. benda95280

    benda95280 Witch

    Messages:
    53
    GitHub:
    benda95280
    #Update - New features :
    - Sphere are now organized by type
    - New type of sphere : TrashedSphere

    [​IMG]

    Edit: It seems there is some performance impact now, it's slower than before to generate ...
     
    Levi likes this.
  6. benda95280

    benda95280 Witch

    Messages:
    53
    GitHub:
    benda95280
    I'm stuck on how to add tiles.
    It seems it's not possible to get back to main thread, and be able to do it.
    I've think to an external loader, and pass info to it, but i'm not able to found the name of the current world generated ...

    Any idea here ?

     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.