ATTENTION! The process of updating WiKi to version Eco 10.x has begun. Those wishing to participate can find out more Information on our ECO Contribution Wiki Discord.
From April 26 to May 12, errors may occur in the Wiki, as we will be carrying out a major update to the information processing modules.

Modifying the World

From Eco - English Wiki
Revision as of 18:41, 4 July 2021 by Redwyre (talk | contribs) (Created page with "{{ModdingOutdated}} == Modding Tutorial: Modifying the World == === How to change the world === 1. Import <code>Eco.World</code> 2. Call any of the following functions from...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Warning: This content is outdated.

Modding Tutorial: Modifying the World[edit | edit source]

How to change the world[edit | edit source]

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[edit | edit source]

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