CodeAG / LLadders

Ladders!
http://ladders.luppii.se/
Other
0 stars 4 forks source link

Bridgemode #7

Closed aiqueneldar closed 9 years ago

aiqueneldar commented 10 years ago

Should bridgemode be an possibility with the dispenser? If so, how would it work, and should there be a new bride block to be used with that?

holmsten commented 10 years ago

A new machine should be better. One of the sides where blocks will be output.

Should it support all place-able blocks or only custom blocks (something like a "horizontal ladder")?

aiqueneldar commented 10 years ago

On the topic "which blocks should be supported" I would go with config. In my humble opinion I would go with custom "horizontal ladder" as default and have an option in the config to support all types of place-able blocks.

holmsten commented 10 years ago

Basic functionality as of now. It can place and retract opaque cubic blocks in 6 directions. Still working on some registry/api for registering allowed blocks (and texture).

holmsten commented 10 years ago

Maybe fiddle some with range upgrades?

At the moment I've put max extension limit at 16 blocks. Add another slot in GUI for extender item - adds 4/8/16/32/48 range or something like that, depending on what item is inserted?

holmsten commented 10 years ago

More work with validating blocks. It's more dynamic now (use ItemBlocks) when it comes to placing other mods blocks - but bugs with ItemBlocks that get different metadata after placed. Torches and Minecraft machines (Furnace/Dispenser/Dropper etc.) are some examples. It will place the blocks but not retract them as the metadata has changed.

aiqueneldar commented 9 years ago

Think I found a bug. Create two trenches with 1 block at same level. Output a bridge over both trenches. Change block in dispenser (if bridge is Block A, change so Block B is in dispenser while bridge is out). Retract bridge will make the outer blocks drop until it reaches middle of first trench closest to machine. There it will just stop. Not sure if this is intended, but the machine now behaves differently depending on where the blocks are placed when retracting.

aiqueneldar commented 9 years ago

Also, after triggering this behavior. I can't get the builder to retract the last Block A from world again. If I have Block A in builder it will continue building from those block onwards. And then retract until it reaches those last Block A from mentioned bugg. It will then stop working all togheter and bridge will not retract completely. Not sure if this is intended?

holmsten commented 9 years ago

I'm not sure what you're trying to do. I can:

  1. Extend a bridge with block A.
  2. Replace while extended with block B.
  3. Retract the whole extended block A bridge. The blocks will be dropped on the ground as the dispenser contain block B (will also happen if inventory is full) - this is intended behaviour.

If you have obstacles with the same block as you're trying to build a bridge with then yes, it will skip blocks and when retracting it will leave the same amount of blocks left that the obstacle were made of (but closer to the machine). This is kind of(ish) expected behaviour, because of the canPlaceBlock logic it will not differ from blocks placed by itself or blocks already placed in the world.