This file stores all possible random events for the random event feature of dynamiceconomy.

To add some realism to your server, this allows random, unexpected events to occur, similar to the real world! These events will affect supply, demand, price, and stock of items affected.

RandomEvents.yml comes with two events preloaded, I will explain event1, and its fields, so you can make your own. The entire idea of randomevents isn't to come with a bunch preloaded, but for you to see how randomevents are made, and make your own in this file!

Description: '&2A forest-fire sparks, and the entire forest burns to ashes! The supply of wood is decreased'
Item: '17'
Amount: 40

So, let's go through these fields one by one.


This field is exactly what it sounds like. A text description of the event that'll be broadcasted if it occurs. I recommend you make this description two parts: one part to explain the event, and the second to explain what happens to price/stock/supply/demand, etc. Color codes work too!


The item name, alias, or ID of the item affected. Only one item per event is currently supported.


Any integer value, negative or positive. This is the amount by which stock will decrease or increase. If positive, this is the amount stock will increase by. If negative, this is the amount it'll decrease by. EnderEngine will accordingly compute price.

I hope this cleared up how random events work.

To add your own, just add event3 to this file, and add all appropriate fields. Feel free to copy and paste old events and just change their information. but don't forget to change their name (don't copy and paste event2 and forget to change the 2 to a 3).

Also, always follow yml syntax and spacing and NEVER use tabs.


  • To post a comment, please or register a new account.
Posts Quoted:
Clear All Quotes