mt-mods / pipeworks

Pipeworks is a mod for Minetest allowing the crafting and usage of pipes and tubes
Other
14 stars 17 forks source link

code and registrations cleanup #101

Closed BuckarooBanzay closed 6 months ago

BuckarooBanzay commented 6 months ago

contents of this PR:

(sorry for the big PR, i originally wanted to make a PR for the elbow-tube but was distracted somehow :shrug:)

just for fun (not included here) ```lua pipeworks.register_embedded_tube(":pipeworks:mese_block_embedded_tube", { description = "Airtight mese embedded tube", base_texture = "default_mese_block.png", base_ingredient = "default:mese" }) ``` ![screenshot_20240112_140344](https://github.com/mt-mods/pipeworks/assets/39065740/176eabf8-872b-4e0a-9d08-a66616a48208)
BuckarooBanzay commented 6 months ago

i really would not like materials to be exposed. this should properly be done with a mod/library like sounds, since this code is already semi duplicated across our mods with homedecor, steel, here, at least

materials is now available in pipeworks only (via loadfile) :+1: