script.on_init(function (event) game.permissions.get_group("Default").set_allows_action(defines.input_action.craft ,false) if script.active_mods["some-spaceship-wreck-generator"] then remote.call("freeplay", "set_created_items", { ["pistol"] = 1, ["firearm-magazine"] = 10, ["assembling-machine-3"] = 1, ["small-electric-pole"] = 1, ["electric-mining-drill"] = 1 }) else remote.call("freeplay", "set_created_items", { ["pistol"] = 1, ["firearm-magazine"] = 10, ["assembling-machine-3"] = 1, ["small-electric-pole"] = 1, ["electric-mining-drill"] = 1, ["boiler"] = 1, ["steam-engine"] = 1, ["offshore-pump"] = 1 }) end end)