stfwi / redstonepen

Minecraft mod adding a pen to draw Redstone tracks in all directions, a PLC for Redstone, and relays.
MIT License
14 stars 2 forks source link

Can RLC be strengthened? #17

Closed litobutter closed 1 year ago

litobutter commented 1 year ago

When I was writing the RLC program and found that there was not enough space,Can you add more writing space?,In addition, can all RLC share all variables?This will give RLC more possibilities

litobutter commented 1 year ago

1.18.2

stfwi commented 1 year ago

Hi, ty for reaching out. The one-page program is actually a design decision. There are several thoughts behind this. The RLC calculates all lines in one game tick. Although the program is pre-parsed and the calculation is fast, I don't like to risk that the block may have performance impacts on smaller servers or weaker PCs. The Pen mod has to fit into a vanilla context. So the recipes and ingredients should be simple and without multi-step micro-crafting. It should be usable to simplify/compact smaller Redstone tasks - but should have limitations, too. Limiting the "program ROM memory" is one of the ways doing this. I also left out stuff like wireless connections, data bus, track colors, etc. That's all not in the mod by design - Standard Redstone only ;).

What should be still ok is to remove the tool bar, as it is not needed, and use that space for a few more lines.

litobutter commented 1 year ago

So can RLC share custom variables?

stfwi commented 1 year ago

Hi, sorry about the delayed response. No, the intended interface between RLCs is using redstone signals. Only exception are the I/Os of the Redstone Client Adapter (https://github.com/stfwi/redstonepen/tree/redstone-client-adapter), but this is intended for people who like to connect hardware (micro controllers, etc) to Minecraft via the RLCs. RCA is disabled by default, because very few players use it. As said, there are many redstone mods around, of which quite a few (CC, McJtys tools, etc) provide complex data busses. I don't like to copy that, but provide a mod complementing these. So the RLC should not be too powerful. Cheers,-

stfwi commented 1 year ago

Oky, a few lines were added by tacking the font size (also increases the line length). Looks reasonably spaced now for this block. Cheers,-