3
0
Fork
You've already forked stubes
0
No description
  • Lua 100%
2026年02月14日 17:15:16 +01:00
default_nodes Add right click to take away items, shift+punch WITH ITEM to put an item in (confusing i know) 2026年02月14日 17:14:35 +01:00
textures Initial commit? 2025年10月08日 16:17:19 +02:00
.gitmodules Remove the luanti_lsp_definitions submodule 2026年02月12日 09:48:04 +01:00
.luarc.json Breaking changes to the internal API, it's now much nicer imho 2025年10月13日 18:21:36 +02:00
entity.lua Experimental! 2026年01月06日 21:28:13 +01:00
init.lua Add right click to take away items, shift+punch WITH ITEM to put an item in (confusing i know) 2026年02月14日 17:14:35 +01:00
LICENSE.txt Add LICENSE :D 2025年10月17日 19:25:45 +02:00
mod.conf Initial commit? 2025年10月08日 16:17:19 +02:00
README.md Update readme 2026年02月14日 17:15:16 +01:00
receiver_types.lua Add right click to take away items, shift+punch WITH ITEM to put an item in (confusing i know) 2026年02月14日 17:14:35 +01:00
routing_node_register.lua Add LICENSE :D 2025年10月17日 19:25:45 +02:00
save_load_items.lua Experimental! 2026年01月06日 21:28:13 +01:00
tube_hud.lua Experimental! 2026年01月06日 21:28:13 +01:00
tube_info.lua Breaking changes to the internal API, it's now much nicer imho 2025年10月13日 18:21:36 +02:00
tube_placement.lua Add right click to take away items, shift+punch WITH ITEM to put an item in (confusing i know) 2026年02月14日 17:14:35 +01:00
tube_placement_preview.lua Experimental! 2026年01月06日 21:28:13 +01:00
tube_register.lua Better README 2026年02月12日 10:29:37 +01:00
tube_transport.lua Add LICENSE :D 2025年10月17日 19:25:45 +02:00

Stubes

(削除) An attempt to be Luanti's best item transport. (削除ここまで)

After 2 months: Turns out, perfectionism is how you kill a project. Some non-trivial visual bugs whose solutions sound more like leetcode problems are okay.

An attempt to be a decent solution to transportation of ItemStacks in Luanti.

I encourage you to fork (or even contribute to) this project and make a more generic version not limited to ItemStacks, and make it better

I am using 32x32 textures for the tubes, because i could not fit a recognizable arrow into a 32x32 texture without making the node bigger. I am also doing the textures in the style of Skyblock Zero. PRs for textures for other games are welcome.

This mod was inspired by the Pipeworks Luanti mod and by the Mindustry game.

Terminology

In-game, Stubes should refer to themselves as just item tubes, but in code/comparisons they should be referred to as stubes to distinguish them from other implementations of item tubes.

Compatibility

STubes don't implement their own way of letting nodes accept stube tubed items.
The preffered way for a node to accept STube tubed items is using pipeworks, but there will be other ways in the future.

Name Status Notes
Pipeworks Fully compatible Recommended way to make receivers for STubes. Even supports item input to pipeworks tubes.
Tubelib Not compatible PRs welcome! Although i am unsure if there is demand.
Others? Not compatible Let me know if there is anything else worth adding to this table

This library has an API that should make it easy for other mods to be compatible with it.

MAJOR BREAKING CHANGES ARE CURRENTLY WELCOME

If you think there will be no need for those, make an issue.

Performance

  • Tubed item visuals which aren't near the player aren't shown (so that gets rid of the need to perform costly move_to calls)
  • It should be able to handle 10 000 item stacks easily
  • should be more than pipeworks i hope

Todo

  • - Detailed API documentation with examples
  • - Less confusing player take/put interface to tubes (rightclick to take away and shift+punch with item to put is very confusing)
  • - Fully working tube devices
    • - Junctions
    • - Overflow Gates
    • - Underflow Gates
    • - Sorters
    • - Inverted Sorters
    • - 4D bridges
  • - Mesecons/digilines support (if on mesecons/digilines)
  • - Seperate things properly into files, make it easy to tell which function is where
  • - Get feedback on code and make it more readable

License

Code - MIT - (C) stube contributors (Copyright information might change to be more detailed, currently it's just me frog contributing to this)

Media - CC BY 4.0 frogTheSecond (Currently everything made by me)