Ejemplo n.º 1
0
 public override void onBlockLeave(API.Ent.Entity e, Vector3 position)
 {
     if (!(e.getIsland().getBlock(position + Vector3.UNIT_Y, false) is LevitatorAirBlock))
     {
         e.setIsPushedByArcaneLevitator(false);
     }
 }
Ejemplo n.º 2
0
        public override void onBlockEnter(API.Ent.Entity e, Vector3 position)
        {
            Island    current = e.getIsland();
            TypeWorld newWorld;

            if (current.getBiome() is Hills)
            {
                newWorld = TypeWorld.Desert;
            }
            else if (current.getBiome() is Desert)
            {
                newWorld = TypeWorld.Mountain;
            }
            else /* (current.getBiome() is Mountains)*/
            {
                newWorld = TypeWorld.Plains;
            }

            StateManager.ChangeIsland(newWorld);
        }