init.lua 849 B

123456789101112131415161718192021222324252627282930
  1. -- A device that allows to insert itemstacks into a network without
  2. -- relying on polling chests repeatedly to see if they have items.
  3. minetest.register_node("injector:injector", {
  4. description = "Self-Contained Injector",
  5. tiles = {
  6. "technic_injector_top.png", "technic_injector_top.png",
  7. "technic_injector_side.png", "technic_injector_side.png",
  8. "technic_injector_side.png", "technic_injector_side.png"
  9. },
  10. groups = utility.dig_groups("machine", {
  11. immovable = 1,
  12. }),
  13. paramtype2 = "facedir",
  14. on_rotate = function(...) return screwdriver.rotate_simple(...) end,
  15. is_ground_content = false,
  16. sounds = default.node_sound_metal_defaults(),
  17. })
  18. minetest.register_craft({
  19. type = "shapeless",
  20. output = 'injector:injector',
  21. recipe = {
  22. 'techcrafts:control_logic_unit',
  23. 'chests:chest_locked_closed',
  24. },
  25. })