Skip to content

[Mod] Spawing Meteor

Blake-The-Terraria-Modder edited this page Aug 20, 2011 · 1 revision

This is a command so if you type "/spawn meteor" a meteor will randomly drop. You should only spawn 1 at a time!

To your mod class on-chat function add if you don't have the spawn command

 if (command == "Spawn")
                {

                }     

In the spawn command add

 if (parameter == "Meteor")
                    {
                        WorldGen.spawnMeteor = false;
                        WorldGen.dropMeteor();
                    }     

So now if you didn't already have the spawn command you should have

 if (command == "Spawn")
                {
                   if (parameter == "Meteor")
                        {
                        WorldGen.spawnMeteor = false;
                        WorldGen.dropMeteor();
                        } 
                }     

Clone this wiki locally