Modifying the World

From Eco - English Wiki
Revision as of 19:58, 1 April 2026 by StalEF (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Modding Tutorial: Modifying the World

How to change the world

1. Import Eco.World

2. Call any of the following functions from World:

        public static Block GetBlock(Vector3i position)
     
        public static void SetBlock<T>(Vector3i position)
     
        public static void SetBlock(Type blockType, Vector3i position)
     
        public static void DeleteBlock(Vector3i position)

You may set player to be null to skip authorization tests.

Block Types

Eco's block types for generic parameter T are specified in Blocks.cs.