Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    demipixel
    @demipixel
    Okay, so
    If you have a repeater
    It has a "count" that is by default 0
    If it's value (on/off) is different than the block/redstone going into it, it makes its count 4
    or its count whatever the length is
    (redstone ticks 1, 2, 3, 4 or game ticks 2, 4, 6, 8)
    As soon as it hits 0, it checks again and does the same thing
    This is why if you have a repeater on 4 ticks and redstone going into it
    It takes 4 to turn off and 4 to turn on
    And if you turn it off for too short a time, it doesn't realize and stays on
    demipixel
    @demipixel
    So I set a block at 0, 0, 0
    { blocks: [ [ [Object] ] ],
      tickList: 
       [ { x: 0, y: 0, z: 0 },
         { x: 0, y: -1, z: 0 },
         { x: 1, y: 0, z: 0 },
         { x: 0, y: 0, z: 1 },
         { x: -1, y: 0, z: 0 },
         { x: 0, y: 0, z: -1 },
         { x: 0, y: 1, z: 0 } ],
      setBlock: [Function],
      tick: [Function],
      blockAt: [Function],
      nextTick: [Function],
      surroundTick: [Function] }
    tickList is what needs to be updated next tick
    So it's the block I placed + all of the blocks it's touching
    pokeball99
    @pokeball99
    We are a long way from this but how are we going to handle BUD'ing?
    pokeball99
    @pokeball99
    im posting repo's that might help,idk if they would though
    pokeball99
    @pokeball99
    https://github.com/njoyard/jsredstone (might be of use more than the others)
    demipixel
    @demipixel
    Well I built a fair portion of it
    And have come to realize I need to redesign it
    If you're on a server, you don't want to setBlock for every damn block
    You want to pass a "getBlock" method
    The main problem is the getBlock method needs to send a block that can be modified
    Will Franzen
    @wtfaremyinitials
    Lol this is super complex
    What if you pass an array of prismarine-chunk's
    demipixel
    @demipixel
    Yeah but you wouldn't pass chunks with minelflayer
    Will Franzen
    @wtfaremyinitials
    why not?
    demipixel
    @demipixel
    I want this to be open past prisjs
    Also would changing blocks in the chunks save them?
    Will Franzen
    @wtfaremyinitials
    yes
    demipixel
    @demipixel
    K
    Will Franzen
    @wtfaremyinitials
    hacking prismarine-chunk into mineflayer would be super easy
    it’s essentially a rewrite of something mineflayer already did
    demipixel
    @demipixel
    I think my point is that it isn't
    Will Franzen
    @wtfaremyinitials
    isnt what
    demipixel
    @demipixel
    And other projects might not either
    That was my only concern
    demipixel
    @demipixel
    urg
    So they pass a chunk
    Which contains blocks and such
    Robin Lambertz
    @roblabla
    What's wrong with calling setBlock in a loop ._.
    Will Franzen
    @wtfaremyinitials
    that’s inefficient
    Romain Beaumont
    @rom1504
    @wtfaremyinitials if prismarine-chunk and mineflayer chunk handling are basically the same, it would be nice to use prismarine-chunk in mineflayer yes
    PrismarineJS/prismarine-chunk#9
    SuperOP535
    @SuperOP535
    Ok, this is like REALLY, REALLY dead WOAH 3 years - 4 days of inactivity OMG never seen this before :clap:
    SuperOP535
    @SuperOP535
    smh I did not even get a response
    demipixel
    @demipixel
    @SuperOP535 Yeah, it's a bit dead
    flying-squid is coming back but in all honesty, it deserves a lot more attention before redstone is handled most likely