local function setup_miku() if not remote.interfaces.freeplay or not remote.interfaces.freeplay.get_created_items or not remote.interfaces.freeplay.set_created_items then return end local items = remote.call("freeplay", "get_created_items") items["miku-1"] = 1 remote.call("freeplay", "set_created_items", items) end script.on_init(setup_miku) script.on_configuration_changed(setup_miku) commands.add_command("spawn-miku", nil, function(e) if not e.player_index then return end local player = game.get_player(e.player_index) if not player then return end if not player.admin then player.print({ "cant-run-command-not-admin", "/spawn-miku" }) return end local inventory = player.get_main_inventory() if not inventory then return end inventory.insert({ name = "miku-1", amount = 1 }) end)