Reciepies known
Created mandag 19 juni 2023
Make all recipies known
Here is a simple script runner mod to do this. I also removed all custom naming because I don't like that either. If you want to leave the naming remove the code between the two comments.
To use this:
- Copy the code in the white box inside the spoiler.
- Paste into a text editor program (notepad, wordpad, notepad++, ....).
- Save as a something with .js extension.
- Put that file in the appropriate folder: Wurm Unlimited Dedicated Server\mods\scriptrunner\scripts\ onServerStarted.
Hide contents
//****************************
var removePlayerNaming = true; // prevent recipes from being nameable. Apparently for default WU there aren't any nameable recipes.
var removeSpecialNaming = true; // foods named after the developers who worked on the food system and couple contest winner's names.
//****************************
var Recipes = Packages.com.wurmonline.server.items.Recipes;
var ReflectionUtil = Packages.org.gotti.wurmunlimited.modloader.ReflectionUtil;
var Class = Packages.java.lang.Class;
var Logger = Packages.java.util.logging.Logger;
var logger = Logger.getLogger("com.joedobo27.scriptRunnerMods.make-all-recipes-known");
function onServerStarted(){
var fieldKnown = ReflectionUtil.getField(Class.forName("com.wurmonline.server.items.Recipe"), "known");
var fieldName = ReflectionUtil.getField(Class.forName("com.wurmonline.server.items.Recipe"), "name");
var fieldNameable = ReflectionUtil.getField(Class.forName("com.wurmonline.server.items.Recipe"), "nameable");
ReflectionUtil.setPrivateField(recipes[i], fieldNameable, false);
if (removeSpecialNaming){
if (name == "Budda's terrible pasta dish"){
if (name == "Cerber's triple hops"){
if (name == "Lisabet's corned beef and cabbage"){
if (name == "marine's stew"){
if (name == "Nicrolis' gingerbeer"){
if (name == "Pandalet's one true pizza"){
if (name == "Retrograde pie"){
if (name == "Robbycrusoe's poutine"){
if (name == "Rolf's favourite sandwich"){
if (name == "Thor's Austrian dream schnitzel"){
if (name == "Tich's game jalfrezi"){
if(removeSpecialNaming){
if(removePlayerNaming){
logger.info("All recipes are now known.");
https://forum.wurmonline.com/index.php?/topic/152799-released-make-all-recipies-known/
Backlinks: WU General:Mods:General Server modding Info:2. Serverscripts