Skip to content

Making Protections

Sergiu Muresan edited this page Aug 28, 2015 · 36 revisions

The reasons:

Protections are a big part of the MyTown2 project and is something incredibly difficult to maintain due to the everchanging environment of Minecraft and its modding community.

There are two reasons we have created the current protection system:

  1. The difficulty of maintaining a protection system that takes into account basically any mod.
  2. Not many people know how to program in Java (at least not in the Minecraft community). This system requires minimal to no knowledge of Java.

Introduction:

The protection system is based on reading a set of files, each file representing a protection "dictionary" for a mod, we'll call those protections or protection files.

Each of the file is broken down into, so called, segments. Each segment represents something in the mod (entity, tile entity, item, block etc.). The segments tell the protection system what each thing does.

Example: asdasd

Clone this wiki locally