Lara's Creative Tools Pack

Due to human (non-bot) spam the first contribution of a user has to be reviewed and activated manually, all further contributions do not require this.
As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.
  • Lara submitted a new resource:

    [plain]Creative Tools[/plain] - [plain]Duplicate building materials, dirt and sand with the Creative Hammer and Shovel items.[/plain]

    Zitat

    Creative Tools v0.1

    Duplicate building materials, dirt and sand with the Creative Hammer and Shovel items.

    These tools are basically copies of the DevTool, but without the ability to delete anything or override authentication.

    On left click they are supposed to do whatever hammer or shovel do, and on right click they duplicate what’s carried in hand (shovel for dirt and sand, hammer for everything else that can be carried).

    I tested them for several hours, but I’m still not...

    Read more about this resource...

  • A few tweaks:

    1. To easily give access to the Creative Crafting Station to all players you can change it's crafting station to the Workbench.

    "Code 1"


    File: /Eco Server/Mods/CreativeToolsv0.X/CreativeCraftingStation/CreativeCraftingStation.cs
    Class: CreativeCraftingStationRecipe


    change CreativeCraftingStationObject to WorkbenchObject:

    C#
    CraftingComponent.AddRecipe(typeof(WorkbenchObject), this);

    2. It's also possible to spawn every new player a Creative Crafting Station into their inventory on first server join.

    "Code 2"


    File (vanilla): /Eco Server/Mods/Player/PlayerDefaults.cs
    Class: PlayerDefaults


    add items like:

    C#
    return new Dictionary<Type, int>
        {
            { typeof(PropertyClaimItem), 10 },
            { typeof(StoneAxeItem), 1 },
            { typeof(WoodenShovelItem), 1 },
            { typeof(StoneHammerItem), 1 },
            { typeof(StonePickaxeItem), 1 },
            { typeof(WorkbenchItem), 1 },
            { typeof(CreativeCraftingStationItem), 1 }, //adds the Creative Crafting Station, amount 1
        };

    3. It's further possible to change access to the "/creative" chat command from Developer to User.
    (Remove restrictions and gives you every skill at max level.)

    "Code 3"


    File (vanilla): /Eco Server/Mods/Commands/TechTreeCommands.cs
    Class: TechTreeCommands


    like:

    C#
    [ChatCommand("Remove restrictions and gives you every skill at max level.", ChatAuthorizationLevel.User)]

    Note: 2. and 3. are vanilla files, if you change those they are likely replaced with the original files on the next big update or if you repair your installation.

  • Mod doesn't work, error appears for all the mod files when compiling. Something about overriding an obsolete member.

    Zitat

    Warning in CreativeChest at 67: Member 'Eco.Mods.TechTree.CreativeChestItem.Description' overrides obsolete member 'Eco.Gameplay.Items.Item.Description'. Add the Obsolete attribute to 'Eco.Mods.TechTree.CreativeChestItem.Description'. (CS0672)


    Its pretty much that for each one all the way down.

  • Failed to load server, Exception was Exception: Exception

    Message:D:\Program Files (x86)\Steam\steamapps\common\Eco Server\Mods\CardboardBox\CardboardBox.cs(59,32): error CS0115: 'CardboardBoxItem.FriendlyName': no suitable method found to override

    Source:Eco.ModKit

    System.Exception: D:\Program Files (x86)\Steam\steamapps\common\Eco Server\Mods\CardboardBox\CardboardBox.cs(59,32): error CS0115: 'CardboardBoxItem.FriendlyName': no suitable method found to override

    at Eco.ModKit.RoslynCompiler.HandleCompilerError(ImmutableArray`1 diagnostics)

    at Eco.ModKit.RoslynCompiler.Compile()

    at Eco.ModKit.ModKitPlugin..ctor(TaskCompletionSource`1 done)

    Outer Exceptions:

    Exception has been thrown by the target of an invocation.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!