Module migrate_node.lua

📑 Source

Migrate world nodes

This does not perform migrations on world start but on block load.

Usage

migrate_node("my_migration", {"vines:old"}, function() end)

Functions


# returns... (name, nodenames, action)

Parameters

  • name string A unique identifier for the migration
  • nodenames {string,...} A list of nodenames to perform the action on.
  • action function Called for each node in the nodenames list when block gets loaded.

Returns

    nil