minetest-mods / technic

Technic mod for Minetest
Other
145 stars 155 forks source link

technic_cnc: use programs definition to generate formspec #647

Closed SmallJoker closed 1 month ago

SmallJoker commented 1 month ago

This deprecates the variables onesize_products and twosize_products by using a shared definition table. With these changes, it should be easier to add new programs in the future.

New feature: Tooltips are added to all programs. (only applies to newly placed nodes)

Before:

grafik

After:

grafik

How to test:

  1. Place a CNC using the current technic master version
  2. Ensure that it the CNC cuts properly
  3. Apply this PR
  4. Ensure that it the CNC cuts properly
  5. Place a new CNC
  6. Ensure that it the CNC cuts properly